mirror of
https://github.com/containers/podman.git
synced 2025-09-17 06:47:10 +08:00

Compose v2 uses dashes as separators instead of hyphens. This broke some tests that relied upon container names. Set the name conditionally to make it safe for both. Signed-off-by: Matthew Heon <mheon@redhat.com>
9 lines
295 B
Bash
9 lines
295 B
Bash
# -*- bash -*-
|
|
|
|
ctr_name="ipam_set_ip_test_1"
|
|
if [ "$TEST_FLAVOR" = "compose_v2" ]; then
|
|
ctr_name="ipam_set_ip-test-1"
|
|
fi
|
|
podman container inspect "$ctr_name" --format '{{ .NetworkSettings.Networks.ipam_set_ip_net1.IPAddress }}'
|
|
like "$output" "10.123.0.253" "$testname : ip address is set"
|