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

Added Lenovo vendor to physical server factory #15129

Merged
merged 2 commits into from
May 30, 2017

Conversation

MaysaMacedo
Copy link
Member

@MaysaMacedo MaysaMacedo commented May 17, 2017

This PR added:

  • Lenovo vendor to Physical Server Factory.

Related to #15128

@imtayadeway
Copy link
Contributor

@MaysaMacedo can you link to where/why this is needed? Are you adding a validation to PhysicalServer on this attribute?

@MaysaMacedo
Copy link
Member Author

This is needed for PR(#1173)

@imtayadeway
Copy link
Contributor

@MaysaMacedo I don't see it being used anywhere? In general, it's best only to add defaults to factories if there's a validation that requires them. If that value is important to the thing you're testing, it's better expressed in the body of the test when you actually build the object.

@imtayadeway
Copy link
Contributor

@MaysaMacedo ah I see now it's being added as part of #15128 - can you link to that in your description?

@MaysaMacedo
Copy link
Member Author

Sure!

@bronaghs
Copy link

@juliancheal - looks like there are a few PRs that are interdependent, can you review them collectively, thanks.

@bronaghs
Copy link

@miq-bot assign @juliancheal

@miq-bot miq-bot assigned juliancheal and unassigned bronaghs May 25, 2017
@@ -1,4 +1,5 @@
FactoryGirl.define do
factory :physical_server do
vendor "Lenovo"
Copy link
Member

Choose a reason for hiding this comment

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

@bdunne
Copy link
Member

bdunne commented May 30, 2017

Also, I would add this change to the PR that requires it, I don't think it's enough to stand on its own since it doesn't fix a broken test or add any new tests.

@miq-bot
Copy link
Member

miq-bot commented May 30, 2017

Checked commits MaysaMacedo/manageiq@4a68444~...fea5a63 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@MaysaMacedo
Copy link
Member Author

MaysaMacedo commented May 30, 2017

@bdunne The PR that requires this one is on manageiq-ui-classic, and there is a spec failure caused by the missing of this declaration on the Factory.

@bdunne bdunne assigned bdunne and unassigned juliancheal May 30, 2017
@bdunne bdunne merged commit f7eea3a into ManageIQ:master May 30, 2017
@bdunne bdunne added this to the Sprint 62 Ending Jun 5, 2017 milestone May 30, 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.

6 participants