summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVikas Goel <vikas.goel@veritas.com>2021-07-12 19:34:07 -0700
committerVikas Goel <vikas.goel@veritas.com>2021-07-14 12:24:03 -0700
commit48e6a8eed0a2adaad86d4979031dc93300e23722 (patch)
tree11ac8df5dc2d8db4285aeaa878da1c9bca900bfd /test
parent561ef855706e9276cc66d4718db96389f3f32735 (diff)
downloadpodman-48e6a8eed0a2adaad86d4979031dc93300e23722.tar.gz
podman-48e6a8eed0a2adaad86d4979031dc93300e23722.tar.bz2
podman-48e6a8eed0a2adaad86d4979031dc93300e23722.zip
Return macvlan object in /network REST API response
Fixes: #10266 Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/35-networks.at14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/apiv2/35-networks.at b/test/apiv2/35-networks.at
index 59947faac..7a36b605f 100644
--- a/test/apiv2/35-networks.at
+++ b/test/apiv2/35-networks.at
@@ -142,4 +142,18 @@ t GET networks?filters='{"label":["zaq"]}' 200 length=1
t POST networks/prune?filters='{"until":["5000000000"]}' 200
t GET networks?filters='{"label":["zaq"]}' 200 length=0
+# test macvlan network response
+podman network create --driver macvlan macvlan1
+
+# libpod api inspect the macvlan network
+t GET libpod/networks/macvlan1/json 200 .name="macvlan1"
+
+# compat api inspect the macvlan network
+t GET networks/macvlan1 200 .Name="macvlan1"
+
+# clean the macvlan network
+t DELETE libpod/networks/macvlan1 200 \
+ .[0].Name~macvlan1 \
+ .[0].Err=null
+
# vim: filetype=sh