mirror of
https://github.com/containers/podman.git
synced 2025-10-18 19:53:58 +08:00
Report StatusConflict on Pod opt partial failures
- When one or more containers in the Pod reports an error on an operation report StatusConflict and report the error(s) - jsoniter type encoding used to marshal error as string using error.Error() - Update test framework to allow setting any flag when creating pods - Fix test_resize() result check Fixes #8865 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -83,7 +83,7 @@ var _ = Describe("Podman image|container exists", func() {
|
||||
})
|
||||
|
||||
It("podman pod exists in local storage by name", func() {
|
||||
setup, _, _ := podmanTest.CreatePod("foobar")
|
||||
setup, _, _ := podmanTest.CreatePod(map[string][]string{"--name": {"foobar"}})
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup).Should(Exit(0))
|
||||
|
||||
@ -92,7 +92,7 @@ var _ = Describe("Podman image|container exists", func() {
|
||||
Expect(session).Should(Exit(0))
|
||||
})
|
||||
It("podman pod exists in local storage by container ID", func() {
|
||||
setup, _, podID := podmanTest.CreatePod("")
|
||||
setup, _, podID := podmanTest.CreatePod(nil)
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup).Should(Exit(0))
|
||||
|
||||
@ -101,7 +101,7 @@ var _ = Describe("Podman image|container exists", func() {
|
||||
Expect(session).Should(Exit(0))
|
||||
})
|
||||
It("podman pod exists in local storage by short container ID", func() {
|
||||
setup, _, podID := podmanTest.CreatePod("")
|
||||
setup, _, podID := podmanTest.CreatePod(nil)
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup).Should(Exit(0))
|
||||
|
||||
|
Reference in New Issue
Block a user