-
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
Automate - Added finish retirement notification. #14780
Conversation
84b9c7f
to
0dd48a1
Compare
@tinaafitz |
@billfitzgerald0120 Looks good. |
@tinaafitz @billfitzgerald0120 I see that we create a notification at the start of a state machine So the start is happening in the automate method side but the finish is in the app/models side. |
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.
Requesting changes since it seems like a notification will always be created. Let me know if that is not the case.
@@ -154,6 +154,7 @@ def invoke_ae | |||
end | |||
|
|||
it "#finish_retirement" do | |||
allow(Notification).to receive(: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.
Is a notification only created sometimes? If it is always created, these should use expect
.
@mkanoor We should add notifications to model methods when available, but there is no model method for start. |
Checked commits billfitzgerald0120/manageiq@0dd48a1~...6d66a1a with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@bdunne A notification will always be created so I changed the allow to expect in all 5 tests. |
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.
👍 Thanks @billfitzgerald0120
Automate - Added finish retirement notification. (cherry picked from commit 5164cd8)
Fine backport details:
|
Updated all 5 methods with finish retirement tests.
https://bugzilla.redhat.com/show_bug.cgi?id=1441991
@miq-bot add_label bug, fine/yes, automate