Skip to content

Commit

Permalink
Check that other cloud provider's provider_region isn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Apr 6, 2018
1 parent 7da0503 commit be8a807
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
:provider_region => 42)
ems_stub.create!(:type => 'ManageIQ::Providers::Amazon::CloudManager',
:provider_region => 42)
ems_stub.create!(:type => 'ManageIQ::Providers::Azure::CloudManager',
:provider_region => 42)
ems_stub.create!(:type => 'ManageIQ::Providers::Openstack::CloudManager',
:provider_region => 42)
ems_stub.create!(:type => 'ManageIQ::Providers::Vmware::CloudManager',
:provider_region => 42)

migrate
end
Expand All @@ -18,7 +24,7 @@
end

it 'does not set provider_region to nil for other providers' do
expect(ems_stub.where(:provider_region => 42).count).to eq 1
expect(ems_stub.where(:provider_region => 42).count).to eq 4
end
end
end

0 comments on commit be8a807

Please sign in to comment.