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
fixes #8612 - Makes output consistent for deleting act key, BZ1171092 #4854
Conversation
1b2913b
to
bc25b38
Compare
@controller.stubs(:sync_task).returns(true) | ||
delete :destroy, :organization_id => @organization.id, :id => @activation_key.id | ||
assert_sync_task(::Actions::Katello::ActivationKey::Destroy) do |act_key| | ||
act_key.id.must_equal @activation_key.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.
I think this should use asserts. The change is to respond with the task instead of a message; however, this test update won't catch this case if this is ever regressed.
bc25b38
to
1ea6aa7
Compare
51af34d
to
c99f5ed
Compare
Still not sure this is achieving what my previous comment was referring to. Since the change contained within this PR is to respond with the task object instead of a message for consistency, I feel the test should be updated to check that the response from the API is a task object. |
I think what ehelms is saying, is that we should try to somehow assert that the response is rendering with the appropriate template. So you may want to use something like: assert_template %w(katello/api/v2/common/async) |
c99f5ed
to
d4ee2dd
Compare
d4ee2dd
to
16b0d91
Compare
ACK |
fixes #8612 - Makes output consistent for deleting act key, BZ1171092
No description provided.