From cee8409ed230b4bce0729e1b4f78a8e9865117de Mon Sep 17 00:00:00 2001 From: Eric Stonfer Date: Tue, 26 Jun 2012 00:26:33 -0400 Subject: [PATCH] fix subnet tests in mocking mode --- lib/fog/aws/requests/compute/create_subnet.rb | 2 +- lib/fog/aws/requests/compute/describe_subnets.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/requests/compute/create_subnet.rb b/lib/fog/aws/requests/compute/create_subnet.rb index 81b7244df..6e3fd0e7a 100644 --- a/lib/fog/aws/requests/compute/create_subnet.rb +++ b/lib/fog/aws/requests/compute/create_subnet.rb @@ -54,7 +54,7 @@ module Fog 'state' => 'pending', 'vpcId' => Fog::AWS::Mock.request_id, 'cidrBlock' => cidrBlock, - 'availableIpAddressCount' => 16, + 'availableIpAddressCount' => "255", 'availabilityZone' => av_zone, 'tagSet' => {} ] diff --git a/lib/fog/aws/requests/compute/describe_subnets.rb b/lib/fog/aws/requests/compute/describe_subnets.rb index 0dfaed0cf..d3212066e 100644 --- a/lib/fog/aws/requests/compute/describe_subnets.rb +++ b/lib/fog/aws/requests/compute/describe_subnets.rb @@ -53,7 +53,7 @@ module Fog 'state' => 'pending', 'vpcId' => Fog::AWS::Mock.request_id, 'cidrBlock' => '10.255.255.0/24', - 'availableIpAddressCount' => 255, + 'availableIpAddressCount' => "255", 'availabilityZone' => 'us-east-1c', 'tagSet' => {} ]