-
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
test fixed for contentview #10426
test fixed for contentview #10426
Conversation
Can one of the admins verify this patch? |
trigger: test-robottelo |
trigger: test-robottelo |
# Check that we can read our content view with custom user | ||
content_view = target_sat.api.ContentView(server_config=cfg, id=content_view.id).read() | ||
content_view_readonly_user = target_sat.api.ContentView(server_config=cfg, id=content_view.id) |
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.
Based on the comment here, we should still attempt to read the content view as that is the only thing this user should be able to do.
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 this needs to be fixed in the nailgun as the nailgun does not return the correct auth details, It is been reset to default auth details even though when the custom auth details are passed.
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.
While me and @vijaysawant debug this further https://github.com/SatelliteQE/nailgun/blob/master/nailgun/entity_mixins.py#L822 line where we are getting type error for doing read call over target_sat (using Dec Class) which results in setting default nailgun object and that is returned
To fix the CI failures here:
|
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.
Missing Branch labels in this PR to auto-cherrypick!
|
4adff1d
to
6011f62
Compare
30ac451
to
22a1fd6
Compare
trigger: test-robottelo |
trigger: test-robottelo |
server_config for user with "readonly" role not set, and depending calls was failing, It was using admin users credentials.
Now with this PR issue will be resolved.