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

Add subresource_action_identifier spec helper #225

Merged
merged 1 commit into from
Nov 22, 2017
Merged

Add subresource_action_identifier spec helper #225

merged 1 commit into from
Nov 22, 2017

Conversation

jntullo
Copy link

@jntullo jntullo commented Nov 22, 2017

The current subcollection_action_identifier spec helper does not account for subresource actions, which means that the subresource action cannot not be tested if they have a different identifier than the subcollection action. This adds in a new subresource_action_identifier which takes into account both subresource actions defined on the type and on the subtype. This will now allow the orchestration_template sub collection actions to be identified properly. This also adjusts a snapshots spec to ensure that the helper works for both cases of identifiers (on the type and subtype)

Follow up to #196

@miq-bot assign @abellotti

The current subcollection_action_identifier does not account for subresource actions, which meant that the subresource action could not have a different identifier than the subcollection action. This adds in a new subresource_action_identifier which takes into account both subresource actions defined on the type and on the subtype. This will now allow the orchestration template sub collection actions to be identified properly. Also adjusts a snapshots spec to ensure that the helper works for both cases of identifiers.
@miq-bot
Copy link
Member

miq-bot commented Nov 22, 2017

Checked commit jntullo@718202b with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 🍰

@abellotti
Copy link
Member

Looks good. Thanks @jntullo for fixing this 👍

@abellotti abellotti merged commit 7899ba6 into ManageIQ:master Nov 22, 2017
@abellotti abellotti added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 22, 2017
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.

3 participants