aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-24 00:11:45 +0000
committerGitHub <noreply@github.com>2020-09-24 00:11:45 +0000
commitc256944d00edbedcfbf02406600987dc8acea644 (patch)
tree582909e8fab1425b30b82be20249bb494681c41b /test
parent505f3122b8fbe8bd4571514cd09157e62ba5b40e (diff)
parent393fa4b92f2ba6f3b3e2e17d33ab0243eef1d063 (diff)
downloadpodman-c256944d00edbedcfbf02406600987dc8acea644.tar.gz
podman-c256944d00edbedcfbf02406600987dc8acea644.tar.bz2
podman-c256944d00edbedcfbf02406600987dc8acea644.zip
Merge pull request #7759 from xordspar0/app-filter
Allow filtering on pod label values
Diffstat (limited to 'test')
-rw-r--r--test/e2e/pod_ps_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/e2e/pod_ps_test.go b/test/e2e/pod_ps_test.go
index d65bb33c7..17ed6a9c0 100644
--- a/test/e2e/pod_ps_test.go
+++ b/test/e2e/pod_ps_test.go
@@ -212,17 +212,17 @@ var _ = Describe("Podman ps", func() {
Expect(ec).To(Equal(0))
_, ec, podid2 := podmanTest.CreatePodWithLabels("", map[string]string{
- "io.podman.test.label": "value1",
- "io.podman.test.key": "irrelevant-value",
+ "app": "myapp",
+ "io.podman.test.key": "irrelevant-value",
})
Expect(ec).To(Equal(0))
_, ec, podid3 := podmanTest.CreatePodWithLabels("", map[string]string{
- "io.podman.test.label": "value2",
+ "app": "test",
})
Expect(ec).To(Equal(0))
- session := podmanTest.Podman([]string{"pod", "ps", "--no-trunc", "--filter", "label=io.podman.test.key", "--filter", "label=io.podman.test.label=value1"})
+ session := podmanTest.Podman([]string{"pod", "ps", "--no-trunc", "--filter", "label=app", "--filter", "label=app=myapp"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
Expect(session.OutputToString()).To(Not(ContainSubstring(podid1)))