-
Notifications
You must be signed in to change notification settings - Fork 897
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 two new types to MW server factories #16478
Conversation
@miq-bot add_label bug,gaprindashvili/yes, providers/middleware |
@abonas this PR is required to be merged before ManageIQ/manageiq-ui-classic#2724 so we can update tests of topology. |
Checked commit karelhala@722ab56 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot add_label test |
:parent => :middleware_server do | ||
end | ||
|
||
factory :hawkular_middleware_server_eap, |
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.
If I am not wrong, you can move those three inherited factories within the middleware_server
factory and then remove the parent => :middleware_server
attribute from each child factory definition.
Here a bit of more context:
https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#inheritance
Do you think it worth to change it?
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.
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.
@abonas is right we (rightly or wrongly) follow this pattern, e.g. see the orchestration_stack factory https://github.com/ManageIQ/manageiq/blob/master/spec/factories/orchestration_stack.rb
👍 on this for consistency
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.
For me, it's OK.
:parent => :middleware_server do | ||
end | ||
|
||
factory :hawkular_middleware_server_eap, |
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.
@abonas is right we (rightly or wrongly) follow this pattern, e.g. see the orchestration_stack factory https://github.com/ManageIQ/manageiq/blob/master/spec/factories/orchestration_stack.rb
👍 on this for consistency
Add two new types to MW server factories (cherry picked from commit 2a3700b)
Gaprindashvili backport details:
|
@agrare could you please add a milestone here? I believe it belongs to 74. thanks |
Merge first
This PR enables 2 new middleware server types for testing purposes in ui-classic repository.