mirror of
https://github.com/containers/podman.git
synced 2025-12-09 07:09:03 +08:00
Merge pull request #4684 from vrothberg/systemd-improvements
container config: add CreateCommand
This commit is contained in:
@@ -117,6 +117,18 @@ var _ = Describe("Podman inspect", func() {
|
||||
Expect(len(result.OutputToStringArray())).To(Equal(1))
|
||||
})
|
||||
|
||||
It("podman inspect container and filter for CreateCommand", func() {
|
||||
SkipIfRemote()
|
||||
ls, ec, _ := podmanTest.RunLsContainer("")
|
||||
Expect(ec).To(Equal(0))
|
||||
cid := ls.OutputToString()
|
||||
|
||||
result := podmanTest.Podman([]string{"inspect", "--format={{.Config.CreateCommand}}", cid})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result.ExitCode()).To(Equal(0))
|
||||
Expect(len(result.OutputToStringArray())).To(Equal(1))
|
||||
})
|
||||
|
||||
It("podman inspect -l with additional input should fail", func() {
|
||||
SkipIfRemote()
|
||||
result := podmanTest.Podman([]string{"inspect", "-l", "1234foobar"})
|
||||
|
||||
Reference in New Issue
Block a user