diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-28 10:03:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 10:03:17 -0400 |
commit | 2d22d17066aae4c357aff7015220cd4095d996f8 (patch) | |
tree | 153f1cb64bd9bbf913ac3c45f32605d44c4298e5 /test/system | |
parent | cc23e059d9537360d0eb4c16c4f0598efd8ecb0d (diff) | |
parent | 1c8926285d1ecdfe201fe68896657573dcdc22b7 (diff) | |
download | podman-2d22d17066aae4c357aff7015220cd4095d996f8.tar.gz podman-2d22d17066aae4c357aff7015220cd4095d996f8.tar.bz2 podman-2d22d17066aae4c357aff7015220cd4095d996f8.zip |
Merge pull request #11751 from Luap99/net-alias
always add short container id as net alias
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/500-networking.bats | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats index ef00d0366..548f2d764 100644 --- a/test/system/500-networking.bats +++ b/test/system/500-networking.bats @@ -415,6 +415,10 @@ load helpers run_podman inspect $cid --format "{{(index .NetworkSettings.Networks \"$netname\").MacAddress}}" mac="$output" + # check network alias for container short id + run_podman inspect $cid --format "{{(index .NetworkSettings.Networks \"$netname\").Aliases}}" + is "$output" "\[${cid:0:12}\]" "short container id in network aliases" + run_podman network disconnect $netname $cid # check that we cannot curl (timeout after 3 sec) @@ -443,6 +447,10 @@ load helpers # connect a second network run_podman network connect $netname2 $cid + # check network2 alias for container short id + run_podman inspect $cid --format "{{(index .NetworkSettings.Networks \"$netname2\").Aliases}}" + is "$output" "\[${cid:0:12}\]" "short container id in network aliases" + # curl should work run curl --max-time 3 -s $SERVER/index.txt is "$output" "$random_1" "curl 127.0.0.1:/index.txt should work" |