File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ module Formats
4141 'requestId' => String
4242 }
4343
44+ AVAILABILITY_ZONES = {
45+ 'availabilityZoneInfo' => [ {
46+ 'regionName' => String ,
47+ 'zoneName' => String ,
48+ 'zoneState' => String
49+ } ] ,
50+ 'requestId' => String
51+ }
52+
4453 BASIC = {
4554 'requestId' => String ,
4655 'return' => ::Fog ::Boolean
Original file line number Diff line number Diff line change 1+ Shindo . tests ( 'AWS::EC2 | availability zone requests' , [ 'aws' ] ) do
2+
3+ tests ( 'success' ) do
4+
5+ tests ( '#describe_availability_zones' ) . formats ( AWS ::EC2 ::Formats ::AVAILABILITY_ZONES ) do
6+ AWS [ :ec2 ] . describe_availability_zones . body
7+ end
8+
9+ tests ( "#describe_availability_zones('us-east-1a')" ) . formats ( AWS ::EC2 ::Formats ::AVAILABILITY_ZONES ) do
10+ AWS [ :ec2 ] . describe_availability_zones ( 'us-east-1a' ) . body
11+ end
12+
13+ end
14+
15+ tests ( 'failure' ) do
16+
17+ tests ( "#describe_availability_zones('not-a-zone')" ) . raises ( Excon ::Errors ::BadRequest ) do
18+ AWS [ :ec2 ] . describe_availability_zones ( 'not-a-zone' )
19+ end
20+
21+ end
22+
23+ end
Original file line number Diff line number Diff line change 11Shindo . tests ( 'AWS::EC2 | region requests' , [ 'aws' ] ) do
2+
23 tests ( 'success' ) do
34
45 tests ( "#describe_regions" ) . formats ( AWS ::EC2 ::Formats ::REGIONS ) do
1011 end
1112
1213 end
14+
1315 tests ( 'failure' ) do
1416
1517 tests ( "#describe_regions('not-a-region')" ) . raises ( Excon ::Errors ::BadRequest ) do
16- AWS [ :ec2 ] . describe_regions ( 'not-a-region' ) . body
18+ AWS [ :ec2 ] . describe_regions ( 'not-a-region' )
1719 end
1820 end
21+
1922end
You can’t perform that action at this time.
0 commit comments