diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-15 05:54:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 05:54:05 -0400 |
commit | f2ab79cc02520fde565729727184767726bb09ce (patch) | |
tree | 3b8b878f305dc3b4be076d23ad835c2709981b93 /test | |
parent | 6076e1a9a53a785d0053d22f1859103d5fea8b56 (diff) | |
parent | f38b03d3752aa2a8fe1172b50b73cd5a33ae14ea (diff) | |
download | podman-f2ab79cc02520fde565729727184767726bb09ce.tar.gz podman-f2ab79cc02520fde565729727184767726bb09ce.tar.bz2 podman-f2ab79cc02520fde565729727184767726bb09ce.zip |
Merge pull request #13868 from cdoern/cloneSwap
Fix Memory Swappiness passing in Container Clone
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/container_clone_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/container_clone_test.go b/test/e2e/container_clone_test.go index a327bb8ed..1d5944d1a 100644 --- a/test/e2e/container_clone_test.go +++ b/test/e2e/container_clone_test.go @@ -146,6 +146,20 @@ var _ = Describe("Podman container clone", func() { cloneData = cloneInspect.InspectContainerToJSON() Expect(createData[0].HostConfig.NanoCpus).ToNot(Equal(cloneData[0].HostConfig.NanoCpus)) Expect(cloneData[0].HostConfig.NanoCpus).To(Equal(nanoCPUs)) + + create = podmanTest.Podman([]string{"create", ALPINE}) + create.WaitWithDefaultTimeout() + Expect(create).To(Exit(0)) + clone = podmanTest.Podman([]string{"container", "clone", "--cpus=4", create.OutputToString()}) + clone.WaitWithDefaultTimeout() + Expect(clone).To(Exit(0)) + + cloneInspect = podmanTest.Podman([]string{"inspect", clone.OutputToString()}) + cloneInspect.WaitWithDefaultTimeout() + Expect(cloneInspect).To(Exit(0)) + cloneData = cloneInspect.InspectContainerToJSON() + Expect(cloneData[0].HostConfig.MemorySwappiness).To(Equal(int64(0))) + }) It("podman container clone in a pod", func() { |