summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-10 23:29:36 +0100
committerGitHub <noreply@github.com>2021-11-10 23:29:36 +0100
commitfa8184c80723a4782105a1d85542bb885888bc09 (patch)
treef601dd1609a1469909a1d80be0ce4178e4ba5142 /test
parent546ad0e6ab2af88563a41f3526f2ed5ba67904c4 (diff)
parenta55fdbb49c94038a8e9b88dd876b175e32292697 (diff)
downloadpodman-fa8184c80723a4782105a1d85542bb885888bc09.tar.gz
podman-fa8184c80723a4782105a1d85542bb885888bc09.tar.bz2
podman-fa8184c80723a4782105a1d85542bb885888bc09.zip
Merge pull request #12240 from umohnani8/table
Print headers for system connection ls
Diffstat (limited to 'test')
-rw-r--r--test/e2e/system_connection_test.go2
-rw-r--r--test/system/272-system-connection.bats3
2 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/system_connection_test.go b/test/e2e/system_connection_test.go
index c0e29d525..76b442ce8 100644
--- a/test/e2e/system_connection_test.go
+++ b/test/e2e/system_connection_test.go
@@ -236,7 +236,7 @@ var _ = Describe("podman system connection", func() {
session := podmanTest.Podman(cmd)
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- Expect(session.Out.Contents()).Should(BeEmpty())
+ Expect(len(session.OutputToStringArray())).Should(Equal(1))
Expect(session.Err.Contents()).Should(BeEmpty())
})
})
diff --git a/test/system/272-system-connection.bats b/test/system/272-system-connection.bats
index 14c4f6664..4e9ac4dd6 100644
--- a/test/system/272-system-connection.bats
+++ b/test/system/272-system-connection.bats
@@ -50,7 +50,8 @@ function _run_podman_remote() {
# Very basic test, does not actually connect at any time
@test "podman system connection - basic add / ls / remove" {
run_podman system connection ls
- is "$output" "" "system connection ls: no connections"
+ is "$output" "Name URI Identity Default" \
+ "system connection ls: no connections"
c1="c1_$(random_string 15)"
c2="c2_$(random_string 15)"