-
Notifications
You must be signed in to change notification settings - Fork 896
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
Extract factories to provider gems #11413
Conversation
see #11414 for moving forward on this one |
45d0472
to
4816bf2
Compare
@durandom One thought: Is it wise to effectively couple Factories that are used in the tests of MIQ to the release of a provider gem should changes need to be required? Initially that seems unwise to me and perhaps the tests related to the provider in MIQ should be deleted or moved to the gem first. However, I also acknowledge that you shouldn't need to change the factory for a given spec in MIQ and can do whatever is necessary (albeit ugly) to not have to change the gem. In other words: Just making sure you've considered that. Sounds like you have quite the plan in action on this and it's going in a great direction. |
This is what I'm trying to remove.
once the above is completed for everything, we can remove the inclusion of provider factories from the miq codebase. And 1. and 2. should ideally go into one PR, but thats not really possible for some widespread factories.
not really 😄 just making small steps and see what happens. If you have a better idea, I'm all ears |
Oh, and most of the specifics to a factory is setting the |
This looks fine to me 👍 Whoever can merge this, merge the associated provider PR first, then rerun specs on this one, then merge this one if green. This is to avoid causing a red MIQ master at all (far worse than the amazon provider specs failing for a bit). |
4816bf2
to
fd9d623
Compare
Checked commits durandom/manageiq@f2ec3be~...fd9d623 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
@jrafanie can you merge this? @chrisarcand gave his 👍 |
@durandom @blomquisg This did not make it into Euwe branch. Please label |
@chessbyte thanks for the heads up @miq-bot add_label euwe/yes |
Extract factories to provider gems (cherry picked from commit 0aa3437)
Euwe Backport details: $ git log
commit 598289daaa9e75d57cc22ce9270182739883036d
Author: Greg Blomquist <[email protected]>
Date: Fri Sep 23 13:24:24 2016 -0400
Merge pull request #11413 from durandom/extract_factories
Extract factories to provider gems
(cherry picked from commit 0aa343726958977803f3c314380551cf11a24918) |
Provider specific factories should be located in the provider repository.
Since the manageiq codebase still uses provider specific factories a lot, we include all factories from providers. This can be undone once we are clean.
once #11083 is merged we can use
Vmdb::Plugins
instead of looking atRails::Engine
Depends on ManageIQ/manageiq-providers-amazon#48
Unfortunately this is a 🐔 🥚 PR - Without this being merged amazon will fail with
Factory already registered
and without the amazon PR being merged, this one will fail withUnknown Factory :floating_ip_amazon
. I suggest merging the amazon PR first.That this is only the first PR in making the specs more loosely coupled from the providers 😄
@miq-bot add_labels test, refactoring, pluggable providers
@miq-bot assign chrisarcand
@jrafanie @chrisarcand pls review