Skip to content
Browse files

Fixing specs according to the new subnet setup

  • Loading branch information...
1 parent 7b947eb commit 346bb97d32059ae7915219b9b331249259347b52 Jeffrey Peckham and Vinicius Fuentes committed Mar 15, 2013
Showing with 8 additions and 5 deletions.
  1. +2 −1 bosh_common/lib/common/common.rb
  2. +6 −4 spec/external/aws_bootstrap_spec.rb
View
3 bosh_common/lib/common/common.rb
@@ -55,7 +55,8 @@ def retryable(options = {}, &block)
return if opts[:tries] == 0
- on_exception, tries = [ opts[:on] ].flatten, opts[:tries]
+ on_exception = [ opts[:on] ].flatten
+ tries = opts[:tries]
retries = 0
retry_exception = nil
View
10 spec/external/aws_bootstrap_spec.rb
@@ -87,10 +87,12 @@
cf_local_route = cf_routes.detect { |route| route.destination_cidr_block == "10.10.0.0/16" }
cf_local_route.target.id.should == "local"
- cf2_routes = cf_subnet_2.route_table.routes
- cf2_routes.any? { |route| route.destination_cidr_block == "0.0.0.0/0" }.should be_false
- cf2_local_route = cf2_routes.detect { |route| route.destination_cidr_block == "10.10.0.0/16" }
- cf2_local_route.target.id.should == "local"
+ services_routes = services_subnet.route_table.routes
+ services_default_route = services_routes.detect { |route| route.destination_cidr_block == "0.0.0.0/0" }
+ services_default_route.target.should == bosh_subnet.instances.first
+
+ services_local_route = services_routes.detect { |route| route.destination_cidr_block == "10.10.0.0/16" }
+ services_local_route.target.id.should == "local"
end
it "assigns DHCP options" do

0 comments on commit 346bb97

Please sign in to comment.
Something went wrong with that request. Please try again.