summaryrefslogtreecommitdiff
path: root/test/apiv2/35-networks.at
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-12-14 08:41:26 -0700
committerEd Santiago <santiago@redhat.com>2021-12-14 12:10:19 -0700
commit0a2eb7b1857907f065a48a07a9a3096fa3cc5f77 (patch)
treee84b116a2af32c9d7dbd94a525e0751cad11e493 /test/apiv2/35-networks.at
parenta0894b5ecd6c64d30b82a7b79bc1e2e87c7f0a4e (diff)
downloadpodman-0a2eb7b1857907f065a48a07a9a3096fa3cc5f77.tar.gz
podman-0a2eb7b1857907f065a48a07a9a3096fa3cc5f77.tar.bz2
podman-0a2eb7b1857907f065a48a07a9a3096fa3cc5f77.zip
apiv2 tests: refactor complicated curls
Some months ago, apiv2 tests got added that needed new functionality: passing a tarball to the remote server. There was no mechanism to do so in the 't' helper, so these tests used complicated (and actually not-really- working) curl commands. This PR introduces and documents a new usage of 't', in which passing an argument ending in '.tar' adds the right magic syntax (--data-binary @PATH) to the existing curl. This lets us use all standard 't' checks, making for simpler tests and in the process fixing some bugs. Also: drive-by fix of a typo bug in the networks test. Also: set CONTAINERS_REGISTRIES_CONF when starting server and when running direct podman, to avoid docker.io throttling. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/apiv2/35-networks.at')
-rw-r--r--test/apiv2/35-networks.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/apiv2/35-networks.at b/test/apiv2/35-networks.at
index 713f677fa..0e2389bd5 100644
--- a/test/apiv2/35-networks.at
+++ b/test/apiv2/35-networks.at
@@ -7,7 +7,7 @@ t GET networks/non-existing-network 404 \
.cause='network not found'
t POST libpod/networks/create name='"network1"' 200 \
- .name=network1
+ .name=network1 \
.created~[0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}.* \
# --data '{"name":"network2","subnets":[{"subnet":"10.10.254.0/24"}],"Labels":{"abc":"val"}}'