Skip to content

Commit ae649f4

Browse files
authored
Add check for insights-client status (#21111)
Add assertion for insights status
1 parent b45508b commit ae649f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pytest_fixtures/component/rh_cloud.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def enable_insights(host, satellite, org, activation_key):
1414
org=org,
1515
rhel_distro=f"rhel{host.os_version.major}",
1616
)
17+
result = host.execute('insights-client --status')
18+
assert result.status == 0, f'insights-client not registered on {host.hostname}: {result.stdout}'
19+
assert "Insights API confirms registration" in result.stdout
1720
# Sync inventory if using hosted Insights
1821
if not satellite.iop_enabled:
1922
satellite.generate_inventory_report(org)

0 commit comments

Comments
 (0)