-
Notifications
You must be signed in to change notification settings - Fork 115
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
fixed subscription list test case #17382
Conversation
|
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One proposal and question
for subscription in all_subscriptions: | ||
if subscription['Name'] == DEFAULT_SUBSCRIPTION_NAME: | ||
assert True | ||
break | ||
else: | ||
pytest.fail(f"{DEFAULT_SUBSCRIPTION_NAME} not found..!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should do the same I think (haven't tried locally though)
for subscription in all_subscriptions: | |
if subscription['Name'] == DEFAULT_SUBSCRIPTION_NAME: | |
assert True | |
break | |
else: | |
pytest.fail(f"{DEFAULT_SUBSCRIPTION_NAME} not found..!") | |
assert any(sub['Name'] == DEFAULT_SUBSCRIPTION_NAME for sub in all_subscriptions) |
Btw, why didn't the original search work? I'm guessing it should return just one result (if the subscription is present).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original search doesn't work, I changed UI selector and tried, but again when we are on page, view not able to click on Search button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These test changes shouldn't be necessary with the proper airgun fixes I've suggested.
|
PRT Result
|
These changes are no longer needed, as per @sambible suggestion making changes in airgun view of subscription SatelliteQE/airgun#1702 and changes are working absolutely fine. |
|
|
PRT Result
|
|
PRT Result
|
Problem Statement
Test case
test_positive_access_with_non_admin_user_with_manifest
was failing due to ErrorTypeError: 'NoneType' object is not subscriptable
Solution
Collect the list of all available scriptions from the page and iterate over each till matches default subscription name
Airgun PR
SatelliteQE/airgun#1702
PRT test Cases example