From 48e6a8eed0a2adaad86d4979031dc93300e23722 Mon Sep 17 00:00:00 2001 From: Vikas Goel Date: Mon, 12 Jul 2021 19:34:07 -0700 Subject: Return macvlan object in /network REST API response Fixes: #10266 Signed-off-by: Vikas Goel --- test/apiv2/35-networks.at | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/apiv2') 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 -- cgit v1.2.3-54-g00ecf