diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-24 09:07:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 09:07:02 +0100 |
commit | 4b014a3aecf9508ed83ae489e188721e6234ccd5 (patch) | |
tree | 8d5f445a67efd8ddc117237e05f111c0aad2b3c9 /test/e2e/ps_test.go | |
parent | 04be1e6485aec99d09edf3cdcf0769269ee42eb8 (diff) | |
parent | eb3708a5243378a659ca126b5d5c457b182d16a8 (diff) | |
download | podman-4b014a3aecf9508ed83ae489e188721e6234ccd5.tar.gz podman-4b014a3aecf9508ed83ae489e188721e6234ccd5.tar.bz2 podman-4b014a3aecf9508ed83ae489e188721e6234ccd5.zip |
Merge pull request #12398 from edsantiago/remove_betrue
continue e2e test cleanup
Diffstat (limited to 'test/e2e/ps_test.go')
-rw-r--r-- | test/e2e/ps_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go index 0afd74bcb..666b70b09 100644 --- a/test/e2e/ps_test.go +++ b/test/e2e/ps_test.go @@ -792,29 +792,29 @@ var _ = Describe("Podman ps", func() { session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(len(session.OutputToStringArray())).To(Equal(2)) - Expect(StringInSlice(pod1.OutputToString(), session.OutputToStringArray())) + Expect(session.OutputToStringArray()).To(ContainElement(con1.OutputToString())) // filter by full pod id session = podmanTest.Podman([]string{"ps", "-q", "--no-trunc", "--filter", "pod=" + pod1.OutputToString()}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(len(session.OutputToStringArray())).To(Equal(2)) - Expect(StringInSlice(pod1.OutputToString(), session.OutputToStringArray())) + Expect(session.OutputToStringArray()).To(ContainElement(con1.OutputToString())) // filter by partial pod id session = podmanTest.Podman([]string{"ps", "-q", "--no-trunc", "--filter", "pod=" + pod1.OutputToString()[0:12]}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(len(session.OutputToStringArray())).To(Equal(2)) - Expect(StringInSlice(pod1.OutputToString(), session.OutputToStringArray())) + Expect(session.OutputToStringArray()).To(ContainElement(con1.OutputToString())) // filter by multiple pods is inclusive session = podmanTest.Podman([]string{"ps", "-q", "--no-trunc", "--filter", "pod=pod1", "--filter", "pod=pod2"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) Expect(len(session.OutputToStringArray())).To(Equal(4)) - Expect(StringInSlice(pod1.OutputToString(), session.OutputToStringArray())) - Expect(StringInSlice(pod2.OutputToString(), session.OutputToStringArray())) + Expect(session.OutputToStringArray()).To(ContainElement(con1.OutputToString())) + Expect(session.OutputToStringArray()).To(ContainElement(con2.OutputToString())) }) |