aws-sdk-core 2.0.0.rc12 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/apis/AutoScaling.api.json +1943 -0
- data/apis/CloudFormation.api.json +785 -0
- data/apis/CloudFront.api.json +2581 -0
- data/apis/CloudFront.paginators.json +32 -0
- data/apis/CloudSearch.api.json +1955 -0
- data/apis/CloudSearchDomain.api.json +349 -0
- data/apis/CloudTrail.api.json +559 -0
- data/apis/CloudWatch.api.json +917 -0
- data/apis/CloudWatchLogs.api.json +816 -0
- data/apis/CognitoIdentity.api.json +631 -0
- data/apis/CognitoSync.api.json +721 -0
- data/apis/DataPipeline.api.json +940 -0
- data/apis/DirectConnect.api.json +833 -0
- data/apis/DynamoDB.api.json +1210 -0
- data/apis/{dynamodb-2011-12-05.paginators.json → DynamoDB.paginators.json} +1 -3
- data/apis/EC2.api.json +9914 -0
- data/apis/{ec2-2014-06-15.resources.json → EC2.resources.json} +16 -0
- data/apis/EMR.api.json +1339 -0
- data/apis/ElastiCache.api.json +3410 -0
- data/apis/ElasticBeanstalk.api.json +1543 -0
- data/apis/ElasticLoadBalancing.api.json +2131 -0
- data/apis/ElasticTranscoder.api.json +1647 -0
- data/apis/Glacier.api.json +1456 -0
- data/apis/{glacier-2012-06-01.resources.json → Glacier.resources.json} +5 -9
- data/apis/IAM.api.json +4033 -0
- data/apis/{iam-2010-05-08.resources.json → IAM.resources.json} +1 -1
- data/apis/ImportExport.api.json +515 -0
- data/apis/Kinesis.api.json +706 -0
- data/apis/{kinesis-2013-12-02.paginators.json → Kinesis.paginators.json} +0 -6
- data/apis/OpsWorks.api.json +2555 -0
- data/apis/OpsWorks.resources.json +181 -0
- data/apis/RDS.api.json +4473 -0
- data/apis/Redshift.api.json +4482 -0
- data/apis/Route53.api.json +1935 -0
- data/apis/Route53Domains.api.json +1129 -0
- data/apis/{s3-2006-03-01.api.json → S3.api.json} +377 -972
- data/apis/{s3-2006-03-01.paginators.json → S3.paginators.json} +1 -1
- data/apis/{s3-2006-03-01.resources.json → S3.resources.json} +13 -2
- data/apis/SES.api.json +644 -0
- data/apis/SNS.api.json +1760 -0
- data/apis/SQS.api.json +1113 -0
- data/apis/{sqs-2012-11-05.resources.json → SQS.resources.json} +0 -10
- data/apis/STS.api.json +594 -0
- data/apis/SWF.api.json +2656 -0
- data/apis/SimpleDB.api.json +954 -0
- data/apis/StorageGateway.api.json +2311 -0
- data/apis/Support.api.json +869 -0
- data/bin/aws.rb +19 -1
- data/endpoints.json +77 -0
- data/lib/aws-sdk-core/api/docstrings.rb +35 -0
- data/lib/aws-sdk-core/api/documenter.rb +241 -0
- data/lib/{aws/api/documentor.rb → aws-sdk-core/api/operation_documenter.rb} +39 -28
- data/lib/{aws/api/doc_example.rb → aws-sdk-core/api/operation_example.rb} +31 -22
- data/lib/{aws → aws-sdk-core}/api/service_customizations.rb +5 -1
- data/lib/aws-sdk-core/autoscaling.rb +5 -0
- data/lib/aws-sdk-core/client.rb +121 -0
- data/lib/aws-sdk-core/cloudformation.rb +5 -0
- data/lib/aws-sdk-core/cloudfront.rb +6 -0
- data/lib/aws-sdk-core/cloudsearch.rb +5 -0
- data/lib/aws-sdk-core/cloudsearchdomain.rb +4 -0
- data/lib/aws-sdk-core/cloudtrail.rb +5 -0
- data/lib/aws-sdk-core/cloudwatch.rb +5 -0
- data/lib/aws-sdk-core/cloudwatchlogs.rb +5 -0
- data/lib/aws-sdk-core/cognitoidentity.rb +4 -0
- data/lib/aws-sdk-core/cognitosync.rb +4 -0
- data/lib/{aws → aws-sdk-core}/credential_provider_chain.rb +4 -1
- data/lib/aws-sdk-core/datapipeline.rb +5 -0
- data/lib/aws-sdk-core/directconnect.rb +5 -0
- data/lib/aws-sdk-core/dynamodb/attribute_value.rb +87 -0
- data/lib/aws-sdk-core/dynamodb.rb +12 -0
- data/lib/aws-sdk-core/ec2.rb +7 -0
- data/lib/aws-sdk-core/elasticache.rb +5 -0
- data/lib/aws-sdk-core/elasticbeanstalk.rb +5 -0
- data/lib/aws-sdk-core/elasticloadbalancing.rb +5 -0
- data/lib/aws-sdk-core/elastictranscoder.rb +5 -0
- data/lib/{aws → aws-sdk-core}/empty_structure.rb +4 -3
- data/lib/aws-sdk-core/emr.rb +5 -0
- data/lib/aws-sdk-core/endpoint_provider.rb +97 -0
- data/lib/{aws → aws-sdk-core}/errors.rb +27 -8
- data/lib/aws-sdk-core/glacier.rb +7 -0
- data/lib/aws-sdk-core/iam.rb +6 -0
- data/lib/aws-sdk-core/importexport.rb +5 -0
- data/lib/{aws → aws-sdk-core}/instance_profile_credentials.rb +13 -9
- data/lib/aws-sdk-core/kinesis.rb +5 -0
- data/lib/aws-sdk-core/opsworks.rb +6 -0
- data/lib/{aws → aws-sdk-core}/pageable_response.rb +1 -1
- data/lib/aws-sdk-core/plugins/csd_conditional_signing.rb +37 -0
- data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +179 -0
- data/lib/{aws → aws-sdk-core}/plugins/global_configuration.rb +14 -7
- data/lib/{aws → aws-sdk-core}/plugins/protocols/json_rpc.rb +9 -7
- data/lib/{aws → aws-sdk-core}/plugins/regional_endpoint.rb +2 -4
- data/lib/{aws → aws-sdk-core}/plugins/request_signer.rb +18 -8
- data/lib/aws-sdk-core/plugins/response_paging.rb +25 -0
- data/lib/{aws → aws-sdk-core}/plugins/retry_errors.rb +11 -1
- data/lib/aws-sdk-core/plugins/route_53_id_fix.rb +55 -0
- data/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb +27 -0
- data/lib/aws-sdk-core/plugins/s3_sse_cpk.rb +63 -0
- data/lib/aws-sdk-core/plugins/s3_url_encoded_keys.rb +92 -0
- data/lib/{aws → aws-sdk-core}/plugins/user_agent.rb +1 -2
- data/lib/{aws → aws-sdk-core}/query/handler.rb +4 -5
- data/lib/aws-sdk-core/rds.rb +6 -0
- data/lib/aws-sdk-core/redshift.rb +6 -0
- data/lib/aws-sdk-core/route53.rb +5 -0
- data/lib/aws-sdk-core/route53domains.rb +4 -0
- data/lib/aws-sdk-core/s3/presigner.rb +64 -0
- data/lib/aws-sdk-core/s3.rb +13 -0
- data/lib/aws-sdk-core/service.rb +4 -0
- data/lib/aws-sdk-core/ses.rb +6 -0
- data/lib/{aws → aws-sdk-core}/signers/v4.rb +6 -5
- data/lib/aws-sdk-core/simpledb.rb +5 -0
- data/lib/aws-sdk-core/sns.rb +6 -0
- data/lib/aws-sdk-core/sqs.rb +6 -0
- data/lib/aws-sdk-core/storagegateway.rb +5 -0
- data/lib/{aws → aws-sdk-core}/structure.rb +60 -4
- data/lib/aws-sdk-core/sts.rb +4 -0
- data/lib/aws-sdk-core/support.rb +5 -0
- data/lib/aws-sdk-core/swf.rb +5 -0
- data/lib/aws-sdk-core/version.rb +3 -0
- data/lib/aws-sdk-core/waiters/errors.rb +30 -0
- data/lib/aws-sdk-core/waiters/null_provider.rb +12 -0
- data/lib/aws-sdk-core/waiters/provider.rb +54 -0
- data/lib/aws-sdk-core/waiters/waiter.rb +194 -0
- data/lib/{aws → aws-sdk-core}/xml/builder.rb +4 -3
- data/lib/aws-sdk-core/xml/default_list.rb +10 -0
- data/lib/{aws → aws-sdk-core}/xml/parser.rb +6 -1
- data/lib/aws-sdk-core.rb +288 -1
- data/{vendor/seahorse/lib → lib}/seahorse/client/base.rb +45 -20
- data/{vendor/seahorse/lib → lib}/seahorse/client/handler_list.rb +17 -3
- data/{vendor/seahorse/lib → lib}/seahorse/client/http/error.rb +2 -2
- data/{vendor/seahorse/lib → lib}/seahorse/client/http/request.rb +1 -9
- data/{vendor/seahorse/lib → lib}/seahorse/client/net_http/connection_pool.rb +2 -0
- data/{vendor/seahorse/lib → lib}/seahorse/client/net_http/handler.rb +13 -1
- data/lib/seahorse/client/net_http/patches.rb +97 -0
- data/{vendor/seahorse/lib → lib}/seahorse/client/param_converter.rb +2 -2
- data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/endpoint.rb +24 -15
- data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/restful_bindings.rb +1 -1
- data/{vendor/seahorse/lib → lib}/seahorse/client/request.rb +1 -1
- data/{vendor/seahorse/lib → lib}/seahorse/client/response.rb +0 -2
- data/{vendor/seahorse/lib → lib}/seahorse/client/xml/builder.rb +0 -1
- data/{vendor/seahorse/lib → lib}/seahorse/model/shape_map.rb +1 -0
- data/{vendor/seahorse/lib → lib}/seahorse/model/shapes.rb +13 -4
- data/{vendor/seahorse/lib → lib}/seahorse.rb +3 -3
- metadata +257 -593
- data/.gitignore +0 -8
- data/.simplecov +0 -6
- data/.travis.yml +0 -20
- data/.yardopts +0 -11
- data/Gemfile +0 -26
- data/LICENSE.txt +0 -12
- data/README.md +0 -250
- data/Rakefile +0 -17
- data/apis/autoscaling-2011-01-01.api.json +0 -2602
- data/apis/cloudformation-2010-05-15.api.json +0 -1306
- data/apis/cloudfront-2014-01-31.api.json +0 -3478
- data/apis/cloudfront-2014-01-31.paginators.json +0 -32
- data/apis/cloudfront-2014-05-31.api.json +0 -3540
- data/apis/cloudfront-2014-05-31.paginators.json +0 -32
- data/apis/cloudfront-2014-05-31.waiters.json +0 -29
- data/apis/cloudsearch-2011-02-01.api.json +0 -2093
- data/apis/cloudsearch-2011-02-01.paginators.json +0 -13
- data/apis/cloudsearch-2013-01-01.api.json +0 -2655
- data/apis/cloudsearchdomain-2013-01-01.api.json +0 -508
- data/apis/cloudtrail-2013-11-01.api.json +0 -773
- data/apis/cognito-identity-2014-06-30.api.json +0 -884
- data/apis/cognito-sync-2014-06-30.api.json +0 -1029
- data/apis/datapipeline-2012-10-29.api.json +0 -1432
- data/apis/directconnect-2012-10-25.api.json +0 -1174
- data/apis/dynamodb-2011-12-05.api.json +0 -1208
- data/apis/dynamodb-2011-12-05.waiters.json +0 -27
- data/apis/dynamodb-2012-08-10.api.json +0 -1857
- data/apis/dynamodb-2012-08-10.paginators.json +0 -27
- data/apis/ec2-2014-06-15.api.json +0 -11661
- data/apis/elasticache-2014-03-24.api.json +0 -4789
- data/apis/elasticbeanstalk-2010-12-01.api.json +0 -2442
- data/apis/elasticloadbalancing-2012-06-01.api.json +0 -2576
- data/apis/elasticmapreduce-2009-03-31.api.json +0 -2282
- data/apis/elastictranscoder-2012-09-25.api.json +0 -2478
- data/apis/email-2010-12-01.api.json +0 -954
- data/apis/endpoints.json +0 -98
- data/apis/glacier-2012-06-01.api.json +0 -2012
- data/apis/iam-2010-05-08.api.json +0 -5046
- data/apis/importexport-2010-06-01.api.json +0 -687
- data/apis/kinesis-2013-12-02.api.json +0 -769
- data/apis/logs-2014-03-28.api.json +0 -942
- data/apis/manifest.json +0 -250
- data/apis/monitoring-2010-08-01.api.json +0 -1338
- data/apis/opsworks-2013-02-18.api.json +0 -4348
- data/apis/rds-2013-01-10.api.json +0 -6074
- data/apis/rds-2013-02-12.api.json +0 -6392
- data/apis/rds-2013-02-12.paginators.json +0 -110
- data/apis/rds-2013-09-09.api.json +0 -6564
- data/apis/rds-2013-09-09.paginators.json +0 -110
- data/apis/redshift-2012-12-01.api.json +0 -6318
- data/apis/route53-2013-04-01.api.json +0 -1927
- data/apis/sdb-2009-04-15.api.json +0 -1178
- data/apis/sns-2010-03-31.api.json +0 -2275
- data/apis/sqs-2012-11-05.api.json +0 -1438
- data/apis/storagegateway-2013-06-30.api.json +0 -3153
- data/apis/sts-2011-06-15.api.json +0 -786
- data/apis/support-2013-04-15.api.json +0 -1115
- data/apis/swf-2012-01-25.api.json +0 -4463
- data/aws-sdk-core.gemspec +0 -22
- data/doc-src/images/lastnode.png +0 -0
- data/doc-src/images/node.png +0 -0
- data/doc-src/images/vline.png +0 -0
- data/doc-src/plugins/apis.rb +0 -260
- data/doc-src/plugins/stability.rb +0 -1
- data/doc-src/services/CloudSearchDomain/client.md +0 -8
- data/doc-src/services/CloudSearchDomain/service.md +0 -0
- data/doc-src/services/default/client.md +0 -84
- data/doc-src/services/default/errors.md +0 -45
- data/doc-src/services/default/service.md +0 -28
- data/doc-src/templates/default/fulldoc/html/css/common.css +0 -90
- data/doc-src/templates/default/fulldoc/html/js/tabs.js +0 -21
- data/doc-src/templates/default/fulldoc/html/setup.rb +0 -66
- data/doc-src/templates/default/layout/html/footer.erb +0 -29
- data/doc-src/templates/default/layout/html/layout.erb +0 -37
- data/doc-src/templates/default/layout/html/setup.rb +0 -3
- data/features/autoscaling/client.feature +0 -18
- data/features/autoscaling/step_definitions.rb +0 -6
- data/features/cloudformation/client.feature +0 -17
- data/features/cloudformation/step_definitions.rb +0 -6
- data/features/cloudfront/client.feature +0 -17
- data/features/cloudfront/step_definitions.rb +0 -6
- data/features/cloudsearch/client.feature +0 -16
- data/features/cloudsearch/step_definitions.rb +0 -6
- data/features/cloudtrail/client.feature +0 -16
- data/features/cloudtrail/step_definitions.rb +0 -6
- data/features/cloudwatch/client.feature +0 -19
- data/features/cloudwatch/step_definitions.rb +0 -6
- data/features/cloudwatchlogs/client.feature +0 -17
- data/features/cloudwatchlogs/step_definitions.rb +0 -6
- data/features/cognitoidentity/client.feature +0 -17
- data/features/cognitoidentity/step_definitions.rb +0 -6
- data/features/cognitosync/client.feature +0 -16
- data/features/cognitosync/step_definitions.rb +0 -6
- data/features/datapipeline/client.feature +0 -16
- data/features/datapipeline/step_definitions.rb +0 -6
- data/features/directconnect/client.feature +0 -16
- data/features/directconnect/step_definitions.rb +0 -6
- data/features/dynamodb/client.feature +0 -17
- data/features/dynamodb/simplified.feature +0 -32
- data/features/dynamodb/step_definitions.rb +0 -11
- data/features/ec2/client.feature +0 -16
- data/features/ec2/step_definitions.rb +0 -6
- data/features/elasticache/client.feature +0 -16
- data/features/elasticache/step_definitions.rb +0 -6
- data/features/elasticbeanstalk/client.feature +0 -16
- data/features/elasticbeanstalk/step_definitions.rb +0 -6
- data/features/elasticloadbalancing/client.feature +0 -16
- data/features/elasticloadbalancing/step_definitions.rb +0 -6
- data/features/elastictranscoder/client.feature +0 -16
- data/features/elastictranscoder/step_definitions.rb +0 -6
- data/features/emr/client.feature +0 -16
- data/features/emr/step_definitions.rb +0 -6
- data/features/env.rb +0 -23
- data/features/glacier/client.feature +0 -17
- data/features/glacier/step_definitions.rb +0 -93
- data/features/glacier/upload.feature +0 -27
- data/features/iam/client.feature +0 -16
- data/features/iam/step_definitions.rb +0 -6
- data/features/importexport/client.feature +0 -16
- data/features/importexport/step_definitions.rb +0 -6
- data/features/kinesis/client.feature +0 -16
- data/features/kinesis/step_definitions.rb +0 -6
- data/features/opsworks/client.feature +0 -16
- data/features/opsworks/step_definitions.rb +0 -6
- data/features/rds/client.feature +0 -16
- data/features/rds/step_definitions.rb +0 -6
- data/features/redshift/client.feature +0 -16
- data/features/redshift/step_definitions.rb +0 -6
- data/features/route53/client.feature +0 -16
- data/features/route53/step_definitions.rb +0 -6
- data/features/s3/buckets.feature +0 -40
- data/features/s3/objects.feature +0 -37
- data/features/s3/step_definitions.rb +0 -165
- data/features/s3/test.png +0 -0
- data/features/ses/client.feature +0 -16
- data/features/ses/step_definitions.rb +0 -6
- data/features/simpledb/client.feature +0 -16
- data/features/simpledb/step_definitions.rb +0 -6
- data/features/sns/client.feature +0 -17
- data/features/sns/step_definitions.rb +0 -6
- data/features/sqs/client.feature +0 -21
- data/features/sqs/step_definitions.rb +0 -29
- data/features/step_definitions.rb +0 -94
- data/features/storagegateway/client.feature +0 -16
- data/features/storagegateway/step_definitions.rb +0 -6
- data/features/sts/client.feature +0 -17
- data/features/sts/step_definitions.rb +0 -6
- data/features/swf/client.feature +0 -17
- data/features/swf/step_definitions.rb +0 -6
- data/integration-test-config.json.sample +0 -3
- data/lib/aws/api/manifest.rb +0 -29
- data/lib/aws/api/manifest_builder.rb +0 -57
- data/lib/aws/client.rb +0 -241
- data/lib/aws/endpoint_provider.rb +0 -165
- data/lib/aws/plugins/response_paging.rb +0 -20
- data/lib/aws/plugins/s3_sse_cpk.rb +0 -42
- data/lib/aws/response_handler.rb +0 -38
- data/lib/aws/service.rb +0 -32
- data/lib/aws/signers/v4.rb.orig +0 -243
- data/lib/aws/version.rb +0 -3
- data/lib/aws/version.rb.orig +0 -7
- data/lib/aws.rb +0 -208
- data/lib/aws.rb.orig +0 -218
- data/spec/aws/client_spec.rb +0 -269
- data/spec/aws/credential_provider_chain_spec.rb +0 -120
- data/spec/aws/credentials_spec.rb +0 -47
- data/spec/aws/errors_spec.rb +0 -39
- data/spec/aws/iam_spec.rb +0 -17
- data/spec/aws/instance_profile_credentials_spec.rb +0 -94
- data/spec/aws/json/builder_spec.rb +0 -188
- data/spec/aws/json/parser_spec.rb +0 -214
- data/spec/aws/operations_spec.rb +0 -145
- data/spec/aws/pageable_response_spec.rb +0 -171
- data/spec/aws/plugins/global_configuration_spec.rb +0 -58
- data/spec/aws/plugins/region_endpoint_spec.rb +0 -86
- data/spec/aws/plugins/request_signer_spec.rb +0 -88
- data/spec/aws/plugins/retry_errors_spec.rb +0 -266
- data/spec/aws/plugins/s3_md5s_spec.rb +0 -84
- data/spec/aws/plugins/sqs_queue_urls_spec.rb +0 -42
- data/spec/aws/query/param_builder_spec.rb +0 -362
- data/spec/aws/query/param_list_spec.rb +0 -80
- data/spec/aws/query/param_spec.rb +0 -64
- data/spec/aws/s3_spec.rb +0 -79
- data/spec/aws/shared_credentials_spec.rb +0 -68
- data/spec/aws/signers/v4_spec.rb +0 -141
- data/spec/aws/structure_spec.rb +0 -166
- data/spec/aws/util_spec.rb +0 -60
- data/spec/aws/xml/builder_spec.rb +0 -412
- data/spec/aws/xml/parser_spec.rb +0 -723
- data/spec/aws_spec.rb +0 -94
- data/spec/fixtures/api/swf.json +0 -100
- data/spec/fixtures/credentials/mock_shared_credentials +0 -14
- data/spec/fixtures/operations/cloudfront/list_distributions.yml +0 -199
- data/spec/fixtures/operations/cloudfront/max_items.yml +0 -11
- data/spec/fixtures/operations/dynamodb/error_parsing.yml +0 -13
- data/spec/fixtures/operations/glacier/account_id_param.yml +0 -13
- data/spec/fixtures/operations/glacier/custom_account_id.yml +0 -11
- data/spec/fixtures/operations/glacier/default_account_id.yml +0 -10
- data/spec/fixtures/operations/glacier/error_parsing.yml +0 -10
- data/spec/fixtures/operations/glacier/get_job_output.yml +0 -23
- data/spec/fixtures/operations/glacier/list_vaults.yml +0 -24
- data/spec/fixtures/operations/iam/result_wrapped_elements.yml +0 -31
- data/spec/fixtures/operations/route53/change_resource_record_sets.yml +0 -18
- data/spec/fixtures/operations/s3/304_response.yml +0 -12
- data/spec/fixtures/operations/s3/400_response.yml +0 -12
- data/spec/fixtures/operations/s3/403_response.yml +0 -12
- data/spec/fixtures/operations/s3/404_response.yml +0 -12
- data/spec/fixtures/operations/s3/412_response_head.yml +0 -10
- data/spec/fixtures/operations/s3/comlete_multipart_upload_error.yml +0 -18
- data/spec/fixtures/operations/s3/content_type_header.yml +0 -12
- data/spec/fixtures/operations/s3/create_bucket_with_implied_location_constraint.yml +0 -23
- data/spec/fixtures/operations/s3/create_bucket_with_location_constraint.yml +0 -25
- data/spec/fixtures/operations/s3/create_bucket_without_location_constraint.yml +0 -9
- data/spec/fixtures/operations/s3/delete_objects.yml +0 -54
- data/spec/fixtures/operations/s3/error_parsing.yml +0 -17
- data/spec/fixtures/operations/s3/get_bucket_location.yml +0 -17
- data/spec/fixtures/operations/s3/get_bucket_location_classic.yml +0 -17
- data/spec/fixtures/operations/s3/get_bucket_policy.yml +0 -8
- data/spec/fixtures/operations/s3/head_bucket_with_dns_incompatible_name.yml +0 -12
- data/spec/fixtures/operations/s3/head_object.yml +0 -50
- data/spec/fixtures/operations/s3/list_buckets.yml +0 -41
- data/spec/fixtures/operations/s3/md5_checksum_disabled.yml +0 -10
- data/spec/fixtures/operations/s3/md5_checksum_enabled.yml +0 -8
- data/spec/fixtures/operations/swf/list_domains.yml +0 -20
- data/spec/fixtures/protocols/input/ec2.json +0 -383
- data/spec/fixtures/protocols/input/json.json +0 -47
- data/spec/fixtures/protocols/input/query.json +0 -335
- data/spec/fixtures/protocols/input/rest-json.json +0 -365
- data/spec/fixtures/protocols/input/rest-xml.json +0 -818
- data/spec/fixtures/protocols/output/ec2.json +0 -381
- data/spec/fixtures/protocols/output/json.json +0 -313
- data/spec/fixtures/protocols/output/query.json +0 -424
- data/spec/fixtures/protocols/output/rest-json.json +0 -486
- data/spec/fixtures/protocols/output/rest-xml.json +0 -486
- data/spec/protocols_spec.rb +0 -186
- data/spec/spec_helper.rb +0 -66
- data/tasks/docs.rake +0 -61
- data/tasks/handlers.rake +0 -98
- data/tasks/manifest.rake +0 -9
- data/tasks/test.rake +0 -30
- data/vendor/seahorse/.gitignore +0 -5
- data/vendor/seahorse/.simplecov +0 -4
- data/vendor/seahorse/.yardopts +0 -10
- data/vendor/seahorse/Gemfile +0 -17
- data/vendor/seahorse/LICENSE.txt +0 -12
- data/vendor/seahorse/README.md +0 -129
- data/vendor/seahorse/Rakefile +0 -7
- data/vendor/seahorse/lib/seahorse/client/plugins/api.rb +0 -11
- data/vendor/seahorse/seahorse.gemspec +0 -20
- data/vendor/seahorse/spec/fixtures/plugin.rb +0 -4
- data/vendor/seahorse/spec/seahorse/client/base_spec.rb +0 -299
- data/vendor/seahorse/spec/seahorse/client/configuration_spec.rb +0 -122
- data/vendor/seahorse/spec/seahorse/client/handler_builder_spec.rb +0 -159
- data/vendor/seahorse/spec/seahorse/client/handler_list_spec.rb +0 -232
- data/vendor/seahorse/spec/seahorse/client/handler_spec.rb +0 -40
- data/vendor/seahorse/spec/seahorse/client/http/headers_spec.rb +0 -213
- data/vendor/seahorse/spec/seahorse/client/http/request_spec.rb +0 -121
- data/vendor/seahorse/spec/seahorse/client/http/response_spec.rb +0 -77
- data/vendor/seahorse/spec/seahorse/client/logging/formatter_spec.rb +0 -185
- data/vendor/seahorse/spec/seahorse/client/logging/handler_spec.rb +0 -63
- data/vendor/seahorse/spec/seahorse/client/net_http/connection_pool_spec.rb +0 -10
- data/vendor/seahorse/spec/seahorse/client/net_http/handler_spec.rb +0 -242
- data/vendor/seahorse/spec/seahorse/client/param_converter_spec.rb +0 -308
- data/vendor/seahorse/spec/seahorse/client/param_validator_spec.rb +0 -275
- data/vendor/seahorse/spec/seahorse/client/plugin_list_spec.rb +0 -166
- data/vendor/seahorse/spec/seahorse/client/plugin_spec.rb +0 -118
- data/vendor/seahorse/spec/seahorse/client/plugins/content_length_spec.rb +0 -19
- data/vendor/seahorse/spec/seahorse/client/plugins/endpoint_spec.rb +0 -33
- data/vendor/seahorse/spec/seahorse/client/plugins/logging_spec.rb +0 -46
- data/vendor/seahorse/spec/seahorse/client/plugins/net_http_spec.rb +0 -70
- data/vendor/seahorse/spec/seahorse/client/plugins/operation_methods_spec.rb +0 -76
- data/vendor/seahorse/spec/seahorse/client/request_context_spec.rb +0 -105
- data/vendor/seahorse/spec/seahorse/client/request_spec.rb +0 -152
- data/vendor/seahorse/spec/seahorse/client/response_spec.rb +0 -95
- data/vendor/seahorse/spec/seahorse/client/xml/builder/xml_doc_spec.rb +0 -142
- data/vendor/seahorse/spec/seahorse/client/xml/builder_spec.rb +0 -10
- data/vendor/seahorse/spec/seahorse/model/api_spec.rb +0 -154
- data/vendor/seahorse/spec/seahorse/model/operation_spec.rb +0 -162
- data/vendor/seahorse/spec/seahorse/model/shape_map_spec.rb +0 -84
- data/vendor/seahorse/spec/seahorse/model/shapes_spec.rb +0 -522
- data/vendor/seahorse/spec/seahorse/util_spec.rb +0 -54
- data/vendor/seahorse/spec/seahorse/version_spec.rb +0 -11
- data/vendor/seahorse/spec/spec_helper.rb +0 -34
- data/vendor/seahorse/tasks/docs.rake +0 -11
- data/vendor/seahorse/tasks/test.rake +0 -15
- /data/apis/{autoscaling-2011-01-01.paginators.json → AutoScaling.paginators.json} +0 -0
- /data/apis/{cloudformation-2010-05-15.paginators.json → CloudFormation.paginators.json} +0 -0
- /data/apis/{cloudfront-2014-01-31.waiters.json → CloudFront.waiters.json} +0 -0
- /data/apis/{cloudsearch-2013-01-01.paginators.json → CloudSearch.paginators.json} +0 -0
- /data/apis/{cloudtrail-2013-11-01.paginators.json → CloudTrail.paginators.json} +0 -0
- /data/apis/{monitoring-2010-08-01.paginators.json → CloudWatch.paginators.json} +0 -0
- /data/apis/{logs-2014-03-28.paginators.json → CloudWatchLogs.paginators.json} +0 -0
- /data/apis/{datapipeline-2012-10-29.paginators.json → DataPipeline.paginators.json} +0 -0
- /data/apis/{directconnect-2012-10-25.paginators.json → DirectConnect.paginators.json} +0 -0
- /data/apis/{dynamodb-2012-08-10.waiters.json → DynamoDB.waiters.json} +0 -0
- /data/apis/{ec2-2014-06-15.paginators.json → EC2.paginators.json} +0 -0
- /data/apis/{ec2-2014-06-15.waiters.json → EC2.waiters.json} +0 -0
- /data/apis/{elasticmapreduce-2009-03-31.paginators.json → EMR.paginators.json} +0 -0
- /data/apis/{elasticache-2014-03-24.paginators.json → ElastiCache.paginators.json} +0 -0
- /data/apis/{elasticbeanstalk-2010-12-01.paginators.json → ElasticBeanstalk.paginators.json} +0 -0
- /data/apis/{elasticloadbalancing-2012-06-01.paginators.json → ElasticLoadBalancing.paginators.json} +0 -0
- /data/apis/{elastictranscoder-2012-09-25.paginators.json → ElasticTranscoder.paginators.json} +0 -0
- /data/apis/{glacier-2012-06-01.paginators.json → Glacier.paginators.json} +0 -0
- /data/apis/{glacier-2012-06-01.waiters.json → Glacier.waiters.json} +0 -0
- /data/apis/{iam-2010-05-08.paginators.json → IAM.paginators.json} +0 -0
- /data/apis/{importexport-2010-06-01.paginators.json → ImportExport.paginators.json} +0 -0
- /data/apis/{opsworks-2013-02-18.paginators.json → OpsWorks.paginators.json} +0 -0
- /data/apis/{rds-2013-01-10.paginators.json → RDS.paginators.json} +0 -0
- /data/apis/{rds-2013-09-09.waiters.json → RDS.waiters.json} +0 -0
- /data/apis/{redshift-2012-12-01.paginators.json → Redshift.paginators.json} +0 -0
- /data/apis/{redshift-2012-12-01.waiters.json → Redshift.waiters.json} +0 -0
- /data/apis/{route53-2013-04-01.paginators.json → Route53.paginators.json} +0 -0
- /data/apis/{s3-2006-03-01.waiters.json → S3.waiters.json} +0 -0
- /data/apis/{email-2010-12-01.paginators.json → SES.paginators.json} +0 -0
- /data/apis/{email-2010-12-01.waiters.json → SES.waiters.json} +0 -0
- /data/apis/{sns-2010-03-31.paginators.json → SNS.paginators.json} +0 -0
- /data/apis/{sns-2010-03-31.resources.json → SNS.resources.json} +0 -0
- /data/apis/{sqs-2012-11-05.paginators.json → SQS.paginators.json} +0 -0
- /data/apis/{swf-2012-01-25.paginators.json → SWF.paginators.json} +0 -0
- /data/apis/{sdb-2009-04-15.paginators.json → SimpleDB.paginators.json} +0 -0
- /data/apis/{storagegateway-2013-06-30.paginators.json → StorageGateway.paginators.json} +0 -0
- /data/apis/{support-2013-04-15.paginators.json → Support.paginators.json} +0 -0
- /data/lib/{aws → aws-sdk-core}/api/customizer.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/credentials.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/builder.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/error_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/parser.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/rest_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/rpc_body_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/rpc_headers_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/json/simple_body_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/null_pager.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/null_provider.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/pager.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/paging/provider.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/dynamodb_extended_retries.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/ec2_copy_encrypted_snapshot.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/glacier_account_id.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/glacier_api_version.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/glacier_checksums.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/ec2.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/query.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/rest_json.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/protocols/rest_xml.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_bucket_dns.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_complete_multipart_upload_fix.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_get_bucket_location_fix.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_location_constraint.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_md5s.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/s3_redirects.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/sqs_queue_urls.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/plugins/swf_read_timeouts.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/ec2_param_builder.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/param.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/param_builder.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/query/param_list.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/rest_body_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/shared_credentials.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/base.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/s3.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/v2.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/signers/v3.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/tree_hash.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/xml/error_handler.rb +0 -0
- /data/lib/{aws → aws-sdk-core}/xml/rest_handler.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/block_io.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/configuration.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/handler.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/handler_builder.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/handler_list_entry.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/http/headers.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/http/response.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/logging/formatter.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/logging/handler.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/managed_file.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/param_validator.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugin.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugin_list.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/content_length.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/json_simple.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/logging.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/net_http.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/operation_methods.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/param_conversion.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/param_validation.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/plugins/raise_response_errors.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/client/request_context.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/model/api.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/model/operation.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/util.rb +0 -0
- /data/{vendor/seahorse/lib → lib}/seahorse/version.rb +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Before("@glacier") do
|
|
2
|
-
@glacier = @client = Aws.glacier
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
After("@glacier") do
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
def upload_glacier_archive(contents)
|
|
9
|
-
resp = @glacier.upload_archive(
|
|
10
|
-
vault_name: @vault_name,
|
|
11
|
-
body: contents
|
|
12
|
-
)
|
|
13
|
-
@archive_id = resp.data.archive_id if resp.data
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def create_file(size_in_mb)
|
|
17
|
-
file = Tempfile.new('aws-sdk-core-glacier-sample')
|
|
18
|
-
file.write('.' * bytes(size_in_mb.to_f))
|
|
19
|
-
file.rewind
|
|
20
|
-
file
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def bytes(megabytes)
|
|
24
|
-
megabytes.to_f * 1024 * 1024
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
Given(/^I have a vault ready to receive uploads$/) do
|
|
28
|
-
# ensure we have a suitable vault for testing with
|
|
29
|
-
@vault_name = 'aws-sdk-core-integration-test-vault'
|
|
30
|
-
begin
|
|
31
|
-
@glacier.describe_vault(vault_name: @vault_name, account_id: '-')
|
|
32
|
-
rescue Aws::Glacier::Errors::ResourceNotFoundException
|
|
33
|
-
@glacier.create_vault(vault_name: @vault_name, account_id: '-')
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
When(/^I upload an archive with the contents "(.*?)"$/) do |contents|
|
|
38
|
-
begin
|
|
39
|
-
upload_glacier_archive(contents)
|
|
40
|
-
rescue => @error
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
When(/^I upload an archive from a ([0-9\.]+)MB large file$/) do |size_in_mb|
|
|
45
|
-
upload_glacier_archive(create_file(size_in_mb))
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
When(/^I multipart\-upload a ([0-9\.]+)MB file in ([0-9\.]+) byte chunks$/) do |size_in_mb, part_size|
|
|
49
|
-
|
|
50
|
-
file = create_file(size_in_mb)
|
|
51
|
-
part_size = part_size.to_i
|
|
52
|
-
|
|
53
|
-
# start the multipart upload
|
|
54
|
-
resp = @glacier.initiate_multipart_upload(
|
|
55
|
-
vault_name: @vault_name,
|
|
56
|
-
part_size: part_size
|
|
57
|
-
)
|
|
58
|
-
@upload_id = resp.data.upload_id
|
|
59
|
-
|
|
60
|
-
# Keep a rolling tree hash of the entire file, required to complete the
|
|
61
|
-
# multipart upload at the end
|
|
62
|
-
tree_hash = Aws::TreeHash.new
|
|
63
|
-
|
|
64
|
-
# Upload the file in chunks and extract from each response the tree hash
|
|
65
|
-
# for that chunk. This eliminates the need to compute the total tree hash
|
|
66
|
-
# of the object in a second pass.
|
|
67
|
-
offset = 0
|
|
68
|
-
until file.eof?
|
|
69
|
-
chunk = file.read(part_size)
|
|
70
|
-
resp = @glacier.upload_multipart_part(
|
|
71
|
-
vault_name: @vault_name,
|
|
72
|
-
upload_id: @upload_id,
|
|
73
|
-
body: chunk,
|
|
74
|
-
range: "bytes #{offset}-#{offset+chunk.bytesize-1}/*"
|
|
75
|
-
)
|
|
76
|
-
tree_hash.hashes.concat(resp.context[:tree_hash].hashes)
|
|
77
|
-
offset += chunk.bytesize
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# complete the multipart upload
|
|
81
|
-
resp = @glacier.complete_multipart_upload(
|
|
82
|
-
vault_name: @vault_name,
|
|
83
|
-
upload_id: @upload_id,
|
|
84
|
-
archive_size: file.size,
|
|
85
|
-
checksum: tree_hash.digest
|
|
86
|
-
)
|
|
87
|
-
@archive_id = resp.archive_id
|
|
88
|
-
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
Then(/^I should be able to delete the archive$/) do
|
|
92
|
-
@glacier.delete_archive(vault_name: @vault_name, archive_id: @archive_id)
|
|
93
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@glacier @upload
|
|
3
|
-
Feature: Amazon Glacier
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given I have a vault ready to receive uploads
|
|
7
|
-
|
|
8
|
-
Scenario: Uploading an archive from a string
|
|
9
|
-
When I upload an archive with the contents "Hello World!"
|
|
10
|
-
Then I should be able to delete the archive
|
|
11
|
-
|
|
12
|
-
@slow
|
|
13
|
-
Scenario: Uploading and deleting an archive
|
|
14
|
-
When I upload an archive from a 5.5MB large file
|
|
15
|
-
Then I should be able to delete the archive
|
|
16
|
-
|
|
17
|
-
@multipart @slow
|
|
18
|
-
Scenario: Using multipart upload interface
|
|
19
|
-
When I multipart-upload a 15.5MB file in 1048576 byte chunks
|
|
20
|
-
Then I should be able to delete the archive
|
|
21
|
-
|
|
22
|
-
# There was an issue where the client would fail attempting to compute
|
|
23
|
-
# a checksum of an empty body, this step ensures that the checksum
|
|
24
|
-
# computation does not hang.
|
|
25
|
-
Scenario: Attempting to upload an empty archive
|
|
26
|
-
When I upload an archive with the contents ""
|
|
27
|
-
Then I expect the response error code to be "InvalidParameterValueException"
|
data/features/iam/client.feature
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@iam @client
|
|
3
|
-
Feature: AWS Identity and Access Management
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListUsers" API
|
|
7
|
-
Then the response should contain a list of "Users"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "GetUser" API with:
|
|
11
|
-
| UserName | fake_user |
|
|
12
|
-
Then I expect the response error code to be "NoSuchEntity"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
The user with name fake_user cannot be found.
|
|
16
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@importexport @client
|
|
3
|
-
Feature: AWS Import/Export
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListJobs" API
|
|
7
|
-
Then the response should contain a list of "Jobs"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "GetStatus" API with:
|
|
11
|
-
| JobId | fake_job |
|
|
12
|
-
Then I expect the response error code to be "InvalidJobIdException"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
No such job fake_job for your account
|
|
16
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@kinesis @client
|
|
3
|
-
Feature: AWS Kinesis
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListStreams" API
|
|
7
|
-
Then the response should contain a list of "StreamNames"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "DescribeStream" API with:
|
|
11
|
-
| StreamName | bogus-stream-name |
|
|
12
|
-
Then I expect the response error code to be "ResourceNotFoundException"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
Stream bogus-stream-name under account
|
|
16
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@opsworks @client
|
|
3
|
-
Feature: AWS OpsWorks
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "DescribeStacks" API
|
|
7
|
-
Then the response should contain a list of "Stacks"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "DescribeLayers" API with:
|
|
11
|
-
| StackId | fake_stack |
|
|
12
|
-
Then I expect the response error code to be "ResourceNotFoundException"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
Unable to find stack with ID fake_stack
|
|
16
|
-
"""
|
data/features/rds/client.feature
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@rds @client
|
|
3
|
-
Feature: Amazon RDS
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "DescribeDbEngineVersions" API
|
|
7
|
-
Then the response should contain a list of "DbEngineVersions"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "DescribeDbInstances" API with:
|
|
11
|
-
| DbInstanceIdentifier | fake-id |
|
|
12
|
-
Then I expect the response error code to be "DBInstanceNotFound"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
DBInstance fake-id not found.
|
|
16
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@redshift @client
|
|
3
|
-
Feature: Amazon Redshift
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "DescribeClusterVersions" API
|
|
7
|
-
Then the response should contain a list of "ClusterVersions"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "DescribeClusters" API with:
|
|
11
|
-
| ClusterIdentifier | fake-cluster |
|
|
12
|
-
Then I expect the response error code to be "ClusterNotFound"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
Cluster fake-cluster not found.
|
|
16
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@route53 @client
|
|
3
|
-
Feature: Amazon Route 53
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListHostedZones" API
|
|
7
|
-
Then the response should contain a list of "HostedZones"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "GetHostedZone" API with:
|
|
11
|
-
| Id | fake-zone |
|
|
12
|
-
Then I expect the response error code to be "NoSuchHostedZone"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
No hosted zone found with ID: fake-zone
|
|
16
|
-
"""
|
data/features/s3/buckets.feature
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@s3 @buckets
|
|
3
|
-
Feature: S3 Buckets
|
|
4
|
-
|
|
5
|
-
Scenario: CRUD buckets using the classic endpoint
|
|
6
|
-
Given I am using the S3 "us-east-1" region
|
|
7
|
-
When I create a bucket
|
|
8
|
-
Then the bucket should exist
|
|
9
|
-
When I delete the bucket
|
|
10
|
-
Then the bucket should not exist
|
|
11
|
-
|
|
12
|
-
Scenario: CRUD buckets using a regional endpoint
|
|
13
|
-
Given I am using the S3 "us-west-2" region
|
|
14
|
-
When I create a bucket
|
|
15
|
-
Then the bucket should exist
|
|
16
|
-
When I delete the bucket
|
|
17
|
-
Then the bucket should not exist
|
|
18
|
-
|
|
19
|
-
Scenario: Access bucket following 307 redirects
|
|
20
|
-
Given I am using the S3 "us-east-1" region
|
|
21
|
-
When I create a bucket with the location constraint "EU"
|
|
22
|
-
Then the bucket should have a location constraint of "EU"
|
|
23
|
-
|
|
24
|
-
Scenario: Working with bucket names that contain '.'
|
|
25
|
-
Given I am using the S3 "https://s3.amazonaws.com" endpoint
|
|
26
|
-
When I create a bucket with a DNS compatible name that contains a dot
|
|
27
|
-
Then I should be able to delete the bucket
|
|
28
|
-
|
|
29
|
-
Scenario: Working with bucket names that contain '.'
|
|
30
|
-
Given I am using the S3 "http://s3.amazonaws.com" endpoint
|
|
31
|
-
When I create a bucket with a DNS compatible name that contains a dot
|
|
32
|
-
Then I should be able to delete the bucket
|
|
33
|
-
|
|
34
|
-
@force_path_style
|
|
35
|
-
Scenario: Operating on a bucket/object using path style
|
|
36
|
-
Given I force path style requests
|
|
37
|
-
And I create a DNS compatible bucket
|
|
38
|
-
When I put "abc" to the key "object-key"
|
|
39
|
-
Then the bucket name should be in the request path
|
|
40
|
-
And the bucket name should not be in the request host
|
data/features/s3/objects.feature
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@s3 @objects
|
|
3
|
-
Feature: S3 Objects
|
|
4
|
-
|
|
5
|
-
Background:
|
|
6
|
-
Given I create a bucket
|
|
7
|
-
|
|
8
|
-
Scenario: Putting nothing to an object
|
|
9
|
-
When I put nothing to the key "blank"
|
|
10
|
-
Then the object with the key "blank" should have a content length of 0
|
|
11
|
-
|
|
12
|
-
Scenario: Putting a multi-byte string to an object
|
|
13
|
-
When I put "åß∂ƒ©" to the key "multi"
|
|
14
|
-
Then the object with the key "multi" should have a content length of 11
|
|
15
|
-
|
|
16
|
-
Scenario: Putting a file to an object
|
|
17
|
-
When I put the test png to the key "img"
|
|
18
|
-
Then the object with the key "img" should have a content length of 976
|
|
19
|
-
|
|
20
|
-
Scenario: Using server-side-encryption with customer-provided key
|
|
21
|
-
When I put "hello" to the key "test" with an aes key
|
|
22
|
-
Then I can download the key "test" with the aes key
|
|
23
|
-
|
|
24
|
-
Scenario: Reading an object from S3
|
|
25
|
-
Given I put "hello" to the key "test"
|
|
26
|
-
When I get the object with the key "test"
|
|
27
|
-
Then the body should be an IO object
|
|
28
|
-
And the body#read method should return "hello"
|
|
29
|
-
|
|
30
|
-
@paging
|
|
31
|
-
Scenario: Paging responses
|
|
32
|
-
Given I put nothing to the key "photos/camping/cascades.jpg"
|
|
33
|
-
Given I put nothing to the key "photos/skiing/stevens.jpg"
|
|
34
|
-
And I put nothing to the key "photos/family.jpg"
|
|
35
|
-
And I put nothing to the key "photos/friends.jpg"
|
|
36
|
-
When I page s3 objects prefixed "photos/" delimited "/" limit 1
|
|
37
|
-
Then I should have received 4 responses
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
require 'openssl'
|
|
2
|
-
|
|
3
|
-
Before("@s3") do
|
|
4
|
-
@s3 = @client = Aws.s3
|
|
5
|
-
@created_buckets = []
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
After("@s3") do
|
|
9
|
-
@created_buckets.each do |bucket|
|
|
10
|
-
loop do
|
|
11
|
-
objects = @s3.list_object_versions(bucket: bucket).data.versions.map do |v|
|
|
12
|
-
{ key: v.key, version_id: v.version_id }
|
|
13
|
-
end
|
|
14
|
-
break if objects.empty?
|
|
15
|
-
@s3.delete_objects(bucket: bucket, delete: { objects: objects })
|
|
16
|
-
end
|
|
17
|
-
@s3.delete_bucket(bucket: bucket)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def create_bucket(options = {})
|
|
22
|
-
@bucket_name = "aws-sdk-test-#{Time.now.to_i}-#{rand(1000)}"
|
|
23
|
-
options[:bucket] = @bucket_name
|
|
24
|
-
if @s3.config.region != 'us-east-1' && !options[:create_bucket_configuration]
|
|
25
|
-
options[:create_bucket_configuration] = {
|
|
26
|
-
location_constraint: @s3.config.region
|
|
27
|
-
}
|
|
28
|
-
end
|
|
29
|
-
@s3.create_bucket(options)
|
|
30
|
-
@created_buckets << @bucket_name
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
When(/^I force path style requests$/) do
|
|
34
|
-
@s3 = Aws.s3(force_path_style:true)
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
Given(/^I am using the S3 "(.*?)" region$/) do |region|
|
|
38
|
-
@s3 = Aws.s3(region: region)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
When(/^I create a bucket$/) do
|
|
42
|
-
create_bucket
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
Given(/^I create a DNS compatible bucket$/) do
|
|
46
|
-
create_bucket
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
When(/^I create a bucket with the location constraint "(.*?)"$/) do |loc|
|
|
50
|
-
create_bucket(create_bucket_configuration: {
|
|
51
|
-
location_constraint: loc
|
|
52
|
-
})
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
Then(/^the bucket should have a location constraint of "(.*?)"$/) do |loc|
|
|
56
|
-
resp = @s3.get_bucket_location(bucket: @bucket_name)
|
|
57
|
-
expect(resp.data.location_constraint).to eq(loc)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
Then(/^the bucket should exist$/) do
|
|
61
|
-
expect { @s3.get_bucket_location(bucket: @bucket_name) }.not_to raise_error
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
When(/^I delete the bucket$/) do
|
|
65
|
-
@s3.delete_bucket(bucket: @bucket_name)
|
|
66
|
-
@created_buckets.delete(@bucket_name)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
Then(/^the bucket should not exist$/) do
|
|
70
|
-
eventually(upto: 60) do
|
|
71
|
-
begin
|
|
72
|
-
@s3.get_bucket_location(bucket: @bucket_name)
|
|
73
|
-
rescue => @error
|
|
74
|
-
end
|
|
75
|
-
expect(@error).to be_kind_of(Aws::S3::Errors::NoSuchBucket)
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
When(/^I put nothing to the key "(.*?)"$/) do |key|
|
|
80
|
-
@s3.put_object(bucket: @bucket_name, key: key)
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
When(/^I put "(.*?)" to the key "(.*?)"$/) do |data, key|
|
|
84
|
-
@response = @s3.put_object(bucket: @bucket_name, key: key, body: data)
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
When(/^I put the test png to the key "(.*?)"$/) do |key|
|
|
88
|
-
file = File.open(File.join(File.dirname(__FILE__), 'test.png'), 'rb')
|
|
89
|
-
@s3.put_object(bucket: @bucket_name, key: key, body: file)
|
|
90
|
-
file.close
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
Then(/^the object with the key "(.*?)" should have a content length of (\d+)$/) do |key, size|
|
|
94
|
-
resp = @s3.head_object(bucket: @bucket_name, key: key)
|
|
95
|
-
expect(resp.data.content_length).to eq(size.to_i)
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
When(/^I page s3 objects prefixed "(.*?)" delimited "(.*?)" limit (\d+)$/) do |prefix, delimiter, max_keys|
|
|
99
|
-
@responses = []
|
|
100
|
-
@s3.list_objects(
|
|
101
|
-
bucket: @bucket_name,
|
|
102
|
-
prefix: prefix,
|
|
103
|
-
delimiter: delimiter,
|
|
104
|
-
max_keys: max_keys
|
|
105
|
-
).each do |resp|
|
|
106
|
-
@responses << resp
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
Then(/^I should have received (\d+) responses$/) do |count|
|
|
111
|
-
expect(@responses.size).to eq(count.to_i)
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
Given(/^I am using the S3 "(.*?)" endpoint$/) do |endpoint|
|
|
115
|
-
@s3 = Aws.s3(endpoint: endpoint)
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
When(/^I create a bucket with a DNS compatible name that contains a dot$/) do
|
|
119
|
-
@bucket_name = "aws.#{Time.now.to_i}.sdk"
|
|
120
|
-
@s3.create_bucket(bucket: @bucket_name)
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
Then(/^I should be able to delete the bucket$/) do
|
|
124
|
-
@s3.delete_bucket(bucket: @bucket_name)
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
Then(/^the bucket name should be in the request path$/) do
|
|
128
|
-
endpoint = @response.context.http_request.endpoint
|
|
129
|
-
expect(endpoint.path).to include(@bucket_name)
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
Then(/^the bucket name should not be in the request host$/) do
|
|
133
|
-
endpoint = @response.context.http_request.endpoint
|
|
134
|
-
expect(endpoint.host).not_to include(@bucket_name)
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
When(/^I put "(.*?)" to the key "(.*?)" with an aes key$/) do |body, key|
|
|
138
|
-
@aes_key = OpenSSL::Cipher.new('aes-256-cbc').random_key
|
|
139
|
-
@s3.put_object(
|
|
140
|
-
bucket: @bucket_name,
|
|
141
|
-
key: key,
|
|
142
|
-
body: body,
|
|
143
|
-
sse_customer_algorithm: 'AES256',
|
|
144
|
-
sse_customer_key: @aes_key)
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
Then(/^I can download the key "(.*?)" with the aes key$/) do |key|
|
|
148
|
-
@s3.get_object(
|
|
149
|
-
bucket: @bucket_name,
|
|
150
|
-
key: key,
|
|
151
|
-
sse_customer_algorithm: 'AES256',
|
|
152
|
-
sse_customer_key: @aes_key)
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
When(/^I get the object with the key "(.*?)"$/) do |key|
|
|
156
|
-
@response = @s3.get_object(bucket: @bucket_name, key: key)
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
Then(/^the body should be an IO object$/) do
|
|
160
|
-
expect(@response.body).to be_kind_of(StringIO)
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
Then(/^the body\#read method should return "(.*?)"$/) do |str|
|
|
164
|
-
expect(@response.body.read).to eq(str)
|
|
165
|
-
end
|
data/features/s3/test.png
DELETED
|
Binary file
|
data/features/ses/client.feature
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@ses @client
|
|
3
|
-
Feature: Amazon Simple Email Service
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListIdentities" API
|
|
7
|
-
Then the response should contain a list of "Identities"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "VerifyEmailIdentity" API with:
|
|
11
|
-
| EmailAddress | fake_email |
|
|
12
|
-
Then I expect the response error code to be "InvalidParameterValue"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
Invalid email address<fake_email>.
|
|
16
|
-
"""
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@simpledb @client
|
|
3
|
-
Feature: Amazon SimpleDB
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListDomains" API
|
|
7
|
-
Then the response should contain a list of "DomainNames"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "DomainMetadata" API with:
|
|
11
|
-
| DomainName | fake-domain |
|
|
12
|
-
Then I expect the response error code to be "NoSuchDomain"
|
|
13
|
-
And I expect the response error message to include:
|
|
14
|
-
"""
|
|
15
|
-
The specified domain does not exist.
|
|
16
|
-
"""
|
data/features/sns/client.feature
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@sns @client
|
|
3
|
-
Feature: Amazon Simple Notification Service
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListTopics" API
|
|
7
|
-
Then the response should contain a list of "Topics"
|
|
8
|
-
|
|
9
|
-
Scenario: Error handling
|
|
10
|
-
When I attempt to call the "Publish" API with:
|
|
11
|
-
| Message | hello |
|
|
12
|
-
| TopicArn | fake_topic |
|
|
13
|
-
Then I expect the response error code to be "InvalidParameter"
|
|
14
|
-
And I expect the response error message to include:
|
|
15
|
-
"""
|
|
16
|
-
Invalid parameter: TopicArn Reason: fake_topic does not start with arn
|
|
17
|
-
"""
|
data/features/sqs/client.feature
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# language: en
|
|
2
|
-
@sqs @client
|
|
3
|
-
Feature: Amazon Simple Queue Service
|
|
4
|
-
|
|
5
|
-
Scenario: Making a basic request
|
|
6
|
-
When I call the "ListQueues" API
|
|
7
|
-
Then the response should contain a list of "QueueUrls"
|
|
8
|
-
|
|
9
|
-
Scenario: Cross Region Queue Operatoins
|
|
10
|
-
Given I create a queue in "us-west-1"
|
|
11
|
-
When I operate on that queue in "us-east-1"
|
|
12
|
-
Then the request should be made against "us-west-1"
|
|
13
|
-
|
|
14
|
-
Scenario: Error handling
|
|
15
|
-
When I attempt to call the "GetQueueUrl" API with:
|
|
16
|
-
| QueueName | fake_queue |
|
|
17
|
-
Then I expect the response error code to be "NonExistentQueue"
|
|
18
|
-
And I expect the response error message to include:
|
|
19
|
-
"""
|
|
20
|
-
The specified queue does not exist for this wsdl version.
|
|
21
|
-
"""
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
Before("@sqs") do
|
|
2
|
-
@sqs = @client = Aws.sqs
|
|
3
|
-
@sqs_created_queues = []
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
After("@sqs") do
|
|
7
|
-
@sqs_created_queues.each do |url|
|
|
8
|
-
@sqs.delete_delete_queue(queue_url: url)
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
Given(/^I create a queue in "(.*?)"$/) do |region|
|
|
13
|
-
name = "aws-sdk-core-integration-test-#{Time.now.to_i}-#{rand(1000)}"
|
|
14
|
-
resp = Aws.sqs(region: region).create_queue(queue_name: name)
|
|
15
|
-
@queue_url = resp.queue_url
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
When(/^I operate on that queue in "(.*?)"$/) do |region|
|
|
19
|
-
@response = Aws.sqs(region: region).send_message(
|
|
20
|
-
queue_url: @queue_url,
|
|
21
|
-
message_body: 'hello'
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
Then(/^the request should be made against "(.*?)"$/) do |region|
|
|
26
|
-
expect(@response.context.http_request.endpoint.to_s).to include(region)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
|