mirror of
https://github.com/containers/podman.git
synced 2025-06-29 15:08:09 +08:00
Merge pull request #12240 from umohnani8/table
Print headers for system connection ls
This commit is contained in:
@ -53,10 +53,6 @@ func list(cmd *cobra.Command, _ []string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(cfg.Engine.ServiceDestinations) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
hdrs := []map[string]string{{
|
hdrs := []map[string]string{{
|
||||||
"Identity": "Identity",
|
"Identity": "Identity",
|
||||||
"Name": "Name",
|
"Name": "Name",
|
||||||
|
@ -236,7 +236,7 @@ var _ = Describe("podman system connection", func() {
|
|||||||
session := podmanTest.Podman(cmd)
|
session := podmanTest.Podman(cmd)
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
Expect(session.Out.Contents()).Should(BeEmpty())
|
Expect(len(session.OutputToStringArray())).Should(Equal(1))
|
||||||
Expect(session.Err.Contents()).Should(BeEmpty())
|
Expect(session.Err.Contents()).Should(BeEmpty())
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -50,7 +50,8 @@ function _run_podman_remote() {
|
|||||||
# Very basic test, does not actually connect at any time
|
# Very basic test, does not actually connect at any time
|
||||||
@test "podman system connection - basic add / ls / remove" {
|
@test "podman system connection - basic add / ls / remove" {
|
||||||
run_podman system connection ls
|
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)"
|
c1="c1_$(random_string 15)"
|
||||||
c2="c2_$(random_string 15)"
|
c2="c2_$(random_string 15)"
|
||||||
|
Reference in New Issue
Block a user