Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update subscription_status_label to subscription_facet_attribute #16516

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions tests/upgrades/test_virtwho.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,18 @@ def test_post_crud_virt_who_configuration(self, form_data, pre_upgrade_data, tar
# Vefify the connection of the guest on Content host
hypervisor_name = pre_upgrade_data.get('hypervisor_name')
guest_name = pre_upgrade_data.get('guest_name')
hosts = [hypervisor_name, guest_name]
for hostname in hosts:
result = (
target_sat.api.Host(organization=org_id)
.search(query={'search': hostname})[0]
.read_json()
)
assert result['subscription_status_label'] == 'Simple Content Access'
result = (
target_sat.api.Host(organization=org_id)
.search(query={'search': hypervisor_name})[0]
.read_json()
)
assert result['subscription_facet_attributes']['virtual_guests'][0]['name'] == guest_name
result = (
target_sat.api.Host(organization=org_id)
.search(query={'search': guest_name})[0]
.read_json()
)
assert hypervisor_name in result['subscription_facet_attributes']['virtual_host']['name']

# Verify the virt-who config-file exists.
config_file = get_configure_file(vhd.id)
Expand Down
Loading