Skip to content

Commit

Permalink
Further improve multicluster round-robin test
Browse files Browse the repository at this point in the history
Signed-off-by: averevki <[email protected]>
  • Loading branch information
averevki committed Oct 4, 2024
1 parent 6f54c6c commit 16ff359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/tests/multicluster/test_simple_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def test_simple_strategy(client, hostname, gateway, gateway2):

dns_ip1 = dns.resolver.resolve(hostname.hostname)[0].address
dns_ip2 = dns.resolver.resolve(hostname.hostname)[0].address
dns_ip3 = dns.resolver.resolve(hostname.hostname)[0].address
assert dns_ip1 != dns_ip2, "Simple routing strategy should return IPs in a round-robin fashion"
assert dns_ip1 == dns_ip3, "Simple routing strategy should return IPs in a round-robin fashion"

gateway_ips = {gateway.external_ip().split(":")[0], gateway2.external_ip().split(":")[0]}
dns_ips = {dns_ip1, dns_ip2}
Expand Down

0 comments on commit 16ff359

Please sign in to comment.