Skip to content

Commit

Permalink
Fix multicluster dns test
Browse files Browse the repository at this point in the history
Signed-off-by: averevki <[email protected]>
  • Loading branch information
averevki committed Jul 24, 2024
1 parent 2b7e03c commit 702442b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions testsuite/tests/multicluster/test_multicluster_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,5 @@ def test_multicluster_dns(client, hostname, gateways):
assert result.status_code == 200

ips = {gateway.external_ip().split(":")[0] for gateway in gateways.values()}
dns_ips = set(())
for _ in range(len(ips)):
answer = dns.resolver.resolve(hostname.hostname)[0]
assert answer.address in ips, f"Got {answer.address} that is not expected in {ips}"
dns_ips.add(answer.address)
dns_ips = {ip.address for ip in dns.resolver.resolve(hostname.hostname)}
assert ips == dns_ips, f"Expected IPs and actual IP mismatch, got {dns_ips}, expected {ips}"

0 comments on commit 702442b

Please sign in to comment.