-
Notifications
You must be signed in to change notification settings - Fork 897
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 check for existence of user for system_context #18437
Conversation
@miq-bot add_label bug thanks. |
For when @simaishi looks at this, it needs to go back to g but I will need to open a separate PR for that, this isn't going to backport cleanly. |
stack_with_owner.retirement_check | ||
stack_with_owner.reload | ||
expect(stack_with_owner.retirement_last_warn).not_to be_nil | ||
expect(stack_with_owner.retirement_requester).to eq("admin") |
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.
Interesting, I would not have expected that. Is this okay for audit purposes?
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.
retirement_check only runs in the system_context -- in which someone scheduled a retirement for a future date. Our modus operandi at the moment for system_context is always to set the requester to admin.
@miq-bot add_label hammer/yes |
can i please get 👀 on this again? |
d4fd938
to
260dd12
Compare
is there any chance someone would like to look at this code again please? |
@bdunne @gmcculloug please 👀 |
Anyone want to look at this? |
@d-m-u Any reason that this was closed? |
Sure, I gave up. |
Checked commit d-m-u@260dd12 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Okay look, fine, I'm sorry I was a snark and closed it, it does still need review though |
👻 |
Add check for existence of user for system_context (cherry picked from commit 265774d) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1678476
Hammer backport details:
|
sorry, i messed up, this should be hammer/no |
…eck" This reverts commit 65aa7d0.
Reverted the backport
|
system_context retirement only checks to see if the
evm_owner_id
is present on the object, it doesn't check that that id is that of a valid user.This cleans up the tests to have both cases, for when the user exists, and when it doesn't.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1673143.
Depends on
#18443