diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-09 18:40:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 18:40:36 -0500 |
commit | 2d829aeb1fe0dc19c45e796141ab78ff192b5dbb (patch) | |
tree | d1250fe1db1339b3f56eccf980aa74a4ec395ef2 /test/e2e/containers_conf_test.go | |
parent | 8600c3b8e2436d73c7c13deb0da869b7f35069ea (diff) | |
parent | 46385dd609efb3ab36d326f9e32b6e04f31d8867 (diff) | |
download | podman-2d829aeb1fe0dc19c45e796141ab78ff192b5dbb.tar.gz podman-2d829aeb1fe0dc19c45e796141ab78ff192b5dbb.tar.bz2 podman-2d829aeb1fe0dc19c45e796141ab78ff192b5dbb.zip |
Merge pull request #9284 from rhatdan/annotations
Support annotations from containers.conf
Diffstat (limited to 'test/e2e/containers_conf_test.go')
-rw-r--r-- | test/e2e/containers_conf_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/containers_conf_test.go b/test/e2e/containers_conf_test.go index 719ac9fac..c78c93b8c 100644 --- a/test/e2e/containers_conf_test.go +++ b/test/e2e/containers_conf_test.go @@ -320,4 +320,15 @@ var _ = Describe("Podman run", func() { Expect(session.OutputToString()).To(Equal("0022")) }) + It("podman run containers.conf annotations test", func() { + //containers.conf is set to "run.oci.keep_original_groups=1" + session := podmanTest.Podman([]string{"create", "--rm", "--name", "test", fedoraMinimal}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + inspect := podmanTest.Podman([]string{"inspect", "--format", "{{ .Config.Annotations }}", "test"}) + inspect.WaitWithDefaultTimeout() + Expect(inspect.OutputToString()).To(ContainSubstring("run.oci.keep_original_groups:1")) + }) + }) |