summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2022-06-03 14:08:59 -0400
committerMatthew Heon <mheon@redhat.com>2022-06-14 16:12:10 -0400
commit88960519f9e69a8343bd5f96d0667dc0945b489b (patch)
tree41e7f5c6b4bb083090316f88914bec3e91f0eafd /test/e2e
parent2ee28e30d61769de5137ce5c46b5f16778cf3756 (diff)
downloadpodman-88960519f9e69a8343bd5f96d0667dc0945b489b.tar.gz
podman-88960519f9e69a8343bd5f96d0667dc0945b489b.tar.bz2
podman-88960519f9e69a8343bd5f96d0667dc0945b489b.zip
Fix secret-verify-leak flake: set build context to subdir
Setting the build context to a dedicated subdir makes sure that the test does not flake when running in parallel, as the test is isolated from other tests that may dump secrets in a higher level context dir. This should have been done in https://github.com/containers/podman/pull/13457, as this makes that PR actually work. Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/build_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/build_test.go b/test/e2e/build_test.go
index dcdd17143..f34501d55 100644
--- a/test/e2e/build_test.go
+++ b/test/e2e/build_test.go
@@ -85,7 +85,7 @@ var _ = Describe("Podman build", func() {
})
It("podman build with a secret from file and verify if secret file is not leaked into image", func() {
- session := podmanTest.Podman([]string{"build", "-f", "build/secret-verify-leak/Containerfile.with-secret-verify-leak", "-t", "secret-test-leak", "--secret", "id=mysecret,src=build/secret.txt", "build/"})
+ session := podmanTest.Podman([]string{"build", "-f", "build/secret-verify-leak/Containerfile.with-secret-verify-leak", "-t", "secret-test-leak", "--secret", "id=mysecret,src=build/secret.txt", "build/secret-verify-leak"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.OutputToString()).To(ContainSubstring("somesecret"))