Skip to content

Commit

Permalink
update assertion for discovery plugin test as per IPv4/Ipv6 ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 committed Feb 19, 2025
1 parent 1b41e14 commit 7de2b5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/foreman/ui/test_discoveryrule.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ def _finalize():
values = session.discoveryrule.read_discovered_hosts(discovery_rule.name)
assert values['searchbox'] == rule_search
assert len(values['table']) == 1
assert values['table'][0]['IP Address'] == ip_address
if values['table'][0]['IPv4'] != '':
assert values['table'][0]['IPv4'] == ip_address
else:
assert values['table'][0]['IPv6'] == ip_address
assert values['table'][0]['CPUs'] == str(cpu_count)
# auto provision the discovered host
result = target_sat.api.DiscoveredHost(id=discovered_host['id']).auto_provision()
Expand Down

0 comments on commit 7de2b5a

Please sign in to comment.