Skip to content

Commit

Permalink
fixed subscription list test case
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Jan 20, 2025
1 parent 2d5319e commit a31de52
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/foreman/ui/test_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,13 @@ def test_positive_access_with_non_admin_user_with_manifest(
default_organization=org,
).create()
with target_sat.ui_session(test_name, user=user.login, password=user_password) as session:
assert (
session.subscription.search(f'name = "{DEFAULT_SUBSCRIPTION_NAME}"')[0]['Name']
== DEFAULT_SUBSCRIPTION_NAME
)
all_subscriptions = session.subscription.search('name ~ "Red Hat"')
for subscription in all_subscriptions:
if subscription['Name'] == DEFAULT_SUBSCRIPTION_NAME:
assert True
break
else:
pytest.fail(f"{DEFAULT_SUBSCRIPTION_NAME} not found..!")


@pytest.mark.tier2
Expand Down

0 comments on commit a31de52

Please sign in to comment.