-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add test for hostgroup access to non-admin user #15616
base: master
Are you sure you want to change the base?
Conversation
ad0bf6a
to
ac7062b
Compare
trigger: test-robottelo |
ac7062b
to
ef6e48b
Compare
trigger: test-robottelo |
PRT Result
|
PRT Result
|
@shweta83 I converted pr to draft for now, please mark it ready for review once you're done with changes/addressing the comments. |
trigger: test-robottelo |
ef6e48b
to
c8c1f39
Compare
trigger: test-robottelo |
c8c1f39
to
d88ed86
Compare
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
d88ed86
to
0de7be9
Compare
trigger: test-robottelo |
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.
Ack, pending comments
SELECTED_ROLE = [ansible_manager_role, tower_inventory_manager_role] | ||
user = target_sat.api.User( | ||
role=SELECTED_ROLE, |
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 could really confuse us later as we're using SELECTED_ROLE variable in tests for ansible roles, and here using it for user and roles
SELECTED_ROLE = [ansible_manager_role, tower_inventory_manager_role] | |
user = target_sat.api.User( | |
role=SELECTED_ROLE, | |
user = target_sat.api.User( | |
role=[ansible_manager_role, tower_inventory_manager_role], |
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.
The variable definition can differ from test to test. This is something we can skip.
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.
yes, but I'd prefer to keep it this way to avoid confusion and for consistency
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.
I would like to keep the original approach if it is fine with you.
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.
but why keeping unnecessary variable here which is nowhere used later :D
hg_name = target_sat.api.HostGroup( | ||
organization=[function_org], | ||
location=[function_location], | ||
).create() |
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.
I think it'll make sense to add finalizer for hg delete too
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.
Yes. I can add to finalizer.
This pull request has not been updated in the past 45 days. |
Problem Statement
Missing scenario for hostgroup access to non-admin user. BZ#2236418
Solution
Added test to verify hostgroup page is accessible to non-admin user.
Related Issues