Skip to content

Commit

Permalink
Merge pull request Kuadrant#489 from averevki/fix-multicluster-test
Browse files Browse the repository at this point in the history
Fix multicluster test
  • Loading branch information
pehala authored Jul 30, 2024
2 parents 48c1ea1 + 702442b commit d7e55e5
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 d7e55e5

Please sign in to comment.