Skip to content

Commit

Permalink
add Legacy content UI support for nutanix prism central & ahv option …
Browse files Browse the repository at this point in the history
…modification (SatelliteQE#11812)
  • Loading branch information
yanpliu authored Jul 5, 2023
1 parent e904c4a commit c0bd75c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/foreman/virtwho/ui/test_nutanix.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,18 @@ def test_positive_prism_central_deploy_configure_by_id_script(
hypervisor_display_name = session.contenthost.search(hypervisor_name)[0]['Name']
vdc_physical = f'product_id = {settings.virtwho.sku.vdc_physical} and type=NORMAL'
vdc_virtual = f'product_id = {settings.virtwho.sku.vdc_physical} and type=STACK_DERIVED'
assert (
session.contenthost.read_legacy_ui(hypervisor_display_name)['subscriptions'][
'status'
]
== 'Unsubscribed hypervisor'
)
session.contenthost.add_subscription(hypervisor_display_name, vdc_physical)
assert session.contenthost.search(hypervisor_name)[0]['Subscription Status'] == 'green'
assert (
session.contenthost.read_legacy_ui(guest_name)['subscriptions']['status']
== 'Unentitled'
)
session.contenthost.add_subscription(guest_name, vdc_virtual)
assert session.contenthost.search(guest_name)[0]['Subscription Status'] == 'green'
session.virtwho_configure.delete(name)
Expand Down Expand Up @@ -263,7 +273,7 @@ def test_positive_ahv_internal_debug_option(
assert check_message_in_rhsm_log(message) == message

# Update ahv_internal_debug option to true
session.virtwho_configure.edit(name, {'ahv-internal-debug': True})
session.virtwho_configure.edit(name, {'ahv_internal_debug': True})
results = session.virtwho_configure.read(name)
command = results['deploy']['command']
assert str(results['overview']['ahv_internal_debug']) == 'True'
Expand Down

0 comments on commit c0bd75c

Please sign in to comment.