diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-15 04:06:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 04:06:11 -0400 |
commit | 1568247ec8fa0c1a23bbd4631c1ea2fcfd85e281 (patch) | |
tree | 08a94598560fe0db6f6c7f08144936b27c5d0549 /test | |
parent | 1e236845e631d6f7596f6bd094d55f58b8156e06 (diff) | |
parent | 48e6a8eed0a2adaad86d4979031dc93300e23722 (diff) | |
download | podman-1568247ec8fa0c1a23bbd4631c1ea2fcfd85e281.tar.gz podman-1568247ec8fa0c1a23bbd4631c1ea2fcfd85e281.tar.bz2 podman-1568247ec8fa0c1a23bbd4631c1ea2fcfd85e281.zip |
Merge pull request #10919 from vikas-goel/macvlan
Return macvlan object in /network REST API response
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/35-networks.at | 14 |
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 |