-
Notifications
You must be signed in to change notification settings - Fork 916
[WIP] Replace top level ems factories dummy provider #23648
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
base: master
Are you sure you want to change the base?
[WIP] Replace top level ems factories dummy provider #23648
Conversation
Currently we have what looks like a generic ems factory (e.g. ems_infra) but it really points to a concrete provider (ems_vmware) which has implications for supported features that are implicit rather than explicit in the specs that use them.
29ca30a to
89954de
Compare
|
@miq-bot cross-repo-tests ManageIQ/manageiq-providers-dummy_provider#77 |
From Pull Request: ManageIQ/manageiq#23648
89954de to
f712362
Compare
|
Down to 5 failures: |
f712362 to
32224d4
Compare
32224d4 to
603da04
Compare
| let(:ems_other) { FactoryBot.create(:ems_container) } | ||
|
|
||
| it "calls destroy for objects with ruby callbacks" do | ||
| expect_any_instance_of(ems.class).to receive(:destroy) |
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.
NOTE I don't know why this was failing for the DummyProvider::ContainerManager, but the rest of the tests check expect().to be_deleted not any_instance_of(). I don't see anything deep_delete specific in Kubernetes or Openshift so not sure why it is different.
I still don't like changing this test though so some investigation needed.
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.
I wonder if this is because real providers have child providers (ems) and the Dummy does not?
No description provided.