-
Notifications
You must be signed in to change notification settings - Fork 217
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 #12597: remove extraneous method definition in the DNS API tests #350
Conversation
@witlessbird Could you take a look at the test failure? I removed the extra method definition, which seems to be blocking this test before, and now that it is executing it fails. Was originally added in 42b9581
Smart Proxy is returning 404 in this case. That seems correct to me? |
Oops, sorry about the failure, I should've noticed that in the review and also re-run tests with the new rubocop. Either 404 or 400 seems reasonable to me. Returning 400 as dns_api.rb intends would require changing the route to |
I'm not sure why it's returning 404 (this implies parameter validator isn't catching that the required parameter is missing), let me look into this. I think I favour returning a 400, but 404 seems reasonable too. |
The route doesn't match. It's defined as |
A thought - it looks like all other delete routes are the same, so we probably shouldn't change just this one. |
Of course, always forget this bit. Agree that the behaviour in this case should match other 'delete' calls. |
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
@witlessbird I merged in your further change - thank you! I will be offline a lot this week for the US Thanksgiving holiday. Please let me know if I need to squash on this branch, if it it'll get taken care of in a squash-cherry-pick to develop? |
@sodabrew: could you squash the commits please? |
ok, got me while I'm still sitting at the desk! |
And removed redundant validation in dns api 'delete' call
af4b48b
to
d5b64d7
Compare
http://projects.theforeman.org/issues/12597