diff options
author | Niall Crowe <nicrowe@redhat.com> | 2022-07-14 13:15:25 +0100 |
---|---|---|
committer | Niall Crowe <nicrowe@redhat.com> | 2022-07-14 15:47:27 +0100 |
commit | 3b5034e91a5363d979206865505688aa34900a0c (patch) | |
tree | f2041607b0347ca65b8ed910c18b6f7816f8fe47 /test/apiv2 | |
parent | d4dc067117931678f0a568998ff34443a12da7e3 (diff) | |
download | podman-3b5034e91a5363d979206865505688aa34900a0c.tar.gz podman-3b5034e91a5363d979206865505688aa34900a0c.tar.bz2 podman-3b5034e91a5363d979206865505688aa34900a0c.zip |
fix tests for "podman kube play"
This is a follow up to fix some of the apiv2
tests related to "podman kube play" while also
removing reduntant system tests.
Signed-off-by: Niall Crowe <nicrowe@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r-- | test/apiv2/80-kube.at | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/test/apiv2/80-kube.at b/test/apiv2/80-kube.at index 40b26d75e..f40a6556e 100644 --- a/test/apiv2/80-kube.at +++ b/test/apiv2/80-kube.at @@ -37,13 +37,29 @@ t DELETE libpod/containers/$cid 200 .[0].Id=$cid # Make sure that kube-play works -t POST libpod/kube/play $YAML 200 -t DELETE libpod/kube/play $YAML 200 +t POST libpod/kube/play $YAML 200 \ + .Pods[0].ID~[0-9a-f]\\{64\\} \ + .Pods[0].ContainerErrors=null \ + .Pods[0].Containers[0]~[0-9a-f]\\{64\\} + +t DELETE libpod/kube/play $YAML 200 \ + .Pods[0].ID~null \ + .Pods[0].ContainerErrors=null \ + .Pods[0].Containers[0]~null # Make sure that play-kube works -t POST libpod/play/kube $YAML 200 -t DELETE libpod/play/kube $YAML 200 +t POST libpod/play/kube $YAML 200 \ + .Pods[0].ID~[0-9a-f]\\{64\\} \ + .Pods[0].ContainerErrors=null \ + .Pods[0].Containers[0]~[0-9a-f]\\{64\\} + +t DELETE libpod/play/kube $YAML 200 \ + .Pods[0].ID~null \ + .Pods[0].ContainerErrors=null \ + .Pods[0].Containers[0]~null \ + .StopReport[0].Id~[0-9a-f]\\{64\\} \ + .RmReport[0].Id~[0-9a-f]\\{64\\} rm -rf $TMPD |