summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-10-14 13:53:12 -0500
committerbaude <bbaude@redhat.com>2020-10-20 12:06:59 -0500
commiteb91d66c4aa0d2d75a5787ab7013cef88d8c9f4f (patch)
tree1dc9988ebc7470e05bd80622982ab9a5926d0d5b /test/apiv2
parent35b4cb196545eee3b072083e716ad4588e0bb486 (diff)
downloadpodman-eb91d66c4aa0d2d75a5787ab7013cef88d8c9f4f.tar.gz
podman-eb91d66c4aa0d2d75a5787ab7013cef88d8c9f4f.tar.bz2
podman-eb91d66c4aa0d2d75a5787ab7013cef88d8c9f4f.zip
refactor api compatibility container creation to specgen
when using the compatibility layer to create containers, it used code paths to the pkg/spec which is the old implementation of containers. it is error prone and no longer being maintained. rather that fixing things in spec, migrating to specgen usage seems to make the most sense. furthermore, any fixes to the compat create will not need to be ported later. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/20-containers.at10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 7fbcd2e9c..c7055dfc4 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -206,16 +206,6 @@ t POST containers/${cid_top}/stop "" 204
t DELETE containers/$cid 204
t DELETE containers/$cid_top 204
-# test the apiv2 create, shouldn't ignore the ENV and WORKDIR from the image
-t POST containers/create '"Image":"'$ENV_WORKDIR_IMG'","Env":["testKey1"]' 201 \
- .Id~[0-9a-f]\\{64\\}
-cid=$(jq -r '.Id' <<<"$output")
-t GET containers/$cid/json 200 \
- .Config.Env~.*REDIS_VERSION= \
- .Config.Env~.*testKey1= \
- .Config.WorkingDir="/data" # default is /data
-t DELETE containers/$cid 204
-
# test the WORKDIR and StopSignal
t POST containers/create '"Image":"'$ENV_WORKDIR_IMG'","WorkingDir":"/dataDir","StopSignal":"9"' 201 \
.Id~[0-9a-f]\\{64\\}