aboutsummaryrefslogtreecommitdiff
path: root/test/compose/two_networks/tests.sh
blob: af0d1fbe37278a8b771fb7e6ec1bb5eb0c9a0a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
# -*- bash -*-

ctr_name="two_networks_con1_1"
if [ "$TEST_FLAVOR" = "compose_v2" ]; then
    ctr_name="two_networks-con1-1"
fi
podman container inspect "$ctr_name" --format '{{len .NetworkSettings.Networks}}'
is "$output" "2" "$testname : Container is connected to both networks"
podman container inspect "$ctr_name" --format '{{.NetworkSettings.Networks}}'
like "$output" "two_networks_net1" "$testname : First network name exists"
like "$output" "two_networks_net2" "$testname : Second network name exists"