Skip to content

Commit b8fe3ad

Browse files
author
Miha Pleško
committed
Move EMS factory from core repo to plugin repo
With this commit we move the factory which was originally meant to reside in core repo into our base repo. Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
1 parent 9ddc51e commit b8fe3ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/factories/ext_management_system.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
FactoryBot.define do
2+
factory :ems_azure_stack,
3+
:aliases => ["manageiq/providers/azure_stack/cloud_manager"],
4+
:class => "ManageIQ::Providers::AzureStack::CloudManager",
5+
:parent => :ems_cloud
6+
7+
factory :ems_azure_stack_with_authentication,
8+
:parent => :ems_azure_stack do
9+
azure_tenant_id { "ABCDEFGHIJABCDEFGHIJ0123456789AB" }
10+
subscription { "0123456789ABCDEFGHIJABCDEFGHIJKL" }
11+
after :create do |x|
12+
x.authentications << FactoryBot.create(:authentication)
13+
end
14+
end
15+
216
factory :ems_azure_stack_with_vcr_authentication, :parent => :ems_azure_stack do
317
zone do
418
_guid, _server, zone = EvmSpecHelper.create_guid_miq_server_zone

0 commit comments

Comments
 (0)