Skip to content
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

Fix fetch methods in services controller #14087

Merged
merged 1 commit into from
Mar 1, 2017
Merged

Fix fetch methods in services controller #14087

merged 1 commit into from
Mar 1, 2017

Conversation

jntullo
Copy link

@jntullo jntullo commented Feb 27, 2017

When looking into #13664, I noticed that there were no tests for referencing objects via id or href on services create, and that it wasn't working as expected. Parsing by id worked but href parsing did not work because it was not specifying the correct collection:

  • :service needed to be :services
  • :orchestration_template needed to be :orchestration_templates
  • :orchestration_manager needed to be :providers

This fixes the above issues and also adds in appropriate tests.

@miq-bot add_label bug, api, test
@miq-bot assign @abellotti

(this is also my 💯 manageiq PR! 🎉 )

@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2017

Checked commit jntullo@be5b23e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🍰

@Fryguy Fryguy merged commit 8cd3703 into ManageIQ:master Mar 1, 2017
@Fryguy Fryguy added this to the Sprint 56 Ending Mar 13, 2017 milestone Mar 1, 2017
@abellotti
Copy link
Member

Nice find @jntullo 👍

@jntullo jntullo deleted the bug/allow_for_parent_service branch November 28, 2017 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants