-
Notifications
You must be signed in to change notification settings - Fork 116
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
verify host owner name after host registration #15178
verify host owner name after host registration #15178
Conversation
3e7d590
to
35b204e
Compare
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
|
||
:steps: | ||
1. Register the host. | ||
2. Check the host is registered and verify owner name |
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'd suggest to check this scenario end to end, like verify when host is created/registered with non-admin user and same user is assigned as host-owner, wdyt?
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 don't know what you mean by end-to-end, but I think this can be part of another test that registers a host, you just add assert.
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 added an assertion to the existing test instead of creating a new one. Please take a look.
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.
@Gauravtalreja1
I will create a different PR to cover the non-admin scenario. Right now, I have added assertions for the admin user.
PRT failure unrelated:
|
35b204e
to
7d2b46b
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.
Optionally, you can
- make the check into a function to avoid code duplication
- make 'Admin User' a constant
Removing the 6.14.z label as the BZ fix is not yet cherrypicked to 6.14.z |
* verify host name after host registration * assertion added for host (cherry picked from commit 423864f)
* verify host name after host registration * assertion added for host (cherry picked from commit 423864f)
* verify host name after host registration * assertion added for host
Problem Statement
When a host is registered, its Owner is not set to the admin that generated the registration command. It stays set to a hidden API user, Owner is displayed as Anonymous Admin.
The user who actually ran the registration process should be set as owner.
Solution
The following automation script is designed to verify that the host is registered correctly and that it is assigned the expected owner name as specified.