narrow verify /run test to /run/secrets
@@ -26,7 +26,7 @@ spec:
type: Dockerfile
dockerfile: |-
FROM %s
- RUN chmod -R uga+rwx /run
+ RUN chmod -R uga+rwx /run/secrets
USER 1001
strategy:
dockerStrategy:
@@ -47,7 +47,7 @@ spec:
type: Dockerfile
dockerfile: |-
FROM %s
- RUN ls -R /run
+ RUN ls -R /run/secrets
USER 1001
strategy:
dockerStrategy:
@@ -58,15 +58,6 @@ spec:
type: Docker
`, image.LimitedShellImage())
lsRSlashRun = `
-/run:
-lock
-rhsm
-secrets
-
-/run/lock:
-
-/run/rhsm:
-
/run/secrets:
rhsm
@@ -78,40 +69,13 @@ redhat-entitlement-authority.pem
redhat-uep.pem
`
lsRSlashRunFIPS = `
-/run:
-lock
-rhsm
-secrets
-
-/run/lock:
-
-/run/rhsm:
-
/run/secrets:
system-fips
`
lsRSlashRunOKD = `
-/run:
-lock
-rhsm
-secrets
-
-/run/lock:
-
-/run/rhsm:
-
/run/secrets:
`
lsRSlashRunRhel7 = `
-/run:
-lock
-rhsm
-secrets
-
-/run/lock:
-
-/run/rhsm:
-
/run/secrets:
rhsm
@@ -153,7 +117,7 @@ valid_fields.json
o.Expect(err).NotTo(o.HaveOccurred())
br.AssertSuccess()
- g.By("check build logs for ls -R /run")
+ g.By("check build logs for ls -R /run/secrets")
logs, err := br.LogsNoTimestamp()
o.Expect(err).NotTo(o.HaveOccurred())
hasRightListing := false
