allow OKD /run contents for build fs test
@@ -23,7 +23,10 @@ metadata:
spec:
runPolicy: Serial
source:
- dockerfile: "FROM %s\nRUN chmod -R uga+rwx /run\nUSER 1001"
+ dockerfile: |-
+ FROM %s
+ RUN chmod -R uga+rwx /run
+ USER 1001
type: Dockerfile
strategy:
dockerStrategy:
@@ -41,7 +44,10 @@ metadata:
spec:
runPolicy: Serial
source:
- dockerfile: "FROM %s\nRUN ls -R /run\nUSER 1001"
+ dockerfile: |-
+ FROM %s
+ RUN ls -R /run
+ USER 1001
type: Dockerfile
strategy:
dockerStrategy:
@@ -83,6 +89,18 @@ secrets
/run/secrets:
system-fips
+`
+ lsRSlashRunOKD = `
+/run:
+lock
+rhsm
+secrets
+
+/run/lock:
+
+/run/rhsm:
+
+/run/secrets:
`
)
@@ -114,7 +132,7 @@ system-fips
logs, err := br.LogsNoTimestamp()
o.Expect(err).NotTo(o.HaveOccurred())
hasRightListing := false
- if strings.Contains(logs, lsRSlashRun) || strings.Contains(logs, lsRSlashRunFIPS) {
+ if strings.Contains(logs, lsRSlashRun) || strings.Contains(logs, lsRSlashRunFIPS) || strings.Contains(logs, lsRSlashRunOKD) {
hasRightListing = true
}
o.Expect(hasRightListing).To(o.BeTrue())
