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.
- checksums.yaml +4 -4
- data/apis/CloudFront-2013-11-11.json +5502 -0
- data/apis/CloudWatch-2010-08-01.json +186 -1
- data/apis/DirectConnect-2012-10-25.json +758 -140
- data/apis/DynamoDB-2012-08-10.json +860 -2
- data/apis/EC2-2013-10-15.json +14698 -0
- data/apis/EMR-2009-03-31.json +86 -0
- data/apis/ElastiCache-2013-06-15.json +13 -5
- data/apis/ElasticBeanstalk-2010-12-01.json +141 -16
- data/apis/ElasticLoadBalancing-2012-06-01.json +0 -72
- data/apis/IAM-2010-05-08.json +156 -0
- data/apis/Kinesis-2013-12-02.json +9 -1
- data/apis/OpsWorks-2013-02-18.json +180 -6
- data/apis/RDS-2013-02-12.json +2 -1
- data/apis/RDS-2013-09-09.json +7963 -0
- data/apis/Redshift-2012-12-01.json +3273 -702
- data/apis/Route53-2012-12-12.json +2 -2
- data/apis/S3-2006-03-01.json +579 -538
- data/apis/SNS-2010-03-31.json +14 -0
- data/apis/SQS-2012-11-05.json +43 -6
- data/apis/STS-2011-06-15.json +81 -0
- data/apis/StorageGateway-2013-06-30.json +28 -28
- data/apis/source/cloudformation-2010-05-15.json +199 -199
- data/apis/source/cloudfront-2013-11-11.json +8828 -0
- data/apis/source/cloudfront-2013-11-11.paginators.json +32 -0
- data/apis/source/cloudfront-2013-11-11.waiters.json +29 -0
- data/apis/source/cloudsearch-2011-02-01.json +16 -23
- data/apis/source/datapipeline-2012-10-29.paginators.json +3 -2
- data/apis/source/directconnect-2012-10-25.json +1302 -363
- data/apis/source/dynamodb-2011-12-05.paginators.json +4 -1
- data/apis/source/dynamodb-2011-12-05.waiters.json +27 -0
- data/apis/source/dynamodb-2012-08-10.json +1634 -417
- data/apis/source/dynamodb-2012-08-10.paginators.json +4 -1
- data/apis/source/dynamodb-2012-08-10.waiters.json +25 -0
- data/apis/source/ec2-2013-10-15.json +19911 -0
- data/apis/source/ec2-2013-10-15.paginators.json +126 -0
- data/apis/source/ec2-2013-10-15.waiters.json +146 -0
- data/apis/source/elasticache-2013-06-15.json +10 -8
- data/apis/source/elasticache-2013-06-15.paginators.json +8 -2
- data/apis/source/elasticbeanstalk-2010-12-01.json +186 -32
- data/apis/source/elasticloadbalancing-2012-06-01.json +166 -293
- data/apis/source/elasticmapreduce-2009-03-31.json +229 -134
- data/apis/source/elastictranscoder-2012-09-25.json +1 -1
- data/apis/source/glacier-2012-06-01.paginators.json +3 -3
- data/apis/source/glacier-2012-06-01.waiters.json +23 -0
- data/apis/source/iam-2010-05-08.json +1306 -626
- data/apis/source/iam-2010-05-08.paginators.json +3 -0
- data/apis/source/kinesis-2013-12-02.json +4 -4
- data/apis/source/kinesis-2013-12-02.paginators.json +10 -4
- data/apis/source/monitoring-2010-08-01.json +336 -28
- data/apis/source/opsworks-2013-02-18.json +385 -102
- data/apis/source/rds-2013-01-10.paginators.json +6 -2
- data/apis/source/rds-2013-02-12.paginators.json +6 -2
- data/apis/source/rds-2013-09-09.json +10658 -0
- data/apis/source/rds-2013-09-09.paginators.json +110 -0
- data/apis/source/rds-2013-09-09.waiters.json +36 -0
- data/apis/source/redshift-2012-12-01.json +4759 -1237
- data/apis/source/redshift-2012-12-01.paginators.json +20 -1
- data/apis/source/redshift-2012-12-01.waiters.json +43 -0
- data/apis/source/route53-2012-12-12.paginators.json +2 -2
- data/apis/source/s3-2006-03-01.json +1032 -985
- data/apis/source/s3-2006-03-01.paginators.json +14 -3
- data/apis/source/s3-2006-03-01.waiters.json +27 -0
- data/apis/source/sns-2010-03-31.paginators.json +10 -0
- data/apis/source/sqs-2012-11-05.json +153 -101
- data/apis/source/storagegateway-2013-06-30.json +403 -442
- data/apis/source/storagegateway-2013-06-30.paginators.json +24 -0
- data/apis/source/sts-2011-06-15.json +258 -75
- data/apis/source/support-2013-04-15.paginators.json +0 -6
- data/apis/source/swf-2012-01-25.paginators.json +7 -7
- data/features/autoscaling/client.feature +6 -10
- data/features/autoscaling/{setup.rb → step_definitions.rb} +1 -1
- data/features/cloudformation/client.feature +5 -6
- data/features/cloudformation/{setup.rb → step_definitions.rb} +1 -1
- data/features/cloudfront/client.feature +5 -9
- data/features/cloudfront/{setup.rb → step_definitions.rb} +1 -1
- data/features/cloudsearch/client.feature +4 -6
- data/features/cloudsearch/{setup.rb → step_definitions.rb} +1 -1
- data/features/cloudwatch/client.feature +7 -9
- data/features/cloudwatch/{setup.rb → step_definitions.rb} +1 -1
- data/features/datapipeline/client.feature +5 -7
- data/features/datapipeline/{setup.rb → step_definitions.rb} +1 -1
- data/features/directconnect/client.feature +5 -7
- data/features/directconnect/{setup.rb → step_definitions.rb} +1 -1
- data/features/dynamodb/client.feature +6 -10
- data/features/dynamodb/simplified.feature +5 -9
- data/features/dynamodb/step_definitions.rb +9 -1
- data/features/ec2/client.feature +4 -9
- data/features/ec2/step_definitions.rb +3 -16
- data/features/elasticache/client.feature +4 -6
- data/features/elasticache/{setup.rb → step_definitions.rb} +1 -1
- data/features/elasticbeanstalk/client.feature +4 -6
- data/features/elasticbeanstalk/{setup.rb → step_definitions.rb} +1 -1
- data/features/elasticloadbalancing/client.feature +4 -6
- data/features/elasticloadbalancing/{setup.rb → step_definitions.rb} +1 -1
- data/features/elastictranscoder/client.feature +4 -6
- data/features/elastictranscoder/{setup.rb → step_definitions.rb} +1 -1
- data/features/emr/client.feature +4 -6
- data/features/emr/{setup.rb → step_definitions.rb} +1 -1
- data/features/env.rb +0 -2
- data/features/glacier/client.feature +10 -34
- data/features/glacier/step_definitions.rb +25 -8
- data/features/glacier/upload.feature +27 -0
- data/features/iam/client.feature +4 -6
- data/features/iam/{setup.rb → step_definitions.rb} +1 -1
- data/features/importexport/client.feature +4 -6
- data/features/importexport/{setup.rb → step_definitions.rb} +1 -1
- data/features/kinesis/client.feature +4 -6
- data/features/kinesis/{setup.rb → step_definitions.rb} +1 -1
- data/features/opsworks/client.feature +4 -6
- data/features/opsworks/{setup.rb → step_definitions.rb} +1 -1
- data/features/rds/client.feature +4 -6
- data/features/rds/{setup.rb → step_definitions.rb} +1 -1
- data/features/redshift/client.feature +4 -6
- data/features/redshift/{setup.rb → step_definitions.rb} +1 -1
- data/features/route53/client.feature +4 -6
- data/features/route53/{setup.rb → step_definitions.rb} +1 -1
- data/features/s3/buckets.feature +8 -0
- data/features/s3/step_definitions.rb +42 -3
- data/features/sdb/client.feature +4 -6
- data/features/sdb/{setup.rb → step_definitions.rb} +1 -1
- data/features/ses/client.feature +4 -6
- data/features/ses/{setup.rb → step_definitions.rb} +1 -1
- data/features/sns/client.feature +5 -6
- data/features/sns/{setup.rb → step_definitions.rb} +1 -1
- data/features/sqs/client.feature +5 -7
- data/features/sqs/step_definitions.rb +11 -0
- data/features/step_definitions.rb +88 -0
- data/features/storagegateway/client.feature +4 -6
- data/features/storagegateway/{setup.rb → step_definitions.rb} +1 -1
- data/features/sts/client.feature +5 -6
- data/features/sts/{setup.rb → step_definitions.rb} +1 -1
- data/features/swf/client.feature +5 -9
- data/features/swf/{setup.rb → step_definitions.rb} +1 -1
- data/lib/aws/api/shape_translator.rb +1 -0
- data/lib/aws/errors.rb +35 -11
- data/lib/aws/plugins/credentials.rb +11 -5
- data/lib/aws/plugins/regional_endpoint.rb +7 -3
- data/lib/aws/plugins/s3_regional_endpoint.rb +0 -2
- data/lib/aws/request_handler.rb +8 -3
- data/lib/aws/signers/s3.rb +14 -18
- data/lib/aws/version.rb +1 -1
- data/spec/aws/errors_spec.rb +39 -0
- data/spec/aws/plugins/credentials_spec.rb +12 -0
- data/spec/aws/plugins/region_endpoint_spec.rb +16 -4
- data/spec/aws/plugins/retry_errors_spec.rb +26 -26
- data/spec/aws/service_spec.rb +1 -1
- data/spec/fixtures/operations/route53/change_resource_record_sets.yml +18 -0
- data/tasks/test.rake +6 -18
- data/vendor/seahorse/lib/seahorse/client/http/headers.rb +20 -0
- data/vendor/seahorse/tasks/test.rake +2 -15
- metadata +77 -64
- data/features/common/step_definitions.rb +0 -63
- data/features/dynamodb/setup.rb +0 -8
- data/features/ec2/setup.rb +0 -6
- data/features/glacier/setup.rb +0 -16
- data/features/s3/setup.rb +0 -17
- data/features/sqs/setup.rb +0 -10
@@ -1,6 +1,26 @@
|
|
1
1
|
module Seahorse
|
2
2
|
module Client
|
3
3
|
module Http
|
4
|
+
|
5
|
+
# Provides a Hash-like interface for HTTP headers. Header names
|
6
|
+
# are treated indifferently as lower-cased strings. Header values
|
7
|
+
# are cast to strings.
|
8
|
+
#
|
9
|
+
# headers = Http::Headers.new
|
10
|
+
# headers['Content-Length'] = 100
|
11
|
+
# headers[:Authorization] = 'Abc'
|
12
|
+
#
|
13
|
+
# headers.keys
|
14
|
+
# #=> ['content-length', 'authorization']]
|
15
|
+
#
|
16
|
+
# headers.values
|
17
|
+
# #=> ['100', 'Abc']
|
18
|
+
#
|
19
|
+
# You can get the header values as a vanilla hash by calling {#to_h}:
|
20
|
+
#
|
21
|
+
# headers.to_h
|
22
|
+
# #=> { 'content-length' => '100', 'authorization' => 'Abc' }
|
23
|
+
#
|
4
24
|
class Headers
|
5
25
|
|
6
26
|
include Enumerable
|
@@ -1,19 +1,6 @@
|
|
1
|
-
def execute_cmd cmd
|
2
|
-
puts cmd if Rake.application.options.trace
|
3
|
-
system(cmd)
|
4
|
-
unless $?.to_i == 0
|
5
|
-
$stderr.puts "Command failed (#{$?}): #{cmd}"
|
6
|
-
exit($? >> 8)
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
1
|
desc "Runs unit tests"
|
11
|
-
|
12
|
-
|
13
|
-
spec_files = File.join(root, 'spec', '**', '*_spec.rb')
|
14
|
-
opts = ['bundle exec rspec']
|
15
|
-
opts += FileList[spec_files].sort
|
16
|
-
execute_cmd(opts.join(' '))
|
2
|
+
RSpec::Core::RakeTask.new('test:unit') do |t|
|
3
|
+
t.pattern = "#{File.dirname(File.dirname(__FILE__))}/spec"
|
17
4
|
end
|
18
5
|
|
19
6
|
task :test => 'test:unit'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- apis/CloudFront-2012-05-05.json
|
87
87
|
- apis/CloudFront-2013-05-12.json
|
88
88
|
- apis/CloudFront-2013-08-26.json
|
89
|
+
- apis/CloudFront-2013-11-11.json
|
89
90
|
- apis/CloudSearch-2011-02-01.json
|
90
91
|
- apis/CloudWatch-2010-08-01.json
|
91
92
|
- apis/DataPipeline-2012-10-29.json
|
@@ -94,6 +95,7 @@ files:
|
|
94
95
|
- apis/DynamoDB-2012-08-10.json
|
95
96
|
- apis/EC2-2013-06-15.json
|
96
97
|
- apis/EC2-2013-10-01.json
|
98
|
+
- apis/EC2-2013-10-15.json
|
97
99
|
- apis/EMR-2009-03-31.json
|
98
100
|
- apis/ElastiCache-2012-11-15.json
|
99
101
|
- apis/ElastiCache-2013-06-15.json
|
@@ -108,6 +110,7 @@ files:
|
|
108
110
|
- apis/RDS-2013-01-10.json
|
109
111
|
- apis/RDS-2013-02-12.json
|
110
112
|
- apis/RDS-2013-05-15.json
|
113
|
+
- apis/RDS-2013-09-09.json
|
111
114
|
- apis/Redshift-2012-12-01.json
|
112
115
|
- apis/Route53-2012-12-12.json
|
113
116
|
- apis/S3-2006-03-01.json
|
@@ -131,6 +134,9 @@ files:
|
|
131
134
|
- apis/source/cloudfront-2013-05-12.paginators.json
|
132
135
|
- apis/source/cloudfront-2013-08-26.json
|
133
136
|
- apis/source/cloudfront-2013-08-26.paginators.json
|
137
|
+
- apis/source/cloudfront-2013-11-11.json
|
138
|
+
- apis/source/cloudfront-2013-11-11.paginators.json
|
139
|
+
- apis/source/cloudfront-2013-11-11.waiters.json
|
134
140
|
- apis/source/cloudsearch-2011-02-01.json
|
135
141
|
- apis/source/cloudsearch-2011-02-01.paginators.json
|
136
142
|
- apis/source/datapipeline-2012-10-29.json
|
@@ -139,14 +145,19 @@ files:
|
|
139
145
|
- apis/source/directconnect-2012-10-25.paginators.json
|
140
146
|
- apis/source/dynamodb-2011-12-05.json
|
141
147
|
- apis/source/dynamodb-2011-12-05.paginators.json
|
148
|
+
- apis/source/dynamodb-2011-12-05.waiters.json
|
142
149
|
- apis/source/dynamodb-2012-08-10.json
|
143
150
|
- apis/source/dynamodb-2012-08-10.paginators.json
|
151
|
+
- apis/source/dynamodb-2012-08-10.waiters.json
|
144
152
|
- apis/source/ec2-2013-02-01.json
|
145
153
|
- apis/source/ec2-2013-02-01.paginators.json
|
146
154
|
- apis/source/ec2-2013-06-15.json
|
147
155
|
- apis/source/ec2-2013-06-15.paginators.json
|
148
156
|
- apis/source/ec2-2013-10-01.json
|
149
157
|
- apis/source/ec2-2013-10-01.paginators.json
|
158
|
+
- apis/source/ec2-2013-10-15.json
|
159
|
+
- apis/source/ec2-2013-10-15.paginators.json
|
160
|
+
- apis/source/ec2-2013-10-15.waiters.json
|
150
161
|
- apis/source/elasticache-2012-11-15.json
|
151
162
|
- apis/source/elasticache-2012-11-15.paginators.json
|
152
163
|
- apis/source/elasticache-2013-06-15.json
|
@@ -163,6 +174,7 @@ files:
|
|
163
174
|
- apis/source/email-2010-12-01.paginators.json
|
164
175
|
- apis/source/glacier-2012-06-01.json
|
165
176
|
- apis/source/glacier-2012-06-01.paginators.json
|
177
|
+
- apis/source/glacier-2012-06-01.waiters.json
|
166
178
|
- apis/source/iam-2010-05-08.json
|
167
179
|
- apis/source/iam-2010-05-08.paginators.json
|
168
180
|
- apis/source/importexport-2010-06-01.json
|
@@ -179,12 +191,17 @@ files:
|
|
179
191
|
- apis/source/rds-2013-02-12.paginators.json
|
180
192
|
- apis/source/rds-2013-05-15.json
|
181
193
|
- apis/source/rds-2013-05-15.paginators.json
|
194
|
+
- apis/source/rds-2013-09-09.json
|
195
|
+
- apis/source/rds-2013-09-09.paginators.json
|
196
|
+
- apis/source/rds-2013-09-09.waiters.json
|
182
197
|
- apis/source/redshift-2012-12-01.json
|
183
198
|
- apis/source/redshift-2012-12-01.paginators.json
|
199
|
+
- apis/source/redshift-2012-12-01.waiters.json
|
184
200
|
- apis/source/route53-2012-12-12.json
|
185
201
|
- apis/source/route53-2012-12-12.paginators.json
|
186
202
|
- apis/source/s3-2006-03-01.json
|
187
203
|
- apis/source/s3-2006-03-01.paginators.json
|
204
|
+
- apis/source/s3-2006-03-01.waiters.json
|
188
205
|
- apis/source/sdb-2009-04-15.json
|
189
206
|
- apis/source/sdb-2009-04-15.paginators.json
|
190
207
|
- apis/source/sns-2010-03-31.json
|
@@ -213,75 +230,71 @@ files:
|
|
213
230
|
- doc-src/templates/default/layout/html/footer.erb
|
214
231
|
- doc-src/templates/default/layout/html/setup.rb
|
215
232
|
- features/autoscaling/client.feature
|
216
|
-
- features/autoscaling/
|
233
|
+
- features/autoscaling/step_definitions.rb
|
217
234
|
- features/cloudformation/client.feature
|
218
|
-
- features/cloudformation/
|
235
|
+
- features/cloudformation/step_definitions.rb
|
219
236
|
- features/cloudfront/client.feature
|
220
|
-
- features/cloudfront/
|
237
|
+
- features/cloudfront/step_definitions.rb
|
221
238
|
- features/cloudsearch/client.feature
|
222
|
-
- features/cloudsearch/
|
239
|
+
- features/cloudsearch/step_definitions.rb
|
223
240
|
- features/cloudwatch/client.feature
|
224
|
-
- features/cloudwatch/
|
225
|
-
- features/common/step_definitions.rb
|
241
|
+
- features/cloudwatch/step_definitions.rb
|
226
242
|
- features/datapipeline/client.feature
|
227
|
-
- features/datapipeline/
|
243
|
+
- features/datapipeline/step_definitions.rb
|
228
244
|
- features/directconnect/client.feature
|
229
|
-
- features/directconnect/
|
245
|
+
- features/directconnect/step_definitions.rb
|
230
246
|
- features/dynamodb/client.feature
|
231
|
-
- features/dynamodb/setup.rb
|
232
247
|
- features/dynamodb/simplified.feature
|
233
248
|
- features/dynamodb/step_definitions.rb
|
234
249
|
- features/ec2/client.feature
|
235
|
-
- features/ec2/setup.rb
|
236
250
|
- features/ec2/step_definitions.rb
|
237
251
|
- features/elasticache/client.feature
|
238
|
-
- features/elasticache/
|
252
|
+
- features/elasticache/step_definitions.rb
|
239
253
|
- features/elasticbeanstalk/client.feature
|
240
|
-
- features/elasticbeanstalk/
|
254
|
+
- features/elasticbeanstalk/step_definitions.rb
|
241
255
|
- features/elasticloadbalancing/client.feature
|
242
|
-
- features/elasticloadbalancing/
|
256
|
+
- features/elasticloadbalancing/step_definitions.rb
|
243
257
|
- features/elastictranscoder/client.feature
|
244
|
-
- features/elastictranscoder/
|
258
|
+
- features/elastictranscoder/step_definitions.rb
|
245
259
|
- features/emr/client.feature
|
246
|
-
- features/emr/
|
260
|
+
- features/emr/step_definitions.rb
|
247
261
|
- features/env.rb
|
248
262
|
- features/glacier/client.feature
|
249
|
-
- features/glacier/setup.rb
|
250
263
|
- features/glacier/step_definitions.rb
|
264
|
+
- features/glacier/upload.feature
|
251
265
|
- features/iam/client.feature
|
252
|
-
- features/iam/
|
266
|
+
- features/iam/step_definitions.rb
|
253
267
|
- features/importexport/client.feature
|
254
|
-
- features/importexport/
|
268
|
+
- features/importexport/step_definitions.rb
|
255
269
|
- features/kinesis/client.feature
|
256
|
-
- features/kinesis/
|
270
|
+
- features/kinesis/step_definitions.rb
|
257
271
|
- features/opsworks/client.feature
|
258
|
-
- features/opsworks/
|
272
|
+
- features/opsworks/step_definitions.rb
|
259
273
|
- features/rds/client.feature
|
260
|
-
- features/rds/
|
274
|
+
- features/rds/step_definitions.rb
|
261
275
|
- features/redshift/client.feature
|
262
|
-
- features/redshift/
|
276
|
+
- features/redshift/step_definitions.rb
|
263
277
|
- features/route53/client.feature
|
264
|
-
- features/route53/
|
278
|
+
- features/route53/step_definitions.rb
|
265
279
|
- features/s3/buckets.feature
|
266
280
|
- features/s3/objects.feature
|
267
|
-
- features/s3/setup.rb
|
268
281
|
- features/s3/step_definitions.rb
|
269
282
|
- features/s3/test.png
|
270
283
|
- features/sdb/client.feature
|
271
|
-
- features/sdb/
|
284
|
+
- features/sdb/step_definitions.rb
|
272
285
|
- features/ses/client.feature
|
273
|
-
- features/ses/
|
286
|
+
- features/ses/step_definitions.rb
|
274
287
|
- features/sns/client.feature
|
275
|
-
- features/sns/
|
288
|
+
- features/sns/step_definitions.rb
|
276
289
|
- features/sqs/client.feature
|
277
|
-
- features/sqs/setup.rb
|
278
290
|
- features/sqs/step_definitions.rb
|
291
|
+
- features/step_definitions.rb
|
279
292
|
- features/storagegateway/client.feature
|
280
|
-
- features/storagegateway/
|
293
|
+
- features/storagegateway/step_definitions.rb
|
281
294
|
- features/sts/client.feature
|
282
|
-
- features/sts/
|
295
|
+
- features/sts/step_definitions.rb
|
283
296
|
- features/swf/client.feature
|
284
|
-
- features/swf/
|
297
|
+
- features/swf/step_definitions.rb
|
285
298
|
- integration-test-config.json.sample
|
286
299
|
- lib/aws-sdk-core.rb
|
287
300
|
- lib/aws.rb
|
@@ -361,6 +374,7 @@ files:
|
|
361
374
|
- lib/aws/xml/parser.rb
|
362
375
|
- lib/aws/xml/serializer.rb
|
363
376
|
- spec/aws/credentials_spec.rb
|
377
|
+
- spec/aws/errors_spec.rb
|
364
378
|
- spec/aws/iam_spec.rb
|
365
379
|
- spec/aws/instance_profile_credentials_spec.rb
|
366
380
|
- spec/aws/json/builder_spec.rb
|
@@ -393,6 +407,7 @@ files:
|
|
393
407
|
- spec/fixtures/operations/glacier/get_job_output.yml
|
394
408
|
- spec/fixtures/operations/glacier/list_vaults.yml
|
395
409
|
- spec/fixtures/operations/iam/result_wrapped_elements.yml
|
410
|
+
- spec/fixtures/operations/route53/change_resource_record_sets.yml
|
396
411
|
- spec/fixtures/operations/s3/304_response.yml
|
397
412
|
- spec/fixtures/operations/s3/400_response.yml
|
398
413
|
- spec/fixtures/operations/s3/403_response.yml
|
@@ -545,76 +560,73 @@ specification_version: 4
|
|
545
560
|
summary: AWS SDK Core
|
546
561
|
test_files:
|
547
562
|
- features/autoscaling/client.feature
|
548
|
-
- features/autoscaling/
|
563
|
+
- features/autoscaling/step_definitions.rb
|
549
564
|
- features/cloudformation/client.feature
|
550
|
-
- features/cloudformation/
|
565
|
+
- features/cloudformation/step_definitions.rb
|
551
566
|
- features/cloudfront/client.feature
|
552
|
-
- features/cloudfront/
|
567
|
+
- features/cloudfront/step_definitions.rb
|
553
568
|
- features/cloudsearch/client.feature
|
554
|
-
- features/cloudsearch/
|
569
|
+
- features/cloudsearch/step_definitions.rb
|
555
570
|
- features/cloudwatch/client.feature
|
556
|
-
- features/cloudwatch/
|
557
|
-
- features/common/step_definitions.rb
|
571
|
+
- features/cloudwatch/step_definitions.rb
|
558
572
|
- features/datapipeline/client.feature
|
559
|
-
- features/datapipeline/
|
573
|
+
- features/datapipeline/step_definitions.rb
|
560
574
|
- features/directconnect/client.feature
|
561
|
-
- features/directconnect/
|
575
|
+
- features/directconnect/step_definitions.rb
|
562
576
|
- features/dynamodb/client.feature
|
563
|
-
- features/dynamodb/setup.rb
|
564
577
|
- features/dynamodb/simplified.feature
|
565
578
|
- features/dynamodb/step_definitions.rb
|
566
579
|
- features/ec2/client.feature
|
567
|
-
- features/ec2/setup.rb
|
568
580
|
- features/ec2/step_definitions.rb
|
569
581
|
- features/elasticache/client.feature
|
570
|
-
- features/elasticache/
|
582
|
+
- features/elasticache/step_definitions.rb
|
571
583
|
- features/elasticbeanstalk/client.feature
|
572
|
-
- features/elasticbeanstalk/
|
584
|
+
- features/elasticbeanstalk/step_definitions.rb
|
573
585
|
- features/elasticloadbalancing/client.feature
|
574
|
-
- features/elasticloadbalancing/
|
586
|
+
- features/elasticloadbalancing/step_definitions.rb
|
575
587
|
- features/elastictranscoder/client.feature
|
576
|
-
- features/elastictranscoder/
|
588
|
+
- features/elastictranscoder/step_definitions.rb
|
577
589
|
- features/emr/client.feature
|
578
|
-
- features/emr/
|
590
|
+
- features/emr/step_definitions.rb
|
579
591
|
- features/env.rb
|
580
592
|
- features/glacier/client.feature
|
581
|
-
- features/glacier/setup.rb
|
582
593
|
- features/glacier/step_definitions.rb
|
594
|
+
- features/glacier/upload.feature
|
583
595
|
- features/iam/client.feature
|
584
|
-
- features/iam/
|
596
|
+
- features/iam/step_definitions.rb
|
585
597
|
- features/importexport/client.feature
|
586
|
-
- features/importexport/
|
598
|
+
- features/importexport/step_definitions.rb
|
587
599
|
- features/kinesis/client.feature
|
588
|
-
- features/kinesis/
|
600
|
+
- features/kinesis/step_definitions.rb
|
589
601
|
- features/opsworks/client.feature
|
590
|
-
- features/opsworks/
|
602
|
+
- features/opsworks/step_definitions.rb
|
591
603
|
- features/rds/client.feature
|
592
|
-
- features/rds/
|
604
|
+
- features/rds/step_definitions.rb
|
593
605
|
- features/redshift/client.feature
|
594
|
-
- features/redshift/
|
606
|
+
- features/redshift/step_definitions.rb
|
595
607
|
- features/route53/client.feature
|
596
|
-
- features/route53/
|
608
|
+
- features/route53/step_definitions.rb
|
597
609
|
- features/s3/buckets.feature
|
598
610
|
- features/s3/objects.feature
|
599
|
-
- features/s3/setup.rb
|
600
611
|
- features/s3/step_definitions.rb
|
601
612
|
- features/s3/test.png
|
602
613
|
- features/sdb/client.feature
|
603
|
-
- features/sdb/
|
614
|
+
- features/sdb/step_definitions.rb
|
604
615
|
- features/ses/client.feature
|
605
|
-
- features/ses/
|
616
|
+
- features/ses/step_definitions.rb
|
606
617
|
- features/sns/client.feature
|
607
|
-
- features/sns/
|
618
|
+
- features/sns/step_definitions.rb
|
608
619
|
- features/sqs/client.feature
|
609
|
-
- features/sqs/setup.rb
|
610
620
|
- features/sqs/step_definitions.rb
|
621
|
+
- features/step_definitions.rb
|
611
622
|
- features/storagegateway/client.feature
|
612
|
-
- features/storagegateway/
|
623
|
+
- features/storagegateway/step_definitions.rb
|
613
624
|
- features/sts/client.feature
|
614
|
-
- features/sts/
|
625
|
+
- features/sts/step_definitions.rb
|
615
626
|
- features/swf/client.feature
|
616
|
-
- features/swf/
|
627
|
+
- features/swf/step_definitions.rb
|
617
628
|
- spec/aws/credentials_spec.rb
|
629
|
+
- spec/aws/errors_spec.rb
|
618
630
|
- spec/aws/iam_spec.rb
|
619
631
|
- spec/aws/instance_profile_credentials_spec.rb
|
620
632
|
- spec/aws/json/builder_spec.rb
|
@@ -647,6 +659,7 @@ test_files:
|
|
647
659
|
- spec/fixtures/operations/glacier/get_job_output.yml
|
648
660
|
- spec/fixtures/operations/glacier/list_vaults.yml
|
649
661
|
- spec/fixtures/operations/iam/result_wrapped_elements.yml
|
662
|
+
- spec/fixtures/operations/route53/change_resource_record_sets.yml
|
650
663
|
- spec/fixtures/operations/s3/304_response.yml
|
651
664
|
- spec/fixtures/operations/s3/400_response.yml
|
652
665
|
- spec/fixtures/operations/s3/403_response.yml
|
@@ -1,63 +0,0 @@
|
|
1
|
-
def call_request(service, operation_name, params = {})
|
2
|
-
service = instance_variable_get("@#{service}")
|
3
|
-
@response = service.build_request(operation_name, params).send_request
|
4
|
-
@error = @response.error
|
5
|
-
@response
|
6
|
-
end
|
7
|
-
|
8
|
-
def eventually(seconds = 15, &block)
|
9
|
-
|
10
|
-
# generate a list of times-to-sleep that add up to less than `seconds'
|
11
|
-
sleeps = [1]
|
12
|
-
while sleeps.inject(0) { |sum, i| sum + i } < seconds
|
13
|
-
sleeps << sleeps.last * 1.2
|
14
|
-
end
|
15
|
-
|
16
|
-
begin
|
17
|
-
yield
|
18
|
-
rescue => error
|
19
|
-
unless sleeps.empty?
|
20
|
-
sleep(sleeps.shift)
|
21
|
-
retry
|
22
|
-
end
|
23
|
-
raise error # terminal case
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
When(/^I call "(.*?)" on "(.*?)"$/) do |operation, service|
|
29
|
-
call_request(service, operation)
|
30
|
-
end
|
31
|
-
|
32
|
-
When(/^I call "(.*?)" on "(.*?)" with:$/) do |operation, service, params|
|
33
|
-
call_request(service, operation, eval(params))
|
34
|
-
end
|
35
|
-
|
36
|
-
Then(/^the response data should include "(.*?)"$/) do |member_name|
|
37
|
-
expect(@response.data.members).to include(member_name.to_sym)
|
38
|
-
end
|
39
|
-
|
40
|
-
Then(/^the response "(.*?)" should be an array$/) do |expression|
|
41
|
-
item = eval("@response.#{expression}")
|
42
|
-
expect(item).to be_an(Array)
|
43
|
-
end
|
44
|
-
|
45
|
-
Then(/^the HTTP request body should be:$/) do |string|
|
46
|
-
expect(@response.http_request.body_contents).to eq(string)
|
47
|
-
end
|
48
|
-
|
49
|
-
Then(/^I expect response data to be a hash$/) do
|
50
|
-
expect(@response.data).to be_a(Hash)
|
51
|
-
end
|
52
|
-
|
53
|
-
Then(/^I expect response data\["(.*?)"\] to be an array$/) do |key|
|
54
|
-
expect(@response.data[key]).to be_an(Array)
|
55
|
-
end
|
56
|
-
|
57
|
-
Then(/^I expect the response error code to be "(.*?)"$/) do |error_class|
|
58
|
-
expect(@error.class.name).to match(error_class)
|
59
|
-
end
|
60
|
-
|
61
|
-
Then(/^I expect the response error message to include:$/) do |message|
|
62
|
-
expect(@error.message).to include(message)
|
63
|
-
end
|
data/features/dynamodb/setup.rb
DELETED