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 MiqRequest factory with MiqApproval #16939

Merged
merged 1 commit into from
Feb 19, 2018

Conversation

tumido
Copy link
Member

@tumido tumido commented Feb 2, 2018

Provide a MiqRequest factory which has an MiqApproval. Required to test that report_data is capable to query based on reason.

Related: ManageIQ/manageiq-ui-classic#3274

@tumido
Copy link
Member Author

tumido commented Feb 2, 2018

@miq-bot add_label wip, test

@tumido
Copy link
Member Author

tumido commented Feb 5, 2018

@miq-bot remove_label wip

@tumido tumido changed the title [WIP] Add MiqRequest factory with MiqApproval Add MiqRequest factory with MiqApproval Feb 5, 2018
@tumido
Copy link
Member Author

tumido commented Feb 5, 2018

cc @martinpovolny

@miq-bot miq-bot removed the wip label Feb 5, 2018
source { create(:miq_template) }

after(:create) do |request, evaluator|
request.miq_approvals << FactoryGirl.create(:miq_approval, :reason => evaluator.reason)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a trait instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure it can! 😉

@martinpovolny
Copy link
Member

ping, @tumido ?

@tumido tumido force-pushed the miq_requests_scopes branch from 52e04ec to c52b959 Compare February 19, 2018 13:05
@miq-bot
Copy link
Member

miq-bot commented Feb 19, 2018

Checked commit tumido@c52b959 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@martinpovolny
Copy link
Member

@bdunne : is it ok now?

@bdunne bdunne merged commit fb9e78a into ManageIQ:master Feb 19, 2018
@bdunne bdunne self-assigned this Feb 19, 2018
@bdunne bdunne added this to the Sprint 80 Ending Feb 26, 2018 milestone Feb 19, 2018
@tumido tumido deleted the miq_requests_scopes branch June 26, 2018 14:17
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