aws-sdk-core 2.0.0.rc4 → 2.0.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/apis/CloudFront-2013-11-11.json +5502 -0
  3. data/apis/CloudWatch-2010-08-01.json +186 -1
  4. data/apis/DirectConnect-2012-10-25.json +758 -140
  5. data/apis/DynamoDB-2012-08-10.json +860 -2
  6. data/apis/EC2-2013-10-15.json +14698 -0
  7. data/apis/EMR-2009-03-31.json +86 -0
  8. data/apis/ElastiCache-2013-06-15.json +13 -5
  9. data/apis/ElasticBeanstalk-2010-12-01.json +141 -16
  10. data/apis/ElasticLoadBalancing-2012-06-01.json +0 -72
  11. data/apis/IAM-2010-05-08.json +156 -0
  12. data/apis/Kinesis-2013-12-02.json +9 -1
  13. data/apis/OpsWorks-2013-02-18.json +180 -6
  14. data/apis/RDS-2013-02-12.json +2 -1
  15. data/apis/RDS-2013-09-09.json +7963 -0
  16. data/apis/Redshift-2012-12-01.json +3273 -702
  17. data/apis/Route53-2012-12-12.json +2 -2
  18. data/apis/S3-2006-03-01.json +579 -538
  19. data/apis/SNS-2010-03-31.json +14 -0
  20. data/apis/SQS-2012-11-05.json +43 -6
  21. data/apis/STS-2011-06-15.json +81 -0
  22. data/apis/StorageGateway-2013-06-30.json +28 -28
  23. data/apis/source/cloudformation-2010-05-15.json +199 -199
  24. data/apis/source/cloudfront-2013-11-11.json +8828 -0
  25. data/apis/source/cloudfront-2013-11-11.paginators.json +32 -0
  26. data/apis/source/cloudfront-2013-11-11.waiters.json +29 -0
  27. data/apis/source/cloudsearch-2011-02-01.json +16 -23
  28. data/apis/source/datapipeline-2012-10-29.paginators.json +3 -2
  29. data/apis/source/directconnect-2012-10-25.json +1302 -363
  30. data/apis/source/dynamodb-2011-12-05.paginators.json +4 -1
  31. data/apis/source/dynamodb-2011-12-05.waiters.json +27 -0
  32. data/apis/source/dynamodb-2012-08-10.json +1634 -417
  33. data/apis/source/dynamodb-2012-08-10.paginators.json +4 -1
  34. data/apis/source/dynamodb-2012-08-10.waiters.json +25 -0
  35. data/apis/source/ec2-2013-10-15.json +19911 -0
  36. data/apis/source/ec2-2013-10-15.paginators.json +126 -0
  37. data/apis/source/ec2-2013-10-15.waiters.json +146 -0
  38. data/apis/source/elasticache-2013-06-15.json +10 -8
  39. data/apis/source/elasticache-2013-06-15.paginators.json +8 -2
  40. data/apis/source/elasticbeanstalk-2010-12-01.json +186 -32
  41. data/apis/source/elasticloadbalancing-2012-06-01.json +166 -293
  42. data/apis/source/elasticmapreduce-2009-03-31.json +229 -134
  43. data/apis/source/elastictranscoder-2012-09-25.json +1 -1
  44. data/apis/source/glacier-2012-06-01.paginators.json +3 -3
  45. data/apis/source/glacier-2012-06-01.waiters.json +23 -0
  46. data/apis/source/iam-2010-05-08.json +1306 -626
  47. data/apis/source/iam-2010-05-08.paginators.json +3 -0
  48. data/apis/source/kinesis-2013-12-02.json +4 -4
  49. data/apis/source/kinesis-2013-12-02.paginators.json +10 -4
  50. data/apis/source/monitoring-2010-08-01.json +336 -28
  51. data/apis/source/opsworks-2013-02-18.json +385 -102
  52. data/apis/source/rds-2013-01-10.paginators.json +6 -2
  53. data/apis/source/rds-2013-02-12.paginators.json +6 -2
  54. data/apis/source/rds-2013-09-09.json +10658 -0
  55. data/apis/source/rds-2013-09-09.paginators.json +110 -0
  56. data/apis/source/rds-2013-09-09.waiters.json +36 -0
  57. data/apis/source/redshift-2012-12-01.json +4759 -1237
  58. data/apis/source/redshift-2012-12-01.paginators.json +20 -1
  59. data/apis/source/redshift-2012-12-01.waiters.json +43 -0
  60. data/apis/source/route53-2012-12-12.paginators.json +2 -2
  61. data/apis/source/s3-2006-03-01.json +1032 -985
  62. data/apis/source/s3-2006-03-01.paginators.json +14 -3
  63. data/apis/source/s3-2006-03-01.waiters.json +27 -0
  64. data/apis/source/sns-2010-03-31.paginators.json +10 -0
  65. data/apis/source/sqs-2012-11-05.json +153 -101
  66. data/apis/source/storagegateway-2013-06-30.json +403 -442
  67. data/apis/source/storagegateway-2013-06-30.paginators.json +24 -0
  68. data/apis/source/sts-2011-06-15.json +258 -75
  69. data/apis/source/support-2013-04-15.paginators.json +0 -6
  70. data/apis/source/swf-2012-01-25.paginators.json +7 -7
  71. data/features/autoscaling/client.feature +6 -10
  72. data/features/autoscaling/{setup.rb → step_definitions.rb} +1 -1
  73. data/features/cloudformation/client.feature +5 -6
  74. data/features/cloudformation/{setup.rb → step_definitions.rb} +1 -1
  75. data/features/cloudfront/client.feature +5 -9
  76. data/features/cloudfront/{setup.rb → step_definitions.rb} +1 -1
  77. data/features/cloudsearch/client.feature +4 -6
  78. data/features/cloudsearch/{setup.rb → step_definitions.rb} +1 -1
  79. data/features/cloudwatch/client.feature +7 -9
  80. data/features/cloudwatch/{setup.rb → step_definitions.rb} +1 -1
  81. data/features/datapipeline/client.feature +5 -7
  82. data/features/datapipeline/{setup.rb → step_definitions.rb} +1 -1
  83. data/features/directconnect/client.feature +5 -7
  84. data/features/directconnect/{setup.rb → step_definitions.rb} +1 -1
  85. data/features/dynamodb/client.feature +6 -10
  86. data/features/dynamodb/simplified.feature +5 -9
  87. data/features/dynamodb/step_definitions.rb +9 -1
  88. data/features/ec2/client.feature +4 -9
  89. data/features/ec2/step_definitions.rb +3 -16
  90. data/features/elasticache/client.feature +4 -6
  91. data/features/elasticache/{setup.rb → step_definitions.rb} +1 -1
  92. data/features/elasticbeanstalk/client.feature +4 -6
  93. data/features/elasticbeanstalk/{setup.rb → step_definitions.rb} +1 -1
  94. data/features/elasticloadbalancing/client.feature +4 -6
  95. data/features/elasticloadbalancing/{setup.rb → step_definitions.rb} +1 -1
  96. data/features/elastictranscoder/client.feature +4 -6
  97. data/features/elastictranscoder/{setup.rb → step_definitions.rb} +1 -1
  98. data/features/emr/client.feature +4 -6
  99. data/features/emr/{setup.rb → step_definitions.rb} +1 -1
  100. data/features/env.rb +0 -2
  101. data/features/glacier/client.feature +10 -34
  102. data/features/glacier/step_definitions.rb +25 -8
  103. data/features/glacier/upload.feature +27 -0
  104. data/features/iam/client.feature +4 -6
  105. data/features/iam/{setup.rb → step_definitions.rb} +1 -1
  106. data/features/importexport/client.feature +4 -6
  107. data/features/importexport/{setup.rb → step_definitions.rb} +1 -1
  108. data/features/kinesis/client.feature +4 -6
  109. data/features/kinesis/{setup.rb → step_definitions.rb} +1 -1
  110. data/features/opsworks/client.feature +4 -6
  111. data/features/opsworks/{setup.rb → step_definitions.rb} +1 -1
  112. data/features/rds/client.feature +4 -6
  113. data/features/rds/{setup.rb → step_definitions.rb} +1 -1
  114. data/features/redshift/client.feature +4 -6
  115. data/features/redshift/{setup.rb → step_definitions.rb} +1 -1
  116. data/features/route53/client.feature +4 -6
  117. data/features/route53/{setup.rb → step_definitions.rb} +1 -1
  118. data/features/s3/buckets.feature +8 -0
  119. data/features/s3/step_definitions.rb +42 -3
  120. data/features/sdb/client.feature +4 -6
  121. data/features/sdb/{setup.rb → step_definitions.rb} +1 -1
  122. data/features/ses/client.feature +4 -6
  123. data/features/ses/{setup.rb → step_definitions.rb} +1 -1
  124. data/features/sns/client.feature +5 -6
  125. data/features/sns/{setup.rb → step_definitions.rb} +1 -1
  126. data/features/sqs/client.feature +5 -7
  127. data/features/sqs/step_definitions.rb +11 -0
  128. data/features/step_definitions.rb +88 -0
  129. data/features/storagegateway/client.feature +4 -6
  130. data/features/storagegateway/{setup.rb → step_definitions.rb} +1 -1
  131. data/features/sts/client.feature +5 -6
  132. data/features/sts/{setup.rb → step_definitions.rb} +1 -1
  133. data/features/swf/client.feature +5 -9
  134. data/features/swf/{setup.rb → step_definitions.rb} +1 -1
  135. data/lib/aws/api/shape_translator.rb +1 -0
  136. data/lib/aws/errors.rb +35 -11
  137. data/lib/aws/plugins/credentials.rb +11 -5
  138. data/lib/aws/plugins/regional_endpoint.rb +7 -3
  139. data/lib/aws/plugins/s3_regional_endpoint.rb +0 -2
  140. data/lib/aws/request_handler.rb +8 -3
  141. data/lib/aws/signers/s3.rb +14 -18
  142. data/lib/aws/version.rb +1 -1
  143. data/spec/aws/errors_spec.rb +39 -0
  144. data/spec/aws/plugins/credentials_spec.rb +12 -0
  145. data/spec/aws/plugins/region_endpoint_spec.rb +16 -4
  146. data/spec/aws/plugins/retry_errors_spec.rb +26 -26
  147. data/spec/aws/service_spec.rb +1 -1
  148. data/spec/fixtures/operations/route53/change_resource_record_sets.yml +18 -0
  149. data/tasks/test.rake +6 -18
  150. data/vendor/seahorse/lib/seahorse/client/http/headers.rb +20 -0
  151. data/vendor/seahorse/tasks/test.rake +2 -15
  152. metadata +77 -64
  153. data/features/common/step_definitions.rb +0 -63
  154. data/features/dynamodb/setup.rb +0 -8
  155. data/features/ec2/setup.rb +0 -6
  156. data/features/glacier/setup.rb +0 -16
  157. data/features/s3/setup.rb +0 -17
  158. data/features/sqs/setup.rb +0 -10
@@ -20,12 +20,6 @@
20
20
  },
21
21
  "DescribeTrustedAdvisorCheckSummaries": {
22
22
  "result_key": "summaries"
23
- },
24
- "DescribeSeverityLevels": {
25
- "result_key": "severityLevelsList"
26
- },
27
- "DescribeTrustedAdvisorChecks": {
28
- "result_key": "checks"
29
23
  }
30
24
  }
31
25
  }
@@ -1,45 +1,45 @@
1
1
  {
2
2
  "pagination": {
3
3
  "GetWorkflowExecutionHistory": {
4
+ "limit_key": "maximumPageSize",
4
5
  "input_token": "nextPageToken",
5
6
  "output_token": "nextPageToken",
6
- "limit_key": "maximumPageSize",
7
7
  "result_key": "events"
8
8
  },
9
9
  "ListActivityTypes": {
10
+ "limit_key": "maximumPageSize",
10
11
  "input_token": "nextPageToken",
11
12
  "output_token": "nextPageToken",
12
- "limit_key": "maximumPageSize",
13
13
  "result_key": "typeInfos"
14
14
  },
15
15
  "ListClosedWorkflowExecutions": {
16
+ "limit_key": "maximumPageSize",
16
17
  "input_token": "nextPageToken",
17
18
  "output_token": "nextPageToken",
18
- "limit_key": "maximumPageSize",
19
19
  "result_key": "executionInfos"
20
20
  },
21
21
  "ListDomains": {
22
+ "limit_key": "maximumPageSize",
22
23
  "input_token": "nextPageToken",
23
24
  "output_token": "nextPageToken",
24
- "limit_key": "maximumPageSize",
25
25
  "result_key": "domainInfos"
26
26
  },
27
27
  "ListOpenWorkflowExecutions": {
28
+ "limit_key": "maximumPageSize",
28
29
  "input_token": "nextPageToken",
29
30
  "output_token": "nextPageToken",
30
- "limit_key": "maximumPageSize",
31
31
  "result_key": "executionInfos"
32
32
  },
33
33
  "ListWorkflowTypes": {
34
+ "limit_key": "maximumPageSize",
34
35
  "input_token": "nextPageToken",
35
36
  "output_token": "nextPageToken",
36
- "limit_key": "maximumPageSize",
37
37
  "result_key": "typeInfos"
38
38
  },
39
39
  "PollForDecisionTask": {
40
+ "limit_key": "maximumPageSize",
40
41
  "input_token": "nextPageToken",
41
42
  "output_token": "nextPageToken",
42
- "limit_key": "maximumPageSize",
43
43
  "result_key": "events"
44
44
  }
45
45
  }
@@ -3,18 +3,14 @@
3
3
  Feature: Auto Scaling
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "describe_scaling_process_types" on "autoscaling"
7
- Then the response "processes" should be an array
6
+ When I call the "DescribeScalingProcessTypes" API
7
+ Then the response should contain a list of "Processes"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "create_launch_configuration" on "autoscaling" with:
11
- """
12
- {
13
- launch_configuration_name: "",
14
- image_id: "ami-12345678",
15
- instance_type: "m1.small",
16
- }
17
- """
10
+ When I attempt to call the "CreateLaunchConfiguration" API with:
11
+ | LaunchConfigurationName | |
12
+ | ImageId | ami-12345678 |
13
+ | InstanceType | m1.small |
18
14
  Then I expect the response error code to be "ValidationError"
19
15
  And I expect the response error message to include:
20
16
  """
@@ -1,5 +1,5 @@
1
1
  Before("@autoscaling") do
2
- @autoscaling = Aws.autoscaling
2
+ @autoscaling = @client = Aws.autoscaling
3
3
  end
4
4
 
5
5
  After("@autoscaling") do
@@ -3,14 +3,13 @@
3
3
  Feature: AWS CloudFormation
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "list_stacks" on "cloudformation"
7
- Then the response "stack_summaries" should be an array
6
+ When I call the "ListStacks" API
7
+ Then the response should contain a list of "StackSummaries"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "create_stack" on "cloudformation" with:
11
- """
12
- { stack_name: "fakestack", template_url: "http://s3.amazonaws.com/foo/bar" }
13
- """
10
+ When I attempt to call the "CreateStack" API with:
11
+ | StackName | fakestack |
12
+ | TemplateURL | http://s3.amazonaws.com/foo/bar |
14
13
  Then I expect the response error code to be "ValidationError"
15
14
  And I expect the response error message to include:
16
15
  """
@@ -1,5 +1,5 @@
1
1
  Before("@cloudformation") do
2
- @cloudformation = Aws.cloudformation
2
+ @cloudformation = @client = Aws.cloudformation
3
3
  end
4
4
 
5
5
  After("@cloudformation") do
@@ -3,17 +3,13 @@
3
3
  Feature: Amazon CloudFront
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "list_distributions" on "cloudfront" with:
7
- """
8
- { max_items: 1 }
9
- """
10
- Then the response "distribution_list.items" should be an array
6
+ When I call the "ListDistributions" API with:
7
+ | MaxItems | 1 |
8
+ Then the response should contain a "DistributionList" with a list of "Items"
11
9
 
12
10
  Scenario: Error handling
13
- Given I call "get_distribution" on "cloudfront" with:
14
- """
15
- { id: '123' }
16
- """
11
+ When I attempt to call the "GetDistribution" API with:
12
+ | Id | fake-id |
17
13
  Then I expect the response error code to be "NoSuchDistribution"
18
14
  And I expect the response error message to include:
19
15
  """
@@ -1,5 +1,5 @@
1
1
  Before("@cloudfront") do
2
- @cloudfront = Aws.cloudfront
2
+ @cloudfront = @client = Aws.cloudfront
3
3
  end
4
4
 
5
5
  After("@cloudfront") do
@@ -3,14 +3,12 @@
3
3
  Feature: Amazon CloudSearch
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "describe_domains" on "cloudsearch"
7
- Then the response "domain_status_list" should be an array
6
+ When I call the "DescribeDomains" API
7
+ Then the response should contain a "DomainStatusList"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "describe_index_fields" on "cloudsearch" with:
11
- """
12
- { domain_name: "fakedomain" }
13
- """
10
+ When I attempt to call the "DescribeIndexFields" API with:
11
+ | DomainName | fakedomain |
14
12
  Then I expect the response error code to be "ResourceNotFound"
15
13
  And I expect the response error message to include:
16
14
  """
@@ -1,5 +1,5 @@
1
1
  Before("@cloudsearch") do
2
- @cloudsearch = Aws.cloudsearch
2
+ @cloudsearch = @client = Aws.cloudsearch
3
3
  end
4
4
 
5
5
  After("@cloudsearch") do
@@ -3,17 +3,15 @@
3
3
  Feature: Amazon CloudWatch
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "list_metrics" on "cloudwatch" with:
7
- """
8
- { namespace: "AWS/EC2" }
9
- """
10
- Then the response "metrics" should be an array
6
+ When I call the "ListMetrics" API with:
7
+ | Namespace | AWS/EC2 |
8
+ Then the response should contain a list of "Metrics"
11
9
 
12
10
  Scenario: Error handling
13
- Given I call "set_alarm_state" on "cloudwatch" with:
14
- """
15
- { alarm_name:'abc', state_value:'mno', state_reason:'xyz' }
16
- """
11
+ When I attempt to call the "SetAlarmState" API with:
12
+ | AlarmName | abc |
13
+ | StateValue | mno |
14
+ | StateReason | xyz |
17
15
  Then I expect the response error code to be "ValidationError"
18
16
  And I expect the response error message to include:
19
17
  """
@@ -1,5 +1,5 @@
1
1
  Before("@cloudwatch") do
2
- @cloudwatch = Aws.cloudwatch
2
+ @cloudwatch = @client = Aws.cloudwatch
3
3
  end
4
4
 
5
5
  After("@cloudwatch") do
@@ -3,16 +3,14 @@
3
3
  Feature: AWS Data Pipeline
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "list_pipelines" on "datapipeline"
7
- Then the response "pipeline_id_list" should be an array
6
+ When I call the "ListPipelines" API
7
+ Then the response should contain a "PipelineIdList"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "describe_pipelines" on "datapipeline" with:
11
- """
12
- { pipeline_ids: ['fake_pipeline'] }
13
- """
10
+ When I attempt to call the "GetPipelineDefinition" API with:
11
+ | PipelineId | fake-id |
14
12
  Then I expect the response error code to be "PipelineNotFoundException"
15
13
  And I expect the response error message to include:
16
14
  """
17
- fake_pipeline pipeline does not exist
15
+ fake-id pipeline does not exist
18
16
  """
@@ -1,5 +1,5 @@
1
1
  Before("@datapipeline") do
2
- @datapipeline = Aws.datapipeline
2
+ @datapipeline = @client = Aws.datapipeline
3
3
  end
4
4
 
5
5
  After("@datapipeline") do
@@ -3,16 +3,14 @@
3
3
  Feature: AWS Direct Connect
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "describe_offerings" on "directconnect"
7
- Then the response "offerings" should be an array
6
+ When I call the "DescribeConnections" API
7
+ Then the response should contain a list of "Connections"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "describe_offering_detail" on "directconnect" with:
11
- """
12
- { offering_id: 'fake_offering' }
13
- """
10
+ When I attempt to call the "DescribeConnections" API with:
11
+ | connectionId | fake-connection |
14
12
  Then I expect the response error code to be "DirectConnectClientException"
15
13
  And I expect the response error message to include:
16
14
  """
17
- Offering not found: fake_offering
15
+ Connection ID fake-connection has an invalid format
18
16
  """
@@ -1,5 +1,5 @@
1
1
  Before("@directconnect") do
2
- @directconnect = Aws.directconnect
2
+ @directconnect = @client = Aws.directconnect
3
3
  end
4
4
 
5
5
  After("@directconnect") do
@@ -3,19 +3,15 @@
3
3
  Feature: Amazon DynamoDB
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "list_tables" on "dynamodb" with:
7
- """
8
- { limit: 1 }
9
- """
10
- Then the response "table_names" should be an array
6
+ When I call the "ListTables" API with:
7
+ | Limit | 1 |
8
+ Then the response should contain a list of "TableNames"
11
9
 
12
10
  Scenario: Error handling
13
- Given I call "describe_table" on "dynamodb" with:
14
- """
15
- { table_name: 'fake_table' }
16
- """
11
+ When I attempt to call the "DescribeTable" API with:
12
+ | TableName | fake-table |
17
13
  Then I expect the response error code to be "ResourceNotFoundException"
18
14
  And I expect the response error message to include:
19
15
  """
20
- Requested resource not found: Table: fake_table not found
16
+ Requested resource not found: Table: fake-table not found
21
17
  """
@@ -10,23 +10,19 @@ Feature: Amazon DynamoDB without translation
10
10
  Given I disable translation features Aws::DynamoDB
11
11
 
12
12
  Scenario: Sending a request with a simplified hash structure
13
- When I call "list_tables" on "dynamodb" with:
14
- """
15
- { 'Limit' => 1 }
16
- """
13
+ When I call the "ListTables" API with:
14
+ | Limit | 1 |
17
15
  Then the HTTP request body should be:
18
16
  """
19
17
  {"Limit":1}
20
18
  """
21
19
 
22
20
  Scenario: Receiving a response with a simplified hash structure
23
- When I call "list_tables" on "dynamodb"
21
+ When I call the "ListTables" API
24
22
  Then I expect response data to be a hash
25
23
  And I expect response data["TableNames"] to be an array
26
24
 
27
25
  Scenario: Using simple mode does not disable error handling
28
- When I call "describe_table" on "dynamodb" with:
29
- """
30
- { 'TableName' => 'fake-table' }
31
- """
26
+ When I attempt to call the "DescribeTable" API with:
27
+ | TableName | fake_table |
32
28
  Then I expect the response error code to be "ResourceNotFoundException"
@@ -1,3 +1,11 @@
1
+ Before("@dynamodb") do
2
+ @dynamodb = @client = Aws.dynamodb
3
+ end
4
+
5
+ After("@dynamodb") do
6
+ end
7
+
1
8
  Given(/^I disable translation features Aws::DynamoDB$/) do
2
- @dynamodb = Aws.dynamodb(raw_json: true)
9
+ @raw_json = true
10
+ @dynamodb = @client = Aws.dynamodb(raw_json: true)
3
11
  end
@@ -3,17 +3,12 @@
3
3
  Feature: Amazon Elastic Compute Cloud
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "describe_regions" on "ec2" with:
7
- """
8
- { region_names: ['us-west-2'] }
9
- """
10
- Then the response "regions" should be an array
6
+ When I call the "DescribeRegions" API
7
+ Then the response should contain a list of "Regions"
11
8
 
12
9
  Scenario: Error handling
13
- Given I call "describe_instances" on "ec2" with:
14
- """
15
- { instance_ids: ['i-12345678'] }
16
- """
10
+ When I attempt to call the "DescribeInstances" API with:
11
+ | InstanceIds | ['i-12345678'] |
17
12
  Then I expect the response error code to be "InvalidInstanceIDNotFound"
18
13
  And I expect the response error message to include:
19
14
  """
@@ -1,19 +1,6 @@
1
- Given(/^I describe the EC2 region "(.*?)"$/) do |region_name|
2
- @region = @ec2.describe_regions(region_names: [region_name]).data.regions.first
1
+ Before("@ec2") do
2
+ @ec2 = @client = Aws.ec2
3
3
  end
4
4
 
5
- Then(/^the EC2 endpoint for the region should be "(.*?)"$/) do |endpoint|
6
- expect(@region.endpoint).to eq(endpoint)
7
- end
8
-
9
- Given(/^I describe a non-existent instance$/) do
10
- begin
11
- @ec2.describe_instances(instance_ids: ['i-12345678'])
12
- rescue => error
13
- @error = error
14
- end
15
- end
16
-
17
- Then(/^a "(.*?)" error should be raised$/) do |error_class|
18
- expect(@error.class.name).to match(error_class)
5
+ After("@ec2") do
19
6
  end
@@ -3,14 +3,12 @@
3
3
  Feature: ElastiCache
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "describe_events" on "elasticache"
7
- Then the response "events" should be an array
6
+ When I call the "DescribeEvents" API
7
+ Then the response should contain a list of "Events"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "describe_cache_clusters" on "elasticache" with:
11
- """
12
- { cache_cluster_id: 'fake_cluster' }
13
- """
10
+ When I attempt to call the "DescribeCacheClusters" API with:
11
+ | CacheClusterId | fake_cluster |
14
12
  Then I expect the response error code to be "InvalidParameterValue"
15
13
  And I expect the response error message to include:
16
14
  """
@@ -1,5 +1,5 @@
1
1
  Before("@elasticache") do
2
- @elasticache = Aws.elasticache
2
+ @elasticache = @client = Aws.elasticache
3
3
  end
4
4
 
5
5
  After("@elasticache") do
@@ -3,14 +3,12 @@
3
3
  Feature: AWS Elastic Beanstalk
4
4
 
5
5
  Scenario: Making a basic request
6
- When I call "list_available_solution_stacks" on "elasticbeanstalk"
7
- Then the response "solution_stacks" should be an array
6
+ When I call the "ListAvailableSolutionStacks" API
7
+ Then the response should contain a list of "SolutionStacks"
8
8
 
9
9
  Scenario: Error handling
10
- Given I call "describe_environment_resources" on "elasticbeanstalk" with:
11
- """
12
- { environment_id: 'fake_environment' }
13
- """
10
+ When I attempt to call the "DescribeEnvironmentResources" API with:
11
+ | EnvironmentId | fake_environment |
14
12
  Then I expect the response error code to be "InvalidParameterValue"
15
13
  And I expect the response error message to include:
16
14
  """