Skip to content

Commit

Permalink
Merge pull request #400 from SUSE-Enceladus/ipv6-test
Browse files Browse the repository at this point in the history
Update ip address comparison in smt reg test
  • Loading branch information
smarlowucf authored Oct 22, 2024
2 parents ee63c7b + c6d8891 commit 483b261
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion usr/share/lib/img_proof/tests/SLES/test_sles_smt_reg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ipaddress
import pytest
import shlex


Expand All @@ -23,7 +25,11 @@ def test_sles_smt_reg(
)
smt_ip = shlex.split(result.stdout)[0]

assert smt_ip in smt_ips
for server_ip in smt_ips:
if ipaddress.ip_address(smt_ip) == ipaddress.ip_address(server_ip):
break
else:
pytest.fail(f'RMT Server not found {smt_ip}')

# ensure region hint is in log
cloud_register_log = host.file('/var/log/cloudregister')
Expand Down

0 comments on commit 483b261

Please sign in to comment.