diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-24 13:02:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 13:02:43 -0400 |
commit | b61e429f199ca0f164054a9d758e60f94aa4d81e (patch) | |
tree | b1e5c11ad8da1496f34367c83fdbed3e653bce3c /test | |
parent | 988fd27541dfa852ee9543c2d8a916896ef0c774 (diff) | |
parent | 7fe4c5204e7c0d98f87b0408b959f312b08177e3 (diff) | |
download | podman-b61e429f199ca0f164054a9d758e60f94aa4d81e.tar.gz podman-b61e429f199ca0f164054a9d758e60f94aa4d81e.tar.bz2 podman-b61e429f199ca0f164054a9d758e60f94aa4d81e.zip |
Merge pull request #6732 from mheon/fix_stopsignal_set
Set stop signal to 15 when not explicitly set
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/create_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index 52ce0b46a..44bb5c45f 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -458,4 +458,17 @@ var _ = Describe("Podman create", func() { Expect(session.ExitCode()).To(Equal(0)) } }) + + It("podman create sets default stop signal 15", func() { + ctrName := "testCtr" + session := podmanTest.Podman([]string{"create", "--name", ctrName, ALPINE, "/bin/sh"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + inspect := podmanTest.Podman([]string{"inspect", ctrName}) + inspect.WaitWithDefaultTimeout() + data := inspect.InspectContainerToJSON() + Expect(len(data)).To(Equal(1)) + Expect(data[0].Config.StopSignal).To(Equal(uint(15))) + }) }) |