diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-04-23 20:25:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-23 20:25:31 -0400 |
commit | 10f9dc0d8860e358796d1325ef1a7e31f02a0166 (patch) | |
tree | ab099989be43c245cbc3fd50c8175555c1a9a8e2 /test | |
parent | 2279242b5ce1f7be90338d5da247e86b50a4755e (diff) | |
parent | 57afb7514d5c123779601cae77d016bf6de8a5f1 (diff) | |
download | podman-10f9dc0d8860e358796d1325ef1a7e31f02a0166.tar.gz podman-10f9dc0d8860e358796d1325ef1a7e31f02a0166.tar.bz2 podman-10f9dc0d8860e358796d1325ef1a7e31f02a0166.zip |
Merge pull request #647 from umohnani8/secrets
Add FIPS mode secret
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 66e5791a7..501434852 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -302,6 +302,20 @@ var _ = Describe("Podman run", func() { Expect(err).To(BeNil()) }) + It("podman run with FIPS mode secrets", func() { + fipsFile := "/etc/system-fips" + err = ioutil.WriteFile(fipsFile, []byte{}, 0755) + Expect(err).To(BeNil()) + + session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "ls", "/run/secrets"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring("system-fips")) + + err = os.Remove(fipsFile) + Expect(err).To(BeNil()) + }) + It("podman run without group-add", func() { session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "id"}) session.WaitWithDefaultTimeout() |