Skip to content

Commit

Permalink
Adds spec for cloud network with availability zone
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Dec 20, 2017
1 parent c7ec029 commit 50932df
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,15 @@
@sg2 = FactoryGirl.create(:security_group_amazon, :name => "sgn_2", :ext_management_system => ems.network_manager)
end

it "#allowed_cloud_networks" do
expect(workflow.allowed_cloud_networks.length).to eq(1)
context "#allowed_cloud_networks" do
it "without a zone" do
expect(workflow.allowed_cloud_networks.length).to_not be_zero
end

it "with a zone" do
workflow.values[:placement_availability_zone] = [@az1.id]
expect(workflow.allowed_cloud_networks.length).to eq(1)
end
end

context "#allowed_availability_zones" do
Expand Down

0 comments on commit 50932df

Please sign in to comment.