1
0
Fork 0

Use IPv6 address

This commit is contained in:
Tom Moulard 2022-09-08 11:20:09 +02:00 committed by GitHub
parent c84378d649
commit 52df1d63fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 1 deletions

View file

@ -3511,6 +3511,22 @@ func TestDockerGetIPAddress(t *testing.T) {
network: "testnet",
expected: "10.11.12.13",
},
{
desc: "one ipv6 network, network label",
container: containerJSON(
withNetwork("testnet", ipv6("fd00:1:2:3:4::")),
),
network: "testnet",
expected: "fd00:1:2:3:4::",
},
{
desc: "two network ipv4 + ipv6, network label",
container: containerJSON(
withNetwork("testnet", ipv4("10.11.12.13"), ipv6("fd00:1:2:3:4::")),
),
network: "testnet",
expected: "10.11.12.13",
},
{
desc: "two networks, network label",
container: containerJSON(