github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/test/compose/two_networks/tests.sh (about) 1 # -*- bash -*- 2 3 ctr_name="two_networks_con1_1" 4 if [ "$TEST_FLAVOR" = "compose_v2" ]; then 5 ctr_name="two_networks-con1-1" 6 fi 7 podman container inspect "$ctr_name" --format '{{len .NetworkSettings.Networks}}' 8 is "$output" "2" "$testname : Container is connected to both networks" 9 podman container inspect "$ctr_name" --format '{{.NetworkSettings.Networks}}' 10 like "$output" "two_networks_net1" "$testname : First network name exists" 11 like "$output" "two_networks_net2" "$testname : Second network name exists"