diff --git a/apis/acm/2015-12-08/smoke.json b/apis/acm/2015-12-08/smoke.json deleted file mode 100644 index 12c425a62a1..00000000000 --- a/apis/acm/2015-12-08/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListCertificates", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetCertificate", - "input": { - "CertificateArn": "arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/amplifyuibuilder/2021-08-11/smoke.json b/apis/amplifyuibuilder/2021-08-11/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/amplifyuibuilder/2021-08-11/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/apigateway/2015-07-09/smoke.json b/apis/apigateway/2015-07-09/smoke.json deleted file mode 100644 index 205de071caf..00000000000 --- a/apis/apigateway/2015-07-09/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "GetDomainNames", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "CreateUsagePlanKey", - "input": { - "usagePlanId": "foo", - "keyId": "bar", - "keyType": "fixx" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/appfabric/2023-05-19/smoke.json b/apis/appfabric/2023-05-19/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/appfabric/2023-05-19/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/application-autoscaling/2016-02-06/smoke.json b/apis/application-autoscaling/2016-02-06/smoke.json deleted file mode 100644 index 2d1265602c2..00000000000 --- a/apis/application-autoscaling/2016-02-06/smoke.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeScalableTargets", - "input": { - "ServiceNamespace": "ec2" - }, - "errorExpectedFromService": false - } - ] -} \ No newline at end of file diff --git a/apis/appstream/2016-12-01/smoke.json b/apis/appstream/2016-12-01/smoke.json deleted file mode 100644 index 49dca4295b2..00000000000 --- a/apis/appstream/2016-12-01/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeStacks", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/athena/2017-05-18/smoke.json b/apis/athena/2017-05-18/smoke.json deleted file mode 100644 index a3c06685f79..00000000000 --- a/apis/athena/2017-05-18/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListNamedQueries", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/autoscaling/2011-01-01/smoke.json b/apis/autoscaling/2011-01-01/smoke.json deleted file mode 100644 index 0b48da94fe5..00000000000 --- a/apis/autoscaling/2011-01-01/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeScalingProcessTypes", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "CreateLaunchConfiguration", - "input": { - "LaunchConfigurationName": "hello, world", - "ImageId": "ami-12345678", - "InstanceType": "m1.small" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/batch/2016-08-10/smoke.json b/apis/batch/2016-08-10/smoke.json deleted file mode 100644 index 124e17e638d..00000000000 --- a/apis/batch/2016-08-10/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeComputeEnvironments", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/bedrock-runtime/2023-09-30/smoke.json b/apis/bedrock-runtime/2023-09-30/smoke.json deleted file mode 100644 index 047a1d85ef7..00000000000 --- a/apis/bedrock-runtime/2023-09-30/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} \ No newline at end of file diff --git a/apis/bedrock/2023-04-20/smoke.json b/apis/bedrock/2023-04-20/smoke.json deleted file mode 100644 index 047a1d85ef7..00000000000 --- a/apis/bedrock/2023-04-20/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} \ No newline at end of file diff --git a/apis/billingconductor/2021-07-30/smoke.json b/apis/billingconductor/2021-07-30/smoke.json deleted file mode 100644 index ece3751f538..00000000000 --- a/apis/billingconductor/2021-07-30/smoke.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [] -} diff --git a/apis/cleanrooms/2022-02-17/smoke.json b/apis/cleanrooms/2022-02-17/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/cleanrooms/2022-02-17/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/cloudcontrol/2021-09-30/smoke.json b/apis/cloudcontrol/2021-09-30/smoke.json deleted file mode 100644 index 35901fd4c88..00000000000 --- a/apis/cloudcontrol/2021-09-30/smoke.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} - - \ No newline at end of file diff --git a/apis/cloudformation/2010-05-15/smoke.json b/apis/cloudformation/2010-05-15/smoke.json deleted file mode 100644 index ae27d0e7fe7..00000000000 --- a/apis/cloudformation/2010-05-15/smoke.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListStacks", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "CreateStack", - "input": { - "StackName": "fakestack", - "TemplateURL": "http:\/\/s3.amazonaws.com\/foo\/bar" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/cloudfront/2017-10-30/smoke.json b/apis/cloudfront/2017-10-30/smoke.json deleted file mode 100644 index f11e6972b27..00000000000 --- a/apis/cloudfront/2017-10-30/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListCloudFrontOriginAccessIdentities", - "input": { - "MaxItems": "1" - }, - "errorExpectedFromService": false - }, - { - "operationName": "GetDistribution", - "input": { - "Id": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cloudfront/2018-06-18/smoke.json b/apis/cloudfront/2018-06-18/smoke.json deleted file mode 100644 index f11e6972b27..00000000000 --- a/apis/cloudfront/2018-06-18/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListCloudFrontOriginAccessIdentities", - "input": { - "MaxItems": "1" - }, - "errorExpectedFromService": false - }, - { - "operationName": "GetDistribution", - "input": { - "Id": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cloudfront/2018-11-05/smoke.json b/apis/cloudfront/2018-11-05/smoke.json deleted file mode 100644 index f11e6972b27..00000000000 --- a/apis/cloudfront/2018-11-05/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListCloudFrontOriginAccessIdentities", - "input": { - "MaxItems": "1" - }, - "errorExpectedFromService": false - }, - { - "operationName": "GetDistribution", - "input": { - "Id": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cloudfront/2019-03-26/smoke.json b/apis/cloudfront/2019-03-26/smoke.json deleted file mode 100644 index f11e6972b27..00000000000 --- a/apis/cloudfront/2019-03-26/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListCloudFrontOriginAccessIdentities", - "input": { - "MaxItems": "1" - }, - "errorExpectedFromService": false - }, - { - "operationName": "GetDistribution", - "input": { - "Id": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cloudfront/2020-05-31/smoke.json b/apis/cloudfront/2020-05-31/smoke.json deleted file mode 100644 index f11e6972b27..00000000000 --- a/apis/cloudfront/2020-05-31/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListCloudFrontOriginAccessIdentities", - "input": { - "MaxItems": "1" - }, - "errorExpectedFromService": false - }, - { - "operationName": "GetDistribution", - "input": { - "Id": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cloudhsmv2/2017-04-28/smoke.json b/apis/cloudhsmv2/2017-04-28/smoke.json deleted file mode 100644 index 9f6241770b8..00000000000 --- a/apis/cloudhsmv2/2017-04-28/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeClusters", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "ListTags", - "input": { - "ResourceId": "bogus-arn" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/cloudsearch/2013-01-01/smoke.json b/apis/cloudsearch/2013-01-01/smoke.json deleted file mode 100644 index 04457b247af..00000000000 --- a/apis/cloudsearch/2013-01-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDomains", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeIndexFields", - "input": { - "DomainName": "fakedomain" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/cloudtrail/2013-11-01/smoke.json b/apis/cloudtrail/2013-11-01/smoke.json deleted file mode 100644 index 4addfa985f3..00000000000 --- a/apis/cloudtrail/2013-11-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeTrails", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DeleteTrail", - "input": { - "Name": "faketrail" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/codebuild/2016-10-06/smoke.json b/apis/codebuild/2016-10-06/smoke.json deleted file mode 100644 index 82c1af7a7ed..00000000000 --- a/apis/codebuild/2016-10-06/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListBuilds", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/codecatalyst/2022-09-28/smoke.json b/apis/codecatalyst/2022-09-28/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/codecatalyst/2022-09-28/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/codecommit/2015-04-13/smoke.json b/apis/codecommit/2015-04-13/smoke.json deleted file mode 100644 index 479bdf8408b..00000000000 --- a/apis/codecommit/2015-04-13/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListRepositories", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "ListBranches", - "input": { - "repositoryName": "fake-repo" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/codedeploy/2014-10-06/smoke.json b/apis/codedeploy/2014-10-06/smoke.json deleted file mode 100644 index c149dda6b6f..00000000000 --- a/apis/codedeploy/2014-10-06/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListApplications", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetDeployment", - "input": { - "deploymentId": "d-USUAELQEX" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/codepipeline/2015-07-09/smoke.json b/apis/codepipeline/2015-07-09/smoke.json deleted file mode 100644 index 82331c3756f..00000000000 --- a/apis/codepipeline/2015-07-09/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListPipelines", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetPipeline", - "input": { - "name": "fake-pipeline" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/codestar/2017-04-19/smoke.json b/apis/codestar/2017-04-19/smoke.json deleted file mode 100644 index a069adfb916..00000000000 --- a/apis/codestar/2017-04-19/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListProjects", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/cognito-identity/2014-06-30/smoke.json b/apis/cognito-identity/2014-06-30/smoke.json deleted file mode 100644 index e4a6dd6a358..00000000000 --- a/apis/cognito-identity/2014-06-30/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListIdentityPools", - "input": { - "MaxResults": 10 - }, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeIdentityPool", - "input": { - "IdentityPoolId": "us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cognito-idp/2016-04-18/smoke.json b/apis/cognito-idp/2016-04-18/smoke.json deleted file mode 100644 index 939ddf16d8d..00000000000 --- a/apis/cognito-idp/2016-04-18/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListUserPools", - "input": { - "MaxResults": 10 - }, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeUserPool", - "input": { - "UserPoolId": "us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/cognito-sync/2014-06-30/smoke.json b/apis/cognito-sync/2014-06-30/smoke.json deleted file mode 100644 index f22f5b2fff8..00000000000 --- a/apis/cognito-sync/2014-06-30/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListIdentityPoolUsage", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeIdentityPoolUsage", - "input": { - "IdentityPoolId": "us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/config/2014-11-12/smoke.json b/apis/config/2014-11-12/smoke.json deleted file mode 100644 index a2794a9033f..00000000000 --- a/apis/config/2014-11-12/smoke.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeConfigurationRecorders", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetResourceConfigHistory", - "input": { - "resourceType": "fake-type", - "resourceId": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/cur/2017-01-06/smoke.json b/apis/cur/2017-01-06/smoke.json deleted file mode 100644 index 24bad0f2359..00000000000 --- a/apis/cur/2017-01-06/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "DescribeReportDefinitions", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/dataexchange/2017-07-25/smoke.json b/apis/dataexchange/2017-07-25/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/dataexchange/2017-07-25/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/devicefarm/2015-06-23/smoke.json b/apis/devicefarm/2015-06-23/smoke.json deleted file mode 100644 index 82996cfbef1..00000000000 --- a/apis/devicefarm/2015-06-23/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListDevices", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetDevice", - "input": { - "arn": "arn:aws:devicefarm:us-west-2::device:000000000000000000000000fake-arn" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/directconnect/2012-10-25/smoke.json b/apis/directconnect/2012-10-25/smoke.json deleted file mode 100644 index 565bd73414f..00000000000 --- a/apis/directconnect/2012-10-25/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeConnections", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeConnections", - "input": { - "connectionId": "fake-connection" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/discovery/2015-11-01/smoke.json b/apis/discovery/2015-11-01/smoke.json deleted file mode 100644 index 626b803f575..00000000000 --- a/apis/discovery/2015-11-01/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeAgents", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/dms/2016-01-01/smoke.json b/apis/dms/2016-01-01/smoke.json deleted file mode 100644 index 16179e444bb..00000000000 --- a/apis/dms/2016-01-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeEndpoints", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeTableStatistics", - "input": { - "ReplicationTaskArn": "arn:aws:acm:region:123456789012" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/docdb/2014-10-31/smoke.json b/apis/docdb/2014-10-31/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/docdb/2014-10-31/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/ds/2015-04-16/smoke.json b/apis/ds/2015-04-16/smoke.json deleted file mode 100644 index 510d7077a78..00000000000 --- a/apis/ds/2015-04-16/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDirectories", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "CreateDirectory", - "input": { - "Name": "", - "Password": "", - "Size": "" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/dynamodb/2011-12-05/smoke.json b/apis/dynamodb/2011-12-05/smoke.json deleted file mode 100644 index 3540d8ef946..00000000000 --- a/apis/dynamodb/2011-12-05/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListTables", - "input": { - "Limit": 1 - }, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeTable", - "input": { - "TableName": "fake-table" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/dynamodb/2012-08-10/smoke.json b/apis/dynamodb/2012-08-10/smoke.json deleted file mode 100644 index 3540d8ef946..00000000000 --- a/apis/dynamodb/2012-08-10/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListTables", - "input": { - "Limit": 1 - }, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeTable", - "input": { - "TableName": "fake-table" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/ec2/2016-11-15/smoke.json b/apis/ec2/2016-11-15/smoke.json deleted file mode 100644 index 509d86a51da..00000000000 --- a/apis/ec2/2016-11-15/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeRegions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeInstances", - "input": { - "InstanceIds": [ - "i-12345678" - ] - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/ecr/2015-09-21/smoke.json b/apis/ecr/2015-09-21/smoke.json deleted file mode 100644 index e4d38021f9b..00000000000 --- a/apis/ecr/2015-09-21/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeRepositories", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "ListImages", - "input": { - "repositoryName": "not-a-real-repository" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/ecs/2014-11-13/smoke.json b/apis/ecs/2014-11-13/smoke.json deleted file mode 100644 index f8880d60f3a..00000000000 --- a/apis/ecs/2014-11-13/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListClusters", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "StopTask", - "input": { - "task": "xxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxx" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/eks-auth/2023-11-26/smoke.json b/apis/eks-auth/2023-11-26/smoke.json deleted file mode 100644 index 047a1d85ef7..00000000000 --- a/apis/eks-auth/2023-11-26/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} \ No newline at end of file diff --git a/apis/elasticache/2015-02-02/smoke.json b/apis/elasticache/2015-02-02/smoke.json deleted file mode 100644 index 0d30588a5d9..00000000000 --- a/apis/elasticache/2015-02-02/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeEvents", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeCacheClusters", - "input": { - "CacheClusterId": "fake_cluster" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/elasticbeanstalk/2010-12-01/smoke.json b/apis/elasticbeanstalk/2010-12-01/smoke.json deleted file mode 100644 index da752e749a7..00000000000 --- a/apis/elasticbeanstalk/2010-12-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListAvailableSolutionStacks", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeEnvironmentResources", - "input": { - "EnvironmentId": "fake_environment" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/elasticfilesystem/2015-02-01/smoke.json b/apis/elasticfilesystem/2015-02-01/smoke.json deleted file mode 100644 index aa92bdf8bae..00000000000 --- a/apis/elasticfilesystem/2015-02-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeFileSystems", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DeleteFileSystem", - "input": { - "FileSystemId": "fs-c5a1446c" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/elasticloadbalancing/2012-06-01/smoke.json b/apis/elasticloadbalancing/2012-06-01/smoke.json deleted file mode 100644 index 67c69554b5c..00000000000 --- a/apis/elasticloadbalancing/2012-06-01/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeLoadBalancers", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeLoadBalancers", - "input": { - "LoadBalancerNames": [ - "fake_load_balancer" - ] - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/elasticloadbalancingv2/2015-12-01/smoke.json b/apis/elasticloadbalancingv2/2015-12-01/smoke.json deleted file mode 100644 index 94d3a99200f..00000000000 --- a/apis/elasticloadbalancingv2/2015-12-01/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeLoadBalancers", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeLoadBalancers", - "input": { - "LoadBalancerArns": [ - "fake_load_balancer" - ] - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/elasticmapreduce/2009-03-31/smoke.json b/apis/elasticmapreduce/2009-03-31/smoke.json deleted file mode 100644 index 2f95f63fb7c..00000000000 --- a/apis/elasticmapreduce/2009-03-31/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListClusters", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeCluster", - "input": { - "ClusterId": "fake_cluster" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/elastictranscoder/2012-09-25/smoke.json b/apis/elastictranscoder/2012-09-25/smoke.json deleted file mode 100644 index 837962fc6d2..00000000000 --- a/apis/elastictranscoder/2012-09-25/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListPresets", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "ReadJob", - "input": { - "Id": "fake_job" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/email/2010-12-01/smoke.json b/apis/email/2010-12-01/smoke.json deleted file mode 100644 index deaee018185..00000000000 --- a/apis/email/2010-12-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListIdentities", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "VerifyEmailIdentity", - "input": { - "EmailAddress": "fake_email" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/es/2015-01-01/smoke.json b/apis/es/2015-01-01/smoke.json deleted file mode 100644 index d31642d7fa6..00000000000 --- a/apis/es/2015-01-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListDomainNames", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeElasticsearchDomain", - "input": { - "DomainName": "not-a-domain" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/eventbridge/2015-10-07/smoke.json b/apis/eventbridge/2015-10-07/smoke.json deleted file mode 100644 index 689a9e45240..00000000000 --- a/apis/eventbridge/2015-10-07/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListRules", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeRule", - "input": { - "Name": "fake-rule" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/events/2015-10-07/smoke.json b/apis/events/2015-10-07/smoke.json deleted file mode 100644 index 689a9e45240..00000000000 --- a/apis/events/2015-10-07/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListRules", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeRule", - "input": { - "Name": "fake-rule" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/firehose/2015-08-04/smoke.json b/apis/firehose/2015-08-04/smoke.json deleted file mode 100644 index 854a82a4aae..00000000000 --- a/apis/firehose/2015-08-04/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListDeliveryStreams", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDeliveryStream", - "input": { - "DeliveryStreamName": "bogus-stream-name" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/gamelift/2015-10-01/smoke.json b/apis/gamelift/2015-10-01/smoke.json deleted file mode 100644 index 970928a69da..00000000000 --- a/apis/gamelift/2015-10-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListBuilds", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribePlayerSessions", - "input": { - "PlayerSessionId": "psess-fakeSessionId" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/glacier/2012-06-01/smoke.json b/apis/glacier/2012-06-01/smoke.json deleted file mode 100644 index 9ac3f1a744c..00000000000 --- a/apis/glacier/2012-06-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListVaults", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "ListVaults", - "input": { - "accountId": "abcmnoxyz" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/glue/2017-03-31/smoke.json b/apis/glue/2017-03-31/smoke.json deleted file mode 100644 index 164773a8b15..00000000000 --- a/apis/glue/2017-03-31/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "GetCatalogImportStatus", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/iam/2010-05-08/smoke.json b/apis/iam/2010-05-08/smoke.json deleted file mode 100644 index 89b5d20bc73..00000000000 --- a/apis/iam/2010-05-08/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListUsers", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetUser", - "input": { - "UserName": "fake_user" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/inspector/2016-02-16/smoke.json b/apis/inspector/2016-02-16/smoke.json deleted file mode 100644 index 3b7b0dfe015..00000000000 --- a/apis/inspector/2016-02-16/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListAssessmentTemplates", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "ListTagsForResource", - "input": { - "resourceArn": "fake-arn" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/internetmonitor/2021-06-03/smoke.json b/apis/internetmonitor/2021-06-03/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/internetmonitor/2021-06-03/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/iot-data/2015-05-28/smoke.json b/apis/iot-data/2015-05-28/smoke.json deleted file mode 100644 index c65a70fb75b..00000000000 --- a/apis/iot-data/2015-05-28/smoke.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "defaultEndpoint": "https://data.iot.us-west-2.amazonaws.com", - "testCases": [ - { - "operationName": "GetThingShadow", - "input": { - "thingName": "fake-thing" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/iot/2015-05-28/smoke.json b/apis/iot/2015-05-28/smoke.json deleted file mode 100644 index 13fbb1a0e39..00000000000 --- a/apis/iot/2015-05-28/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListPolicies", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeThing", - "input": { - "thingName": "fake-thing" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/iotfleetwise/2021-06-17/smoke.json b/apis/iotfleetwise/2021-06-17/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/iotfleetwise/2021-06-17/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/iottwinmaker/2021-11-29/smoke.json b/apis/iottwinmaker/2021-11-29/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/iottwinmaker/2021-11-29/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/keyspaces/2022-02-10/smoke.json b/apis/keyspaces/2022-02-10/smoke.json deleted file mode 100644 index 047a1d85ef7..00000000000 --- a/apis/keyspaces/2022-02-10/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} \ No newline at end of file diff --git a/apis/kinesis/2013-12-02/smoke.json b/apis/kinesis/2013-12-02/smoke.json deleted file mode 100644 index 59dfa395926..00000000000 --- a/apis/kinesis/2013-12-02/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListStreams", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeStream", - "input": { - "StreamName": "bogus-stream-name" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/kms/2014-11-01/smoke.json b/apis/kms/2014-11-01/smoke.json deleted file mode 100644 index 4e7fa13f6d3..00000000000 --- a/apis/kms/2014-11-01/smoke.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListAliases", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetKeyPolicy", - "input": { - "KeyId": "12345678-1234-1234-1234-123456789012", - "PolicyName": "fakePolicy" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/lambda/2015-03-31/smoke.json b/apis/lambda/2015-03-31/smoke.json deleted file mode 100644 index bbea8e181ef..00000000000 --- a/apis/lambda/2015-03-31/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListFunctions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "Invoke", - "input": { - "FunctionName": "bogus-function" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/lightsail/2016-11-28/smoke.json b/apis/lightsail/2016-11-28/smoke.json deleted file mode 100644 index 00ff98edbc2..00000000000 --- a/apis/lightsail/2016-11-28/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "GetActiveNames", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/logs/2014-03-28/smoke.json b/apis/logs/2014-03-28/smoke.json deleted file mode 100644 index f79b00bda05..00000000000 --- a/apis/logs/2014-03-28/smoke.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeLogGroups", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetLogEvents", - "input": { - "logGroupName": "fakegroup", - "logStreamName": "fakestream" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/managedblockchain-query/2023-05-04/smoke.json b/apis/managedblockchain-query/2023-05-04/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/managedblockchain-query/2023-05-04/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/marketplacecommerceanalytics/2015-07-01/smoke.json b/apis/marketplacecommerceanalytics/2015-07-01/smoke.json deleted file mode 100644 index f30ab88a97e..00000000000 --- a/apis/marketplacecommerceanalytics/2015-07-01/smoke.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "GenerateDataSet", - "input": { - "dataSetType": "fake-type", - "dataSetPublicationDate": 0, - "roleNameArn": "fake-arn", - "destinationS3BucketName": "fake-bucket", - "snsTopicArn": "fake-arn" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/mediapackagev2/2022-12-25/smoke.json b/apis/mediapackagev2/2022-12-25/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/mediapackagev2/2022-12-25/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/medical-imaging/2023-07-19/smoke.json b/apis/medical-imaging/2023-07-19/smoke.json deleted file mode 100644 index 6c501801790..00000000000 --- a/apis/medical-imaging/2023-07-19/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - ] -} diff --git a/apis/migrationhuborchestrator/2021-08-28/smoke.json b/apis/migrationhuborchestrator/2021-08-28/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/migrationhuborchestrator/2021-08-28/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/monitoring/2010-08-01/smoke.json b/apis/monitoring/2010-08-01/smoke.json deleted file mode 100644 index e57b4c5d109..00000000000 --- a/apis/monitoring/2010-08-01/smoke.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListMetrics", - "input": { - "Namespace": "AWS\/EC2" - }, - "errorExpectedFromService": false - }, - { - "operationName": "SetAlarmState", - "input": { - "AlarmName": "abc", - "StateValue": "mno", - "StateReason": "xyz" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/mturk-requester/2017-01-17/smoke.json b/apis/mturk-requester/2017-01-17/smoke.json deleted file mode 100644 index 40f0a62bcff..00000000000 --- a/apis/mturk-requester/2017-01-17/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "GetAccountBalance", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/neptune/2014-10-31/smoke.json b/apis/neptune/2014-10-31/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/neptune/2014-10-31/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/networkmonitor/2023-08-01/smoke.json b/apis/networkmonitor/2023-08-01/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/networkmonitor/2023-08-01/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/omics/2022-11-28/smoke.json b/apis/omics/2022-11-28/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/omics/2022-11-28/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/opensearch/2021-01-01/smoke.json b/apis/opensearch/2021-01-01/smoke.json deleted file mode 100644 index 11ebf178ff6..00000000000 --- a/apis/opensearch/2021-01-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListDomainNames", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDomain", - "input": { - "DomainName": "not-a-domain" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/opsworks/2013-02-18/smoke.json b/apis/opsworks/2013-02-18/smoke.json deleted file mode 100644 index 241d2be69bd..00000000000 --- a/apis/opsworks/2013-02-18/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeStacks", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeLayers", - "input": { - "StackId": "fake_stack" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/pinpoint-sms-voice-v2/2022-03-31/smoke.json b/apis/pinpoint-sms-voice-v2/2022-03-31/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/pinpoint-sms-voice-v2/2022-03-31/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/polly/2016-06-10/smoke.json b/apis/polly/2016-06-10/smoke.json deleted file mode 100644 index 13bd72715d3..00000000000 --- a/apis/polly/2016-06-10/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeVoices", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/pricing/2017-10-15/smoke.json b/apis/pricing/2017-10-15/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/pricing/2017-10-15/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/rds/2013-01-10/smoke.json b/apis/rds/2013-01-10/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/rds/2013-01-10/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/rds/2013-02-12/smoke.json b/apis/rds/2013-02-12/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/rds/2013-02-12/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/rds/2013-09-09/smoke.json b/apis/rds/2013-09-09/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/rds/2013-09-09/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/rds/2014-09-01/smoke.json b/apis/rds/2014-09-01/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/rds/2014-09-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/rds/2014-10-31/smoke.json b/apis/rds/2014-10-31/smoke.json deleted file mode 100644 index 068b23492c3..00000000000 --- a/apis/rds/2014-10-31/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeDBEngineVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDBInstances", - "input": { - "DBInstanceIdentifier": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/redshift/2012-12-01/smoke.json b/apis/redshift/2012-12-01/smoke.json deleted file mode 100644 index f3c1fa669ca..00000000000 --- a/apis/redshift/2012-12-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeClusterVersions", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeClusters", - "input": { - "ClusterIdentifier": "fake-cluster" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/rekognition/2016-06-27/smoke.json b/apis/rekognition/2016-06-27/smoke.json deleted file mode 100644 index 775f395788c..00000000000 --- a/apis/rekognition/2016-06-27/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListCollections", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/route53/2013-04-01/smoke.json b/apis/route53/2013-04-01/smoke.json deleted file mode 100644 index 0b571737085..00000000000 --- a/apis/route53/2013-04-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListHostedZones", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetHostedZone", - "input": { - "Id": "fake-zone" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/route53domains/2014-05-15/smoke.json b/apis/route53domains/2014-05-15/smoke.json deleted file mode 100644 index 0b6a1ed3317..00000000000 --- a/apis/route53domains/2014-05-15/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListDomains", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetDomainDetail", - "input": { - "DomainName": "fake-domain-name" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/route53resolver/2018-04-01/smoke.json b/apis/route53resolver/2018-04-01/smoke.json deleted file mode 100644 index 4f1cf1689e7..00000000000 --- a/apis/route53resolver/2018-04-01/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListResolverEndpoints", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetResolverRule", - "input": { - "ResolverRuleId": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/s3/2006-03-01/smoke.json b/apis/s3/2006-03-01/smoke.json deleted file mode 100644 index 2c6625a7907..00000000000 --- a/apis/s3/2006-03-01/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListBuckets", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/secretsmanager/2017-10-17/smoke.json b/apis/secretsmanager/2017-10-17/smoke.json deleted file mode 100644 index 51e9dc240b6..00000000000 --- a/apis/secretsmanager/2017-10-17/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListSecrets", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeSecret", - "input": { - "SecretId": "fake-secret-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/servicecatalog/2015-12-10/smoke.json b/apis/servicecatalog/2015-12-10/smoke.json deleted file mode 100644 index 3d4641f84d6..00000000000 --- a/apis/servicecatalog/2015-12-10/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListAcceptedPortfolioShares", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/shield/2016-06-02/smoke.json b/apis/shield/2016-06-02/smoke.json deleted file mode 100644 index 881ade39a75..00000000000 --- a/apis/shield/2016-06-02/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListAttacks", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/sms/2016-10-24/smoke.json b/apis/sms/2016-10-24/smoke.json deleted file mode 100644 index 2cc40fdaeaf..00000000000 --- a/apis/sms/2016-10-24/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "GetConnectors", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DeleteReplicationJob", - "input": { - "replicationJobId": "invalidId" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/snowball/2016-06-30/smoke.json b/apis/snowball/2016-06-30/smoke.json deleted file mode 100644 index a512b51752c..00000000000 --- a/apis/snowball/2016-06-30/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeAddresses", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/sns/2010-03-31/smoke.json b/apis/sns/2010-03-31/smoke.json deleted file mode 100644 index 0dcf07ba91f..00000000000 --- a/apis/sns/2010-03-31/smoke.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListTopics", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "Publish", - "input": { - "Message": "hello", - "TopicArn": "fake_topic" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/sqs/2012-11-05/smoke.json b/apis/sqs/2012-11-05/smoke.json deleted file mode 100644 index 3c9fc7a5e40..00000000000 --- a/apis/sqs/2012-11-05/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListQueues", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetQueueUrl", - "input": { - "QueueName": "fake_queue" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/ssm/2014-11-06/smoke.json b/apis/ssm/2014-11-06/smoke.json deleted file mode 100644 index 9c3494e7c2c..00000000000 --- a/apis/ssm/2014-11-06/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListDocuments", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetDocument", - "input": { - "Name": "'fake-name'" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/states/2016-11-23/smoke.json b/apis/states/2016-11-23/smoke.json deleted file mode 100644 index bf1d5402cea..00000000000 --- a/apis/states/2016-11-23/smoke.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListActivities", - "input": {}, - "errorExpectedFromService": false - } - ] -} diff --git a/apis/sts/2011-06-15/smoke.json b/apis/sts/2011-06-15/smoke.json deleted file mode 100644 index 238975e3024..00000000000 --- a/apis/sts/2011-06-15/smoke.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "GetSessionToken", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "GetFederationToken", - "input": { - "Name": "temp", - "Policy": "{\\\"temp\\\":true}" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/support/2013-04-15/smoke.json b/apis/support/2013-04-15/smoke.json deleted file mode 100644 index eab7c910700..00000000000 --- a/apis/support/2013-04-15/smoke.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "DescribeServices", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "CreateCase", - "input": { - "subject": "subject", - "communicationBody": "communication", - "categoryCode": "category", - "serviceCode": "amazon-dynamodb", - "severityCode": "low" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/apis/swf/2012-01-25/smoke.json b/apis/swf/2012-01-25/smoke.json deleted file mode 100644 index fd79cd97a29..00000000000 --- a/apis/swf/2012-01-25/smoke.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "ListDomains", - "input": { - "registrationStatus": "REGISTERED" - }, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeDomain", - "input": { - "name": "fake_domain" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/verifiedpermissions/2021-12-01/smoke.json b/apis/verifiedpermissions/2021-12-01/smoke.json deleted file mode 100644 index a9756813e4a..00000000000 --- a/apis/verifiedpermissions/2021-12-01/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/apis/waf-regional/2016-11-28/smoke.json b/apis/waf-regional/2016-11-28/smoke.json deleted file mode 100644 index 83717fc850d..00000000000 --- a/apis/waf-regional/2016-11-28/smoke.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListRules", - "input": { - "Limit": 20 - }, - "errorExpectedFromService": false - }, - { - "operationName": "CreateSqlInjectionMatchSet", - "input": { - "Name": "fake_name", - "ChangeToken": "fake_token" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/waf/2015-08-24/smoke.json b/apis/waf/2015-08-24/smoke.json deleted file mode 100644 index 83717fc850d..00000000000 --- a/apis/waf/2015-08-24/smoke.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListRules", - "input": { - "Limit": 20 - }, - "errorExpectedFromService": false - }, - { - "operationName": "CreateSqlInjectionMatchSet", - "input": { - "Name": "fake_name", - "ChangeToken": "fake_token" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/wafv2/2019-07-29/smoke.json b/apis/wafv2/2019-07-29/smoke.json deleted file mode 100644 index 672468473cc..00000000000 --- a/apis/wafv2/2019-07-29/smoke.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-east-1", - "testCases": [ - { - "operationName": "ListWebACLs", - "input": { - "Scope": "REGIONAL", - "Limit": 20 - }, - "errorExpectedFromService": false - }, - { - "operationName": "CreateRegexPatternSet", - "input": { - "Name": "fake_name", - "Scope": "fake_scope" - }, - "errorExpectedFromService": true - } - ] -} \ No newline at end of file diff --git a/apis/workspaces/2015-04-08/smoke.json b/apis/workspaces/2015-04-08/smoke.json deleted file mode 100644 index 02e89229062..00000000000 --- a/apis/workspaces/2015-04-08/smoke.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - { - "operationName": "DescribeWorkspaces", - "input": {}, - "errorExpectedFromService": false - }, - { - "operationName": "DescribeWorkspaces", - "input": { - "DirectoryId": "fake-id" - }, - "errorExpectedFromService": true - } - ] -} diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator.rb index eace9d5acb6..7bf9212add0 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator.rb @@ -50,7 +50,6 @@ require_relative 'aws-sdk-code-generator/views/errors_module' require_relative 'aws-sdk-code-generator/views/features/env' require_relative 'aws-sdk-code-generator/views/features/step_definitions' -require_relative 'aws-sdk-code-generator/views/features/smoke_step_definitions' require_relative 'aws-sdk-code-generator/views/features/smoke' require_relative 'aws-sdk-code-generator/views/gemspec' require_relative 'aws-sdk-code-generator/views/resource_class' diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/gem_builder.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/gem_builder.rb index 64b0b654f19..9a9177713b9 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/gem_builder.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/gem_builder.rb @@ -25,7 +25,6 @@ def each(&block) y.yield('features/step_definitions.rb', features_step_definitions_file) if @service.smoke_tests y.yield('features/smoke.feature', smoke_file) - y.yield('features/smoke_step_definitions.rb', smoke_step_definitions_file) end y.yield('VERSION', version_file) y.yield('LICENSE.txt', license_file) @@ -54,10 +53,6 @@ def smoke_file Views::Features::Smoke.new(options).render end - def smoke_step_definitions_file - Views::Features::SmokeStepDefinitions.new(options).render - end - def features_step_definitions_file Views::Features::StepDefinitions.new(options).render end diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke.rb index 56514c71a48..0b042e7bfb7 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke.rb @@ -10,35 +10,25 @@ class Smoke < View def initialize(options) service = options.fetch(:service) @custom = service.protocol == 'api-gateway' - @service = service.name + @service_name = service.name + @service_module = service.module_name # This will only be called if this is defined smoke_json = service.smoke_tests - @client_region = smoke_json["defaultRegion"] - @client_endpoint = smoke_json["defaultEndpoint"] - @smoke_tests = smoke_json["testCases"].map do |test| - h = { - operation: underscore(test["operationName"]), - smoke_test_tags: "@#{service.identifier} @smoke", - } - if test["errorExpectedFromService"] - h[:error_expectation] = "I expect an error was raised" - h[:scenario_string] = "Call Aws::#{service.module_name}::Client##{h[:operation]} and expect it to fail" - else - h[:error_expectation] = "I expect an error was not raised" - h[:scenario_string] = "Call #{service.module_name}::Client##{h[:operation]} and expect it to succeed" - end - h[:param_hash] = test["input"].inject({}) do |acc, kv| - raw_key, value = kv - key = underscore(raw_key) - acc[key] = value - acc - end.to_json - h + @smoke_tests = smoke_json['testCases'].map do |test| + SmokeTest.new( + service: service, + id: test['id'], + operation_name: test['operationName'], + input: test['input'], + expectation: test['expectation'], + config: test['config'], + tags: test['tags'] + ) end end - attr_reader :service, :client_region, :client_endpoint, :smoke_tests + attr_reader :service_name, :smoke_tests, :service_module # @return [String|nil] def generated_src_warning @@ -46,6 +36,92 @@ def generated_src_warning GENERATED_SRC_WARNING end + class SmokeTest < View + def initialize(options) + @service = options.fetch(:service) + @id = options.fetch(:id) + @operation_name = underscore(options.fetch(:operation_name)) + @input = options.fetch(:input) + @expectation = expectation_str(options.fetch(:expectation)) + @config = options.fetch(:config) + + tags = options.fetch(:tags) || [] + tags = tags.map { |t| "@#{t}" }.join(' ') + @tags = "@#{@service.identifier} @smoke #{tags}".strip + end + + attr_reader :id, :operation_name, :expectation, :tags + + def param_hash + deep_underscore(@input).to_json + end + + def config_hash + @config.each_with_object({}) do |(raw_key, raw_value), acc| + key, value = config_map(raw_key, raw_value) + acc[key] = value unless key.nil? + end.to_json + end + + private + + def deep_underscore(input) + case input + when Hash + input.each_with_object({}) do |(key, value), acc| + acc[underscore(key)] = deep_underscore(value) + end + when Array + input.map { |value| deep_underscore(value) } + else + input + end + end + + def config_map(raw_key, raw_value) + case raw_key + # generic + when 'region' then ['region', raw_value] + when 'sigv4aRegionSet' then nil # TODO + when 'uri' then ['endpoint', raw_value] + when 'useFips' then ['use_fips_endpoint', raw_value] + when 'useDualStack' then ['use_dualstack_endpoint', raw_value] + # service specific + when 'useGlobalEndpoint' + value = raw_value == 'true' ? 'legacy' : 'regional' + if @service.name == 'S3' + ['s3_us_east_1_regional_endpoint', value] + elsif @service.name == 'STS' + ['sts_regional_endpoints', value] + end + # s3 specific + when 'useAccelerate' then ['use_accelerate_endpoint', raw_value] + when 'useArnRegion' then ['s3_use_arn_region', raw_value] + when 'useMultiRegionAccessPoints' + value = raw_value == 'true' ? 'false' : 'true' + ['s3_disable_multiregion_access_points', value] + when 'forcePathStyle' then ['force_path_style', raw_value] + when 'useAccountIdRouting' then nil # TODO + else + # catch all, possible code generated config options + [downcase(raw_key), raw_value] + end + end + + def expectation_str(expectation) + if expectation.key?('success') + 'I expect an error was not raised' + elsif expectation.key?('failure') + if (error_id = expectation['failure']['errorId']) + error_class = "#{@service.module_name}::Errors::#{error_id}" + "I expect a '#{error_class}' was raised" + else + 'I expect an error was raised' + end + end + end + end + end end end diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke_step_definitions.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke_step_definitions.rb deleted file mode 100644 index 8d93bbd38ae..00000000000 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke_step_definitions.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -module AwsSdkCodeGenerator - module Views - module Features - class SmokeStepDefinitions < View - - # @param [Hash] options - # @option options [required, Service] :service - def initialize(options) - service = options.fetch(:service) - @module_name = service.module_name - end - - attr_reader :module_name - - # @return [String|nil] - def generated_src_warning - return if @custom - GENERATED_SRC_WARNING - end - - end - end - end -end diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/step_definitions.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/step_definitions.rb index d22c756ac88..ea8c3a0a32a 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/step_definitions.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/step_definitions.rb @@ -11,12 +11,9 @@ def initialize(options) service = options.fetch(:service) @var_name = service.identifier @module_name = service.module_name - if service.smoke_tests - @client_endpoint = service.smoke_tests['defaultEndpoint'] - end end - attr_reader :var_name, :module_name, :client_endpoint + attr_reader :var_name, :module_name end end diff --git a/build_tools/aws-sdk-code-generator/templates/features/smoke.mustache b/build_tools/aws-sdk-code-generator/templates/features/smoke.mustache index 976b6ddf2d6..8c7a53a02f4 100644 --- a/build_tools/aws-sdk-code-generator/templates/features/smoke.mustache +++ b/build_tools/aws-sdk-code-generator/templates/features/smoke.mustache @@ -1,22 +1,18 @@ {{#generated_src_warning}} {{generated_src_warning}} {{/generated_src_warning}} -Feature: Smoke tests for {{service}} - -Background: -{{#client_endpoint}} - Given I create a client with endpoint '{{client_endpoint}}' -{{/client_endpoint}} -{{^client_endpoint}} - Given I create a client in region '{{client_region}}' -{{/client_endpoint}} +Feature: Smoke tests for {{service_name}} {{#smoke_tests}} - {{smoke_test_tags}} - Scenario: {{scenario_string}} - When I call the operation '{{operation}}' with params: - """ + {{tags}} + Scenario: {{id}} + Given I create a '{{service_module}}' client with config: + """ +{{&config_hash}} + """ + When I call the operation '{{operation_name}}' with params: + """ {{¶m_hash}} - """ - Then {{error_expectation}} + """ + Then {{&expectation}} {{/smoke_tests}} diff --git a/build_tools/aws-sdk-code-generator/templates/features/smoke_step_definitions.mustache b/build_tools/aws-sdk-code-generator/templates/features/smoke_step_definitions.mustache deleted file mode 100644 index 6f1b9471b3b..00000000000 --- a/build_tools/aws-sdk-code-generator/templates/features/smoke_step_definitions.mustache +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -{{#generated_src_warning}} -{{generated_src_warning}} -{{/generated_src_warning}} -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = {{module_name}}::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = {{module_name}}::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/build_tools/aws-sdk-code-generator/templates/features/step_definitions.mustache b/build_tools/aws-sdk-code-generator/templates/features/step_definitions.mustache index 27ead6a61fa..5b410413dff 100644 --- a/build_tools/aws-sdk-code-generator/templates/features/step_definitions.mustache +++ b/build_tools/aws-sdk-code-generator/templates/features/step_definitions.mustache @@ -1,10 +1,5 @@ Before("@{{var_name}}") do -{{#client_endpoint}} - @service = {{module_name}}::Resource.new(endpoint: '{{client_endpoint}}') -{{/client_endpoint}} -{{^client_endpoint}} @service = {{module_name}}::Resource.new -{{/client_endpoint}} @client = @service.client end diff --git a/build_tools/services.rb b/build_tools/services.rb index c722dc5c8de..13c9747db99 100644 --- a/build_tools/services.rb +++ b/build_tools/services.rb @@ -107,7 +107,7 @@ def load_examples(svc_name, models_dir) end def load_smoke(svc_name, models_dir) - path = model_path('smoke.json', models_dir) + path = model_path('smoke-2.json', models_dir) if path smoke = JSON.load(File.read(path)) BuildTools::Customizations.apply_smoke_customizations(svc_name, smoke) diff --git a/gems/aws-sdk-acm/features/smoke.feature b/gems/aws-sdk-acm/features/smoke.feature deleted file mode 100644 index 11c7c7f7817..00000000000 --- a/gems/aws-sdk-acm/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ACM - -Background: - Given I create a client in region 'us-west-2' - - @acm @smoke - Scenario: Call Aws::ACM::Client#list_certificates and expect it to succeed - When I call the operation 'list_certificates' with params: - """ -{} - """ - Then I expect an error was not raised - - @acm @smoke - Scenario: Call Aws::Aws::ACM::Client#get_certificate and expect it to fail - When I call the operation 'get_certificate' with params: - """ -{"certificate_arn":"arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-acm/features/smoke_step_definitions.rb b/gems/aws-sdk-acm/features/smoke_step_definitions.rb deleted file mode 100644 index 5118100c21a..00000000000 --- a/gems/aws-sdk-acm/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ACM::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ACM::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-amplifyuibuilder/features/smoke.feature b/gems/aws-sdk-amplifyuibuilder/features/smoke.feature deleted file mode 100644 index 18374f5ee54..00000000000 --- a/gems/aws-sdk-amplifyuibuilder/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for AmplifyUIBuilder - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-amplifyuibuilder/features/smoke_step_definitions.rb b/gems/aws-sdk-amplifyuibuilder/features/smoke_step_definitions.rb deleted file mode 100644 index e6ce465ca5f..00000000000 --- a/gems/aws-sdk-amplifyuibuilder/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::AmplifyUIBuilder::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::AmplifyUIBuilder::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-apigateway/features/smoke.feature b/gems/aws-sdk-apigateway/features/smoke.feature deleted file mode 100644 index 59f25a00b83..00000000000 --- a/gems/aws-sdk-apigateway/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for APIGateway - -Background: - Given I create a client in region 'us-west-2' - - @apigateway @smoke - Scenario: Call Aws::APIGateway::Client#get_domain_names and expect it to succeed - When I call the operation 'get_domain_names' with params: - """ -{} - """ - Then I expect an error was not raised - - @apigateway @smoke - Scenario: Call Aws::Aws::APIGateway::Client#create_usage_plan_key and expect it to fail - When I call the operation 'create_usage_plan_key' with params: - """ -{"usage_plan_id":"foo","key_id":"bar","key_type":"fixx"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-apigateway/features/smoke_step_definitions.rb b/gems/aws-sdk-apigateway/features/smoke_step_definitions.rb deleted file mode 100644 index acfacdc772e..00000000000 --- a/gems/aws-sdk-apigateway/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::APIGateway::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::APIGateway::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-appfabric/features/smoke.feature b/gems/aws-sdk-appfabric/features/smoke.feature deleted file mode 100644 index 948b7e5de69..00000000000 --- a/gems/aws-sdk-appfabric/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for AppFabric - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-appfabric/features/smoke_step_definitions.rb b/gems/aws-sdk-appfabric/features/smoke_step_definitions.rb deleted file mode 100644 index 8de7b11b39c..00000000000 --- a/gems/aws-sdk-appfabric/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::AppFabric::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::AppFabric::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-applicationautoscaling/features/smoke.feature b/gems/aws-sdk-applicationautoscaling/features/smoke.feature deleted file mode 100644 index 13e70354571..00000000000 --- a/gems/aws-sdk-applicationautoscaling/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ApplicationAutoScaling - -Background: - Given I create a client in region 'us-west-2' - - @applicationautoscaling @smoke - Scenario: Call Aws::ApplicationAutoScaling::Client#describe_scalable_targets and expect it to succeed - When I call the operation 'describe_scalable_targets' with params: - """ -{"service_namespace":"ec2"} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-applicationautoscaling/features/smoke_step_definitions.rb b/gems/aws-sdk-applicationautoscaling/features/smoke_step_definitions.rb deleted file mode 100644 index 9216954250c..00000000000 --- a/gems/aws-sdk-applicationautoscaling/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ApplicationAutoScaling::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ApplicationAutoScaling::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-applicationdiscoveryservice/features/smoke.feature b/gems/aws-sdk-applicationdiscoveryservice/features/smoke.feature deleted file mode 100644 index 5126da44357..00000000000 --- a/gems/aws-sdk-applicationdiscoveryservice/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ApplicationDiscoveryService - -Background: - Given I create a client in region 'us-west-2' - - @applicationdiscoveryservice @smoke - Scenario: Call Aws::ApplicationDiscoveryService::Client#describe_agents and expect it to succeed - When I call the operation 'describe_agents' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-applicationdiscoveryservice/features/smoke_step_definitions.rb b/gems/aws-sdk-applicationdiscoveryservice/features/smoke_step_definitions.rb deleted file mode 100644 index c8b64bf3428..00000000000 --- a/gems/aws-sdk-applicationdiscoveryservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ApplicationDiscoveryService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ApplicationDiscoveryService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-appstream/features/smoke.feature b/gems/aws-sdk-appstream/features/smoke.feature deleted file mode 100644 index 1b4f49fe1ea..00000000000 --- a/gems/aws-sdk-appstream/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for AppStream - -Background: - Given I create a client in region 'us-west-2' - - @appstream @smoke - Scenario: Call Aws::AppStream::Client#describe_stacks and expect it to succeed - When I call the operation 'describe_stacks' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-appstream/features/smoke_step_definitions.rb b/gems/aws-sdk-appstream/features/smoke_step_definitions.rb deleted file mode 100644 index 453703b22b9..00000000000 --- a/gems/aws-sdk-appstream/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::AppStream::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::AppStream::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-athena/features/smoke.feature b/gems/aws-sdk-athena/features/smoke.feature deleted file mode 100644 index 6528ff17842..00000000000 --- a/gems/aws-sdk-athena/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Athena - -Background: - Given I create a client in region 'us-west-2' - - @athena @smoke - Scenario: Call Aws::Athena::Client#list_named_queries and expect it to succeed - When I call the operation 'list_named_queries' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-athena/features/smoke_step_definitions.rb b/gems/aws-sdk-athena/features/smoke_step_definitions.rb deleted file mode 100644 index 60cc270271f..00000000000 --- a/gems/aws-sdk-athena/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Athena::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Athena::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-autoscaling/features/smoke.feature b/gems/aws-sdk-autoscaling/features/smoke.feature deleted file mode 100644 index 95d5db985a5..00000000000 --- a/gems/aws-sdk-autoscaling/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for AutoScaling - -Background: - Given I create a client in region 'us-west-2' - - @autoscaling @smoke - Scenario: Call Aws::AutoScaling::Client#describe_scaling_process_types and expect it to succeed - When I call the operation 'describe_scaling_process_types' with params: - """ -{} - """ - Then I expect an error was not raised - - @autoscaling @smoke - Scenario: Call Aws::Aws::AutoScaling::Client#create_launch_configuration and expect it to fail - When I call the operation 'create_launch_configuration' with params: - """ -{"launch_configuration_name":"hello, world","image_id":"ami-12345678","instance_type":"m1.small"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-autoscaling/features/smoke_step_definitions.rb b/gems/aws-sdk-autoscaling/features/smoke_step_definitions.rb deleted file mode 100644 index cac70765861..00000000000 --- a/gems/aws-sdk-autoscaling/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::AutoScaling::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::AutoScaling::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-batch/features/smoke.feature b/gems/aws-sdk-batch/features/smoke.feature deleted file mode 100644 index 625468ab8a2..00000000000 --- a/gems/aws-sdk-batch/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Batch - -Background: - Given I create a client in region 'us-west-2' - - @batch @smoke - Scenario: Call Aws::Batch::Client#describe_compute_environments and expect it to succeed - When I call the operation 'describe_compute_environments' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-batch/features/smoke_step_definitions.rb b/gems/aws-sdk-batch/features/smoke_step_definitions.rb deleted file mode 100644 index 1b4860c6aee..00000000000 --- a/gems/aws-sdk-batch/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Batch::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Batch::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-bedrock/features/smoke.feature b/gems/aws-sdk-bedrock/features/smoke.feature deleted file mode 100644 index bc77df8a347..00000000000 --- a/gems/aws-sdk-bedrock/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Bedrock - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-bedrock/features/smoke_step_definitions.rb b/gems/aws-sdk-bedrock/features/smoke_step_definitions.rb deleted file mode 100644 index bd7984583d6..00000000000 --- a/gems/aws-sdk-bedrock/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Bedrock::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Bedrock::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-bedrockruntime/features/smoke.feature b/gems/aws-sdk-bedrockruntime/features/smoke.feature deleted file mode 100644 index 360c2bfb598..00000000000 --- a/gems/aws-sdk-bedrockruntime/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for BedrockRuntime - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-bedrockruntime/features/smoke_step_definitions.rb b/gems/aws-sdk-bedrockruntime/features/smoke_step_definitions.rb deleted file mode 100644 index 06e774041ca..00000000000 --- a/gems/aws-sdk-bedrockruntime/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::BedrockRuntime::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::BedrockRuntime::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-billingconductor/features/smoke.feature b/gems/aws-sdk-billingconductor/features/smoke.feature deleted file mode 100644 index 6e75ae9458f..00000000000 --- a/gems/aws-sdk-billingconductor/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for BillingConductor - -Background: - Given I create a client in region 'us-east-1' diff --git a/gems/aws-sdk-billingconductor/features/smoke_step_definitions.rb b/gems/aws-sdk-billingconductor/features/smoke_step_definitions.rb deleted file mode 100644 index f6c351aeb70..00000000000 --- a/gems/aws-sdk-billingconductor/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::BillingConductor::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::BillingConductor::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cleanrooms/features/smoke.feature b/gems/aws-sdk-cleanrooms/features/smoke.feature deleted file mode 100644 index 01262e59e29..00000000000 --- a/gems/aws-sdk-cleanrooms/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CleanRooms - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-cleanrooms/features/smoke_step_definitions.rb b/gems/aws-sdk-cleanrooms/features/smoke_step_definitions.rb deleted file mode 100644 index 1179701b66c..00000000000 --- a/gems/aws-sdk-cleanrooms/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CleanRooms::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CleanRooms::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudcontrolapi/features/smoke.feature b/gems/aws-sdk-cloudcontrolapi/features/smoke.feature deleted file mode 100644 index a78c3351978..00000000000 --- a/gems/aws-sdk-cloudcontrolapi/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudControlApi - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-cloudcontrolapi/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudcontrolapi/features/smoke_step_definitions.rb deleted file mode 100644 index 7dcba6e0876..00000000000 --- a/gems/aws-sdk-cloudcontrolapi/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudControlApi::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudControlApi::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudformation/features/smoke.feature b/gems/aws-sdk-cloudformation/features/smoke.feature deleted file mode 100644 index 214e5e992b6..00000000000 --- a/gems/aws-sdk-cloudformation/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudFormation - -Background: - Given I create a client in region 'us-west-2' - - @cloudformation @smoke - Scenario: Call Aws::CloudFormation::Client#list_stacks and expect it to succeed - When I call the operation 'list_stacks' with params: - """ -{} - """ - Then I expect an error was not raised - - @cloudformation @smoke - Scenario: Call Aws::Aws::CloudFormation::Client#create_stack and expect it to fail - When I call the operation 'create_stack' with params: - """ -{"stack_name":"fakestack","template_url":"http://s3.amazonaws.com/foo/bar"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudformation/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudformation/features/smoke_step_definitions.rb deleted file mode 100644 index eaa144fc138..00000000000 --- a/gems/aws-sdk-cloudformation/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudFormation::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudFormation::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudfront/features/smoke.feature b/gems/aws-sdk-cloudfront/features/smoke.feature deleted file mode 100644 index 82e31c23f59..00000000000 --- a/gems/aws-sdk-cloudfront/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudFront - -Background: - Given I create a client in region 'us-east-1' - - @cloudfront @smoke - Scenario: Call Aws::CloudFront::Client#list_cloud_front_origin_access_identities and expect it to succeed - When I call the operation 'list_cloud_front_origin_access_identities' with params: - """ -{"max_items":"1"} - """ - Then I expect an error was not raised - - @cloudfront @smoke - Scenario: Call Aws::Aws::CloudFront::Client#get_distribution and expect it to fail - When I call the operation 'get_distribution' with params: - """ -{"id":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudfront/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudfront/features/smoke_step_definitions.rb deleted file mode 100644 index 130181c555f..00000000000 --- a/gems/aws-sdk-cloudfront/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudFront::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudFront::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudhsmv2/features/smoke.feature b/gems/aws-sdk-cloudhsmv2/features/smoke.feature deleted file mode 100644 index ecc23969caa..00000000000 --- a/gems/aws-sdk-cloudhsmv2/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudHSMV2 - -Background: - Given I create a client in region 'us-west-2' - - @cloudhsmv2 @smoke - Scenario: Call Aws::CloudHSMV2::Client#describe_clusters and expect it to succeed - When I call the operation 'describe_clusters' with params: - """ -{} - """ - Then I expect an error was not raised - - @cloudhsmv2 @smoke - Scenario: Call Aws::Aws::CloudHSMV2::Client#list_tags and expect it to fail - When I call the operation 'list_tags' with params: - """ -{"resource_id":"bogus-arn"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudhsmv2/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudhsmv2/features/smoke_step_definitions.rb deleted file mode 100644 index f848ad2f614..00000000000 --- a/gems/aws-sdk-cloudhsmv2/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudHSMV2::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudHSMV2::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudsearch/features/smoke.feature b/gems/aws-sdk-cloudsearch/features/smoke.feature deleted file mode 100644 index e7d572d0dae..00000000000 --- a/gems/aws-sdk-cloudsearch/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudSearch - -Background: - Given I create a client in region 'us-west-2' - - @cloudsearch @smoke - Scenario: Call Aws::CloudSearch::Client#describe_domains and expect it to succeed - When I call the operation 'describe_domains' with params: - """ -{} - """ - Then I expect an error was not raised - - @cloudsearch @smoke - Scenario: Call Aws::Aws::CloudSearch::Client#describe_index_fields and expect it to fail - When I call the operation 'describe_index_fields' with params: - """ -{"domain_name":"fakedomain"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudsearch/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudsearch/features/smoke_step_definitions.rb deleted file mode 100644 index aa1a184f911..00000000000 --- a/gems/aws-sdk-cloudsearch/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudSearch::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudSearch::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudtrail/features/smoke.feature b/gems/aws-sdk-cloudtrail/features/smoke.feature deleted file mode 100644 index 742befce4a9..00000000000 --- a/gems/aws-sdk-cloudtrail/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudTrail - -Background: - Given I create a client in region 'us-west-2' - - @cloudtrail @smoke - Scenario: Call Aws::CloudTrail::Client#describe_trails and expect it to succeed - When I call the operation 'describe_trails' with params: - """ -{} - """ - Then I expect an error was not raised - - @cloudtrail @smoke - Scenario: Call Aws::Aws::CloudTrail::Client#delete_trail and expect it to fail - When I call the operation 'delete_trail' with params: - """ -{"name":"faketrail"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudtrail/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudtrail/features/smoke_step_definitions.rb deleted file mode 100644 index 0b95029fdb0..00000000000 --- a/gems/aws-sdk-cloudtrail/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudTrail::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudTrail::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudwatch/features/smoke.feature b/gems/aws-sdk-cloudwatch/features/smoke.feature deleted file mode 100644 index 405bca437a1..00000000000 --- a/gems/aws-sdk-cloudwatch/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudWatch - -Background: - Given I create a client in region 'us-west-2' - - @cloudwatch @smoke - Scenario: Call Aws::CloudWatch::Client#list_metrics and expect it to succeed - When I call the operation 'list_metrics' with params: - """ -{"namespace":"AWS/EC2"} - """ - Then I expect an error was not raised - - @cloudwatch @smoke - Scenario: Call Aws::Aws::CloudWatch::Client#set_alarm_state and expect it to fail - When I call the operation 'set_alarm_state' with params: - """ -{"alarm_name":"abc","state_value":"mno","state_reason":"xyz"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudwatch/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudwatch/features/smoke_step_definitions.rb deleted file mode 100644 index ec0bb6b2b32..00000000000 --- a/gems/aws-sdk-cloudwatch/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudWatch::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudWatch::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudwatchevents/features/smoke.feature b/gems/aws-sdk-cloudwatchevents/features/smoke.feature deleted file mode 100644 index 07942ec573b..00000000000 --- a/gems/aws-sdk-cloudwatchevents/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudWatchEvents - -Background: - Given I create a client in region 'us-west-2' - - @cloudwatchevents @smoke - Scenario: Call Aws::CloudWatchEvents::Client#list_rules and expect it to succeed - When I call the operation 'list_rules' with params: - """ -{} - """ - Then I expect an error was not raised - - @cloudwatchevents @smoke - Scenario: Call Aws::Aws::CloudWatchEvents::Client#describe_rule and expect it to fail - When I call the operation 'describe_rule' with params: - """ -{"name":"fake-rule"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudwatchevents/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudwatchevents/features/smoke_step_definitions.rb deleted file mode 100644 index dc4041df211..00000000000 --- a/gems/aws-sdk-cloudwatchevents/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudWatchEvents::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudWatchEvents::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cloudwatchlogs/features/smoke.feature b/gems/aws-sdk-cloudwatchlogs/features/smoke.feature deleted file mode 100644 index 63dc51320f0..00000000000 --- a/gems/aws-sdk-cloudwatchlogs/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CloudWatchLogs - -Background: - Given I create a client in region 'us-west-2' - - @cloudwatchlogs @smoke - Scenario: Call Aws::CloudWatchLogs::Client#describe_log_groups and expect it to succeed - When I call the operation 'describe_log_groups' with params: - """ -{} - """ - Then I expect an error was not raised - - @cloudwatchlogs @smoke - Scenario: Call Aws::Aws::CloudWatchLogs::Client#get_log_events and expect it to fail - When I call the operation 'get_log_events' with params: - """ -{"log_group_name":"fakegroup","log_stream_name":"fakestream"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cloudwatchlogs/features/smoke_step_definitions.rb b/gems/aws-sdk-cloudwatchlogs/features/smoke_step_definitions.rb deleted file mode 100644 index e6a8551181d..00000000000 --- a/gems/aws-sdk-cloudwatchlogs/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CloudWatchLogs::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CloudWatchLogs::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-codebuild/features/smoke.feature b/gems/aws-sdk-codebuild/features/smoke.feature deleted file mode 100644 index 3fbee9d85cf..00000000000 --- a/gems/aws-sdk-codebuild/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CodeBuild - -Background: - Given I create a client in region 'us-west-2' - - @codebuild @smoke - Scenario: Call Aws::CodeBuild::Client#list_builds and expect it to succeed - When I call the operation 'list_builds' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-codebuild/features/smoke_step_definitions.rb b/gems/aws-sdk-codebuild/features/smoke_step_definitions.rb deleted file mode 100644 index 61f3953fa29..00000000000 --- a/gems/aws-sdk-codebuild/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CodeBuild::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CodeBuild::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-codecatalyst/features/smoke.feature b/gems/aws-sdk-codecatalyst/features/smoke.feature deleted file mode 100644 index 0635ad70a13..00000000000 --- a/gems/aws-sdk-codecatalyst/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CodeCatalyst - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-codecatalyst/features/smoke_step_definitions.rb b/gems/aws-sdk-codecatalyst/features/smoke_step_definitions.rb deleted file mode 100644 index e790d35d6dc..00000000000 --- a/gems/aws-sdk-codecatalyst/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CodeCatalyst::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CodeCatalyst::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-codecommit/features/smoke.feature b/gems/aws-sdk-codecommit/features/smoke.feature deleted file mode 100644 index 551491135a5..00000000000 --- a/gems/aws-sdk-codecommit/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CodeCommit - -Background: - Given I create a client in region 'us-west-2' - - @codecommit @smoke - Scenario: Call Aws::CodeCommit::Client#list_repositories and expect it to succeed - When I call the operation 'list_repositories' with params: - """ -{} - """ - Then I expect an error was not raised - - @codecommit @smoke - Scenario: Call Aws::Aws::CodeCommit::Client#list_branches and expect it to fail - When I call the operation 'list_branches' with params: - """ -{"repository_name":"fake-repo"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-codecommit/features/smoke_step_definitions.rb b/gems/aws-sdk-codecommit/features/smoke_step_definitions.rb deleted file mode 100644 index 25ad590cec8..00000000000 --- a/gems/aws-sdk-codecommit/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CodeCommit::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CodeCommit::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-codedeploy/features/smoke.feature b/gems/aws-sdk-codedeploy/features/smoke.feature deleted file mode 100644 index 195bd1f91a1..00000000000 --- a/gems/aws-sdk-codedeploy/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CodeDeploy - -Background: - Given I create a client in region 'us-west-2' - - @codedeploy @smoke - Scenario: Call Aws::CodeDeploy::Client#list_applications and expect it to succeed - When I call the operation 'list_applications' with params: - """ -{} - """ - Then I expect an error was not raised - - @codedeploy @smoke - Scenario: Call Aws::Aws::CodeDeploy::Client#get_deployment and expect it to fail - When I call the operation 'get_deployment' with params: - """ -{"deployment_id":"d-USUAELQEX"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-codedeploy/features/smoke_step_definitions.rb b/gems/aws-sdk-codedeploy/features/smoke_step_definitions.rb deleted file mode 100644 index 145f0b82f70..00000000000 --- a/gems/aws-sdk-codedeploy/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CodeDeploy::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CodeDeploy::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-codepipeline/features/smoke.feature b/gems/aws-sdk-codepipeline/features/smoke.feature deleted file mode 100644 index e58cd9ddd85..00000000000 --- a/gems/aws-sdk-codepipeline/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CodePipeline - -Background: - Given I create a client in region 'us-west-2' - - @codepipeline @smoke - Scenario: Call Aws::CodePipeline::Client#list_pipelines and expect it to succeed - When I call the operation 'list_pipelines' with params: - """ -{} - """ - Then I expect an error was not raised - - @codepipeline @smoke - Scenario: Call Aws::Aws::CodePipeline::Client#get_pipeline and expect it to fail - When I call the operation 'get_pipeline' with params: - """ -{"name":"fake-pipeline"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-codepipeline/features/smoke_step_definitions.rb b/gems/aws-sdk-codepipeline/features/smoke_step_definitions.rb deleted file mode 100644 index 99e6c285717..00000000000 --- a/gems/aws-sdk-codepipeline/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CodePipeline::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CodePipeline::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-codestar/features/smoke.feature b/gems/aws-sdk-codestar/features/smoke.feature deleted file mode 100644 index fb250eb5349..00000000000 --- a/gems/aws-sdk-codestar/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CodeStar - -Background: - Given I create a client in region 'us-west-2' - - @codestar @smoke - Scenario: Call Aws::CodeStar::Client#list_projects and expect it to succeed - When I call the operation 'list_projects' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-codestar/features/smoke_step_definitions.rb b/gems/aws-sdk-codestar/features/smoke_step_definitions.rb deleted file mode 100644 index dbf2f626a25..00000000000 --- a/gems/aws-sdk-codestar/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CodeStar::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CodeStar::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cognitoidentity/features/smoke.feature b/gems/aws-sdk-cognitoidentity/features/smoke.feature deleted file mode 100644 index be88903f0f7..00000000000 --- a/gems/aws-sdk-cognitoidentity/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CognitoIdentity - -Background: - Given I create a client in region 'us-west-2' - - @cognitoidentity @smoke - Scenario: Call Aws::CognitoIdentity::Client#list_identity_pools and expect it to succeed - When I call the operation 'list_identity_pools' with params: - """ -{"max_results":10} - """ - Then I expect an error was not raised - - @cognitoidentity @smoke - Scenario: Call Aws::Aws::CognitoIdentity::Client#describe_identity_pool and expect it to fail - When I call the operation 'describe_identity_pool' with params: - """ -{"identity_pool_id":"us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cognitoidentity/features/smoke_step_definitions.rb b/gems/aws-sdk-cognitoidentity/features/smoke_step_definitions.rb deleted file mode 100644 index 9512102793d..00000000000 --- a/gems/aws-sdk-cognitoidentity/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CognitoIdentity::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CognitoIdentity::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cognitoidentityprovider/features/smoke.feature b/gems/aws-sdk-cognitoidentityprovider/features/smoke.feature deleted file mode 100644 index 7ba1ad6ba85..00000000000 --- a/gems/aws-sdk-cognitoidentityprovider/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CognitoIdentityProvider - -Background: - Given I create a client in region 'us-west-2' - - @cognitoidentityprovider @smoke - Scenario: Call Aws::CognitoIdentityProvider::Client#list_user_pools and expect it to succeed - When I call the operation 'list_user_pools' with params: - """ -{"max_results":10} - """ - Then I expect an error was not raised - - @cognitoidentityprovider @smoke - Scenario: Call Aws::Aws::CognitoIdentityProvider::Client#describe_user_pool and expect it to fail - When I call the operation 'describe_user_pool' with params: - """ -{"user_pool_id":"us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cognitoidentityprovider/features/smoke_step_definitions.rb b/gems/aws-sdk-cognitoidentityprovider/features/smoke_step_definitions.rb deleted file mode 100644 index 15b0c54659e..00000000000 --- a/gems/aws-sdk-cognitoidentityprovider/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CognitoIdentityProvider::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CognitoIdentityProvider::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-cognitosync/features/smoke.feature b/gems/aws-sdk-cognitosync/features/smoke.feature deleted file mode 100644 index 0a377408c6e..00000000000 --- a/gems/aws-sdk-cognitosync/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CognitoSync - -Background: - Given I create a client in region 'us-west-2' - - @cognitosync @smoke - Scenario: Call Aws::CognitoSync::Client#list_identity_pool_usage and expect it to succeed - When I call the operation 'list_identity_pool_usage' with params: - """ -{} - """ - Then I expect an error was not raised - - @cognitosync @smoke - Scenario: Call Aws::Aws::CognitoSync::Client#describe_identity_pool_usage and expect it to fail - When I call the operation 'describe_identity_pool_usage' with params: - """ -{"identity_pool_id":"us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-cognitosync/features/smoke_step_definitions.rb b/gems/aws-sdk-cognitosync/features/smoke_step_definitions.rb deleted file mode 100644 index 123802fa5ab..00000000000 --- a/gems/aws-sdk-cognitosync/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CognitoSync::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CognitoSync::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-configservice/features/smoke.feature b/gems/aws-sdk-configservice/features/smoke.feature deleted file mode 100644 index dfdcb7a27c9..00000000000 --- a/gems/aws-sdk-configservice/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ConfigService - -Background: - Given I create a client in region 'us-west-2' - - @configservice @smoke - Scenario: Call Aws::ConfigService::Client#describe_configuration_recorders and expect it to succeed - When I call the operation 'describe_configuration_recorders' with params: - """ -{} - """ - Then I expect an error was not raised - - @configservice @smoke - Scenario: Call Aws::Aws::ConfigService::Client#get_resource_config_history and expect it to fail - When I call the operation 'get_resource_config_history' with params: - """ -{"resource_type":"fake-type","resource_id":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-configservice/features/smoke_step_definitions.rb b/gems/aws-sdk-configservice/features/smoke_step_definitions.rb deleted file mode 100644 index b0823e8e807..00000000000 --- a/gems/aws-sdk-configservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ConfigService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ConfigService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-core/features/features_helper.rb b/gems/aws-sdk-core/features/features_helper.rb index 1d509f45001..90f27c5c062 100644 --- a/gems/aws-sdk-core/features/features_helper.rb +++ b/gems/aws-sdk-core/features/features_helper.rb @@ -105,6 +105,37 @@ def cfg_value(*path) ## Shared step definitions ## +# Smoke Test Definitions +Given(/I create a '(.*?)' client with config:/) do |module_name, config| + namespace = Object.const_get(module_name) + opts = JSON.parse(config, symbolize_names: true) + opts[:region] = ENV['AWS_SMOKE_TEST_REGION'] || opts[:region] + @client = namespace::Client.new(opts) +end + +When(/I call the operation '(.*?)' with params:/) do |operation, params| + opts = JSON.parse(params, symbolize_names: true) + begin + @client.send(operation.to_sym, opts) + rescue Aws::Errors::ServiceError => e + @last_error = e + end +end + +Then(/I expect a '(.*?)' was raised/) do |error| + error_class = Object.const_get(error) + expect(@error).to be_a(error_class) +end + +Then(/I expect an error was raised/) do + expect(@last_error).to_not be_nil +end + +Then(/I expect an error was not raised/) do + expect(@last_error).to be_nil +end + +# Integration Test Definitions def eventually(options = {}, &block) seconds = options[:upto] || 15 delays = [1] diff --git a/gems/aws-sdk-costandusagereportservice/features/smoke.feature b/gems/aws-sdk-costandusagereportservice/features/smoke.feature deleted file mode 100644 index fe47237794e..00000000000 --- a/gems/aws-sdk-costandusagereportservice/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for CostandUsageReportService - -Background: - Given I create a client in region 'us-east-1' - - @costandusagereportservice @smoke - Scenario: Call Aws::CostandUsageReportService::Client#describe_report_definitions and expect it to succeed - When I call the operation 'describe_report_definitions' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-costandusagereportservice/features/smoke_step_definitions.rb b/gems/aws-sdk-costandusagereportservice/features/smoke_step_definitions.rb deleted file mode 100644 index 8a96116fa66..00000000000 --- a/gems/aws-sdk-costandusagereportservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::CostandUsageReportService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::CostandUsageReportService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-databasemigrationservice/features/smoke.feature b/gems/aws-sdk-databasemigrationservice/features/smoke.feature deleted file mode 100644 index b33d682784f..00000000000 --- a/gems/aws-sdk-databasemigrationservice/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DatabaseMigrationService - -Background: - Given I create a client in region 'us-west-2' - - @databasemigrationservice @smoke - Scenario: Call Aws::DatabaseMigrationService::Client#describe_endpoints and expect it to succeed - When I call the operation 'describe_endpoints' with params: - """ -{} - """ - Then I expect an error was not raised - - @databasemigrationservice @smoke - Scenario: Call Aws::Aws::DatabaseMigrationService::Client#describe_table_statistics and expect it to fail - When I call the operation 'describe_table_statistics' with params: - """ -{"replication_task_arn":"arn:aws:acm:region:123456789012"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-databasemigrationservice/features/smoke_step_definitions.rb b/gems/aws-sdk-databasemigrationservice/features/smoke_step_definitions.rb deleted file mode 100644 index 8877c1afba8..00000000000 --- a/gems/aws-sdk-databasemigrationservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DatabaseMigrationService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DatabaseMigrationService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-dataexchange/features/smoke.feature b/gems/aws-sdk-dataexchange/features/smoke.feature deleted file mode 100644 index 3cb8e16deeb..00000000000 --- a/gems/aws-sdk-dataexchange/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DataExchange - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-dataexchange/features/smoke_step_definitions.rb b/gems/aws-sdk-dataexchange/features/smoke_step_definitions.rb deleted file mode 100644 index 9523e01c8c5..00000000000 --- a/gems/aws-sdk-dataexchange/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DataExchange::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DataExchange::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-devicefarm/features/smoke.feature b/gems/aws-sdk-devicefarm/features/smoke.feature deleted file mode 100644 index 4474d358bdf..00000000000 --- a/gems/aws-sdk-devicefarm/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DeviceFarm - -Background: - Given I create a client in region 'us-west-2' - - @devicefarm @smoke - Scenario: Call Aws::DeviceFarm::Client#list_devices and expect it to succeed - When I call the operation 'list_devices' with params: - """ -{} - """ - Then I expect an error was not raised - - @devicefarm @smoke - Scenario: Call Aws::Aws::DeviceFarm::Client#get_device and expect it to fail - When I call the operation 'get_device' with params: - """ -{"arn":"arn:aws:devicefarm:us-west-2::device:000000000000000000000000fake-arn"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-devicefarm/features/smoke_step_definitions.rb b/gems/aws-sdk-devicefarm/features/smoke_step_definitions.rb deleted file mode 100644 index dab51271229..00000000000 --- a/gems/aws-sdk-devicefarm/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DeviceFarm::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DeviceFarm::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-directconnect/features/smoke.feature b/gems/aws-sdk-directconnect/features/smoke.feature deleted file mode 100644 index 7558c8b5804..00000000000 --- a/gems/aws-sdk-directconnect/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DirectConnect - -Background: - Given I create a client in region 'us-west-2' - - @directconnect @smoke - Scenario: Call Aws::DirectConnect::Client#describe_connections and expect it to succeed - When I call the operation 'describe_connections' with params: - """ -{} - """ - Then I expect an error was not raised - - @directconnect @smoke - Scenario: Call Aws::Aws::DirectConnect::Client#describe_connections and expect it to fail - When I call the operation 'describe_connections' with params: - """ -{"connection_id":"fake-connection"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-directconnect/features/smoke_step_definitions.rb b/gems/aws-sdk-directconnect/features/smoke_step_definitions.rb deleted file mode 100644 index bc470703ac7..00000000000 --- a/gems/aws-sdk-directconnect/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DirectConnect::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DirectConnect::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-directoryservice/features/smoke.feature b/gems/aws-sdk-directoryservice/features/smoke.feature deleted file mode 100644 index e4f9ef1acde..00000000000 --- a/gems/aws-sdk-directoryservice/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DirectoryService - -Background: - Given I create a client in region 'us-west-2' - - @directoryservice @smoke - Scenario: Call Aws::DirectoryService::Client#describe_directories and expect it to succeed - When I call the operation 'describe_directories' with params: - """ -{} - """ - Then I expect an error was not raised - - @directoryservice @smoke - Scenario: Call Aws::Aws::DirectoryService::Client#create_directory and expect it to fail - When I call the operation 'create_directory' with params: - """ -{"name":"","password":"","size":""} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-directoryservice/features/smoke_step_definitions.rb b/gems/aws-sdk-directoryservice/features/smoke_step_definitions.rb deleted file mode 100644 index 487dfb942c1..00000000000 --- a/gems/aws-sdk-directoryservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DirectoryService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DirectoryService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-docdb/features/smoke.feature b/gems/aws-sdk-docdb/features/smoke.feature deleted file mode 100644 index 0b7815421da..00000000000 --- a/gems/aws-sdk-docdb/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DocDB - -Background: - Given I create a client in region 'us-west-2' - - @docdb @smoke - Scenario: Call Aws::DocDB::Client#describe_db_engine_versions and expect it to succeed - When I call the operation 'describe_db_engine_versions' with params: - """ -{} - """ - Then I expect an error was not raised - - @docdb @smoke - Scenario: Call Aws::Aws::DocDB::Client#describe_db_instances and expect it to fail - When I call the operation 'describe_db_instances' with params: - """ -{"db_instance_identifier":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-docdb/features/smoke_step_definitions.rb b/gems/aws-sdk-docdb/features/smoke_step_definitions.rb deleted file mode 100644 index c7ec8e67bf3..00000000000 --- a/gems/aws-sdk-docdb/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DocDB::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DocDB::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-dynamodb/features/smoke.feature b/gems/aws-sdk-dynamodb/features/smoke.feature deleted file mode 100644 index 9f31521c3d8..00000000000 --- a/gems/aws-sdk-dynamodb/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for DynamoDB - -Background: - Given I create a client in region 'us-west-2' - - @dynamodb @smoke - Scenario: Call Aws::DynamoDB::Client#list_tables and expect it to succeed - When I call the operation 'list_tables' with params: - """ -{"limit":1} - """ - Then I expect an error was not raised - - @dynamodb @smoke - Scenario: Call Aws::Aws::DynamoDB::Client#describe_table and expect it to fail - When I call the operation 'describe_table' with params: - """ -{"table_name":"fake-table"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-dynamodb/features/smoke_step_definitions.rb b/gems/aws-sdk-dynamodb/features/smoke_step_definitions.rb deleted file mode 100644 index 8f04b59c2c5..00000000000 --- a/gems/aws-sdk-dynamodb/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::DynamoDB::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::DynamoDB::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-ec2/features/smoke.feature b/gems/aws-sdk-ec2/features/smoke.feature deleted file mode 100644 index 66aa9a3d0f4..00000000000 --- a/gems/aws-sdk-ec2/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for EC2 - -Background: - Given I create a client in region 'us-west-2' - - @ec2 @smoke - Scenario: Call Aws::EC2::Client#describe_regions and expect it to succeed - When I call the operation 'describe_regions' with params: - """ -{} - """ - Then I expect an error was not raised - - @ec2 @smoke - Scenario: Call Aws::Aws::EC2::Client#describe_instances and expect it to fail - When I call the operation 'describe_instances' with params: - """ -{"instance_ids":["i-12345678"]} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-ec2/features/smoke_step_definitions.rb b/gems/aws-sdk-ec2/features/smoke_step_definitions.rb deleted file mode 100644 index 75ee9ca6b28..00000000000 --- a/gems/aws-sdk-ec2/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::EC2::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::EC2::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-ecr/features/smoke.feature b/gems/aws-sdk-ecr/features/smoke.feature deleted file mode 100644 index 00e46a499aa..00000000000 --- a/gems/aws-sdk-ecr/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ECR - -Background: - Given I create a client in region 'us-west-2' - - @ecr @smoke - Scenario: Call Aws::ECR::Client#describe_repositories and expect it to succeed - When I call the operation 'describe_repositories' with params: - """ -{} - """ - Then I expect an error was not raised - - @ecr @smoke - Scenario: Call Aws::Aws::ECR::Client#list_images and expect it to fail - When I call the operation 'list_images' with params: - """ -{"repository_name":"not-a-real-repository"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-ecr/features/smoke_step_definitions.rb b/gems/aws-sdk-ecr/features/smoke_step_definitions.rb deleted file mode 100644 index a2af75c95ec..00000000000 --- a/gems/aws-sdk-ecr/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ECR::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ECR::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-ecs/features/smoke.feature b/gems/aws-sdk-ecs/features/smoke.feature deleted file mode 100644 index 16b228b0fbc..00000000000 --- a/gems/aws-sdk-ecs/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ECS - -Background: - Given I create a client in region 'us-west-2' - - @ecs @smoke - Scenario: Call Aws::ECS::Client#list_clusters and expect it to succeed - When I call the operation 'list_clusters' with params: - """ -{} - """ - Then I expect an error was not raised - - @ecs @smoke - Scenario: Call Aws::Aws::ECS::Client#stop_task and expect it to fail - When I call the operation 'stop_task' with params: - """ -{"task":"xxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxx"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-ecs/features/smoke_step_definitions.rb b/gems/aws-sdk-ecs/features/smoke_step_definitions.rb deleted file mode 100644 index 7ce17031ec4..00000000000 --- a/gems/aws-sdk-ecs/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ECS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ECS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-efs/features/smoke.feature b/gems/aws-sdk-efs/features/smoke.feature deleted file mode 100644 index b7e7860b8ae..00000000000 --- a/gems/aws-sdk-efs/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for EFS - -Background: - Given I create a client in region 'us-west-2' - - @efs @smoke - Scenario: Call Aws::EFS::Client#describe_file_systems and expect it to succeed - When I call the operation 'describe_file_systems' with params: - """ -{} - """ - Then I expect an error was not raised - - @efs @smoke - Scenario: Call Aws::Aws::EFS::Client#delete_file_system and expect it to fail - When I call the operation 'delete_file_system' with params: - """ -{"file_system_id":"fs-c5a1446c"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-efs/features/smoke_step_definitions.rb b/gems/aws-sdk-efs/features/smoke_step_definitions.rb deleted file mode 100644 index e1e8e6f7c20..00000000000 --- a/gems/aws-sdk-efs/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::EFS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::EFS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-eksauth/features/smoke.feature b/gems/aws-sdk-eksauth/features/smoke.feature deleted file mode 100644 index 67bf1c7bc86..00000000000 --- a/gems/aws-sdk-eksauth/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for EKSAuth - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-eksauth/features/smoke_step_definitions.rb b/gems/aws-sdk-eksauth/features/smoke_step_definitions.rb deleted file mode 100644 index 14ee64cb8df..00000000000 --- a/gems/aws-sdk-eksauth/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::EKSAuth::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::EKSAuth::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-elasticache/features/smoke.feature b/gems/aws-sdk-elasticache/features/smoke.feature deleted file mode 100644 index e647c3c3234..00000000000 --- a/gems/aws-sdk-elasticache/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ElastiCache - -Background: - Given I create a client in region 'us-west-2' - - @elasticache @smoke - Scenario: Call Aws::ElastiCache::Client#describe_events and expect it to succeed - When I call the operation 'describe_events' with params: - """ -{} - """ - Then I expect an error was not raised - - @elasticache @smoke - Scenario: Call Aws::Aws::ElastiCache::Client#describe_cache_clusters and expect it to fail - When I call the operation 'describe_cache_clusters' with params: - """ -{"cache_cluster_id":"fake_cluster"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-elasticache/features/smoke_step_definitions.rb b/gems/aws-sdk-elasticache/features/smoke_step_definitions.rb deleted file mode 100644 index 5e436162011..00000000000 --- a/gems/aws-sdk-elasticache/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ElastiCache::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ElastiCache::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-elasticbeanstalk/features/smoke.feature b/gems/aws-sdk-elasticbeanstalk/features/smoke.feature deleted file mode 100644 index 1cc3b4c27cb..00000000000 --- a/gems/aws-sdk-elasticbeanstalk/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ElasticBeanstalk - -Background: - Given I create a client in region 'us-west-2' - - @elasticbeanstalk @smoke - Scenario: Call Aws::ElasticBeanstalk::Client#list_available_solution_stacks and expect it to succeed - When I call the operation 'list_available_solution_stacks' with params: - """ -{} - """ - Then I expect an error was not raised - - @elasticbeanstalk @smoke - Scenario: Call Aws::Aws::ElasticBeanstalk::Client#describe_environment_resources and expect it to fail - When I call the operation 'describe_environment_resources' with params: - """ -{"environment_id":"fake_environment"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-elasticbeanstalk/features/smoke_step_definitions.rb b/gems/aws-sdk-elasticbeanstalk/features/smoke_step_definitions.rb deleted file mode 100644 index d908c2db835..00000000000 --- a/gems/aws-sdk-elasticbeanstalk/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ElasticBeanstalk::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ElasticBeanstalk::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-elasticloadbalancing/features/smoke.feature b/gems/aws-sdk-elasticloadbalancing/features/smoke.feature deleted file mode 100644 index 1f2843aed44..00000000000 --- a/gems/aws-sdk-elasticloadbalancing/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ElasticLoadBalancing - -Background: - Given I create a client in region 'us-west-2' - - @elasticloadbalancing @smoke - Scenario: Call Aws::ElasticLoadBalancing::Client#describe_load_balancers and expect it to succeed - When I call the operation 'describe_load_balancers' with params: - """ -{} - """ - Then I expect an error was not raised - - @elasticloadbalancing @smoke - Scenario: Call Aws::Aws::ElasticLoadBalancing::Client#describe_load_balancers and expect it to fail - When I call the operation 'describe_load_balancers' with params: - """ -{"load_balancer_names":["fake_load_balancer"]} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-elasticloadbalancing/features/smoke_step_definitions.rb b/gems/aws-sdk-elasticloadbalancing/features/smoke_step_definitions.rb deleted file mode 100644 index 1bd2b9c9afc..00000000000 --- a/gems/aws-sdk-elasticloadbalancing/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ElasticLoadBalancing::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ElasticLoadBalancing::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-elasticloadbalancingv2/features/smoke.feature b/gems/aws-sdk-elasticloadbalancingv2/features/smoke.feature deleted file mode 100644 index 2aa1486ffd1..00000000000 --- a/gems/aws-sdk-elasticloadbalancingv2/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ElasticLoadBalancingV2 - -Background: - Given I create a client in region 'us-west-2' - - @elasticloadbalancingv2 @smoke - Scenario: Call Aws::ElasticLoadBalancingV2::Client#describe_load_balancers and expect it to succeed - When I call the operation 'describe_load_balancers' with params: - """ -{} - """ - Then I expect an error was not raised - - @elasticloadbalancingv2 @smoke - Scenario: Call Aws::Aws::ElasticLoadBalancingV2::Client#describe_load_balancers and expect it to fail - When I call the operation 'describe_load_balancers' with params: - """ -{"load_balancer_arns":["fake_load_balancer"]} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-elasticloadbalancingv2/features/smoke_step_definitions.rb b/gems/aws-sdk-elasticloadbalancingv2/features/smoke_step_definitions.rb deleted file mode 100644 index c84b8577971..00000000000 --- a/gems/aws-sdk-elasticloadbalancingv2/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ElasticLoadBalancingV2::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ElasticLoadBalancingV2::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-elasticsearchservice/features/smoke.feature b/gems/aws-sdk-elasticsearchservice/features/smoke.feature deleted file mode 100644 index 28c5b1c9b39..00000000000 --- a/gems/aws-sdk-elasticsearchservice/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ElasticsearchService - -Background: - Given I create a client in region 'us-west-2' - - @elasticsearchservice @smoke - Scenario: Call Aws::ElasticsearchService::Client#list_domain_names and expect it to succeed - When I call the operation 'list_domain_names' with params: - """ -{} - """ - Then I expect an error was not raised - - @elasticsearchservice @smoke - Scenario: Call Aws::Aws::ElasticsearchService::Client#describe_elasticsearch_domain and expect it to fail - When I call the operation 'describe_elasticsearch_domain' with params: - """ -{"domain_name":"not-a-domain"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-elasticsearchservice/features/smoke_step_definitions.rb b/gems/aws-sdk-elasticsearchservice/features/smoke_step_definitions.rb deleted file mode 100644 index f3db9f93dac..00000000000 --- a/gems/aws-sdk-elasticsearchservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ElasticsearchService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ElasticsearchService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-elastictranscoder/features/smoke.feature b/gems/aws-sdk-elastictranscoder/features/smoke.feature deleted file mode 100644 index f18e5bb9536..00000000000 --- a/gems/aws-sdk-elastictranscoder/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ElasticTranscoder - -Background: - Given I create a client in region 'us-west-2' - - @elastictranscoder @smoke - Scenario: Call Aws::ElasticTranscoder::Client#list_presets and expect it to succeed - When I call the operation 'list_presets' with params: - """ -{} - """ - Then I expect an error was not raised - - @elastictranscoder @smoke - Scenario: Call Aws::Aws::ElasticTranscoder::Client#read_job and expect it to fail - When I call the operation 'read_job' with params: - """ -{"id":"fake_job"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-elastictranscoder/features/smoke_step_definitions.rb b/gems/aws-sdk-elastictranscoder/features/smoke_step_definitions.rb deleted file mode 100644 index d4b616f4479..00000000000 --- a/gems/aws-sdk-elastictranscoder/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ElasticTranscoder::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ElasticTranscoder::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-emr/features/smoke.feature b/gems/aws-sdk-emr/features/smoke.feature deleted file mode 100644 index bbd8e7b80b4..00000000000 --- a/gems/aws-sdk-emr/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for EMR - -Background: - Given I create a client in region 'us-west-2' - - @emr @smoke - Scenario: Call Aws::EMR::Client#list_clusters and expect it to succeed - When I call the operation 'list_clusters' with params: - """ -{} - """ - Then I expect an error was not raised - - @emr @smoke - Scenario: Call Aws::Aws::EMR::Client#describe_cluster and expect it to fail - When I call the operation 'describe_cluster' with params: - """ -{"cluster_id":"fake_cluster"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-emr/features/smoke_step_definitions.rb b/gems/aws-sdk-emr/features/smoke_step_definitions.rb deleted file mode 100644 index 6ed893dd0ca..00000000000 --- a/gems/aws-sdk-emr/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::EMR::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::EMR::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-eventbridge/features/smoke.feature b/gems/aws-sdk-eventbridge/features/smoke.feature deleted file mode 100644 index 843f5d447e0..00000000000 --- a/gems/aws-sdk-eventbridge/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for EventBridge - -Background: - Given I create a client in region 'us-west-2' - - @eventbridge @smoke - Scenario: Call Aws::EventBridge::Client#list_rules and expect it to succeed - When I call the operation 'list_rules' with params: - """ -{} - """ - Then I expect an error was not raised - - @eventbridge @smoke - Scenario: Call Aws::Aws::EventBridge::Client#describe_rule and expect it to fail - When I call the operation 'describe_rule' with params: - """ -{"name":"fake-rule"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-eventbridge/features/smoke_step_definitions.rb b/gems/aws-sdk-eventbridge/features/smoke_step_definitions.rb deleted file mode 100644 index d42c50f1bef..00000000000 --- a/gems/aws-sdk-eventbridge/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::EventBridge::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::EventBridge::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-firehose/features/smoke.feature b/gems/aws-sdk-firehose/features/smoke.feature deleted file mode 100644 index 1e4bbe332dc..00000000000 --- a/gems/aws-sdk-firehose/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Firehose - -Background: - Given I create a client in region 'us-west-2' - - @firehose @smoke - Scenario: Call Aws::Firehose::Client#list_delivery_streams and expect it to succeed - When I call the operation 'list_delivery_streams' with params: - """ -{} - """ - Then I expect an error was not raised - - @firehose @smoke - Scenario: Call Aws::Aws::Firehose::Client#describe_delivery_stream and expect it to fail - When I call the operation 'describe_delivery_stream' with params: - """ -{"delivery_stream_name":"bogus-stream-name"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-firehose/features/smoke_step_definitions.rb b/gems/aws-sdk-firehose/features/smoke_step_definitions.rb deleted file mode 100644 index 9b358e19e0a..00000000000 --- a/gems/aws-sdk-firehose/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Firehose::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Firehose::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-gamelift/features/smoke.feature b/gems/aws-sdk-gamelift/features/smoke.feature deleted file mode 100644 index 519d167ab9b..00000000000 --- a/gems/aws-sdk-gamelift/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for GameLift - -Background: - Given I create a client in region 'us-west-2' - - @gamelift @smoke - Scenario: Call Aws::GameLift::Client#list_builds and expect it to succeed - When I call the operation 'list_builds' with params: - """ -{} - """ - Then I expect an error was not raised - - @gamelift @smoke - Scenario: Call Aws::Aws::GameLift::Client#describe_player_sessions and expect it to fail - When I call the operation 'describe_player_sessions' with params: - """ -{"player_session_id":"psess-fakeSessionId"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-gamelift/features/smoke_step_definitions.rb b/gems/aws-sdk-gamelift/features/smoke_step_definitions.rb deleted file mode 100644 index 38feb55d9a7..00000000000 --- a/gems/aws-sdk-gamelift/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::GameLift::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::GameLift::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-glacier/features/smoke.feature b/gems/aws-sdk-glacier/features/smoke.feature deleted file mode 100644 index 764955b9b2c..00000000000 --- a/gems/aws-sdk-glacier/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Glacier - -Background: - Given I create a client in region 'us-west-2' - - @glacier @smoke - Scenario: Call Aws::Glacier::Client#list_vaults and expect it to succeed - When I call the operation 'list_vaults' with params: - """ -{} - """ - Then I expect an error was not raised - - @glacier @smoke - Scenario: Call Aws::Aws::Glacier::Client#list_vaults and expect it to fail - When I call the operation 'list_vaults' with params: - """ -{"account_id":"abcmnoxyz"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-glacier/features/smoke_step_definitions.rb b/gems/aws-sdk-glacier/features/smoke_step_definitions.rb deleted file mode 100644 index 8bedf8cc8ce..00000000000 --- a/gems/aws-sdk-glacier/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Glacier::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Glacier::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-glue/features/smoke.feature b/gems/aws-sdk-glue/features/smoke.feature deleted file mode 100644 index 1309852d215..00000000000 --- a/gems/aws-sdk-glue/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Glue - -Background: - Given I create a client in region 'us-west-2' - - @glue @smoke - Scenario: Call Aws::Glue::Client#get_catalog_import_status and expect it to succeed - When I call the operation 'get_catalog_import_status' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-glue/features/smoke_step_definitions.rb b/gems/aws-sdk-glue/features/smoke_step_definitions.rb deleted file mode 100644 index 5c688506bc5..00000000000 --- a/gems/aws-sdk-glue/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Glue::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Glue::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-health/features/smoke_step_definitions.rb b/gems/aws-sdk-health/features/smoke_step_definitions.rb deleted file mode 100644 index fad9daeee80..00000000000 --- a/gems/aws-sdk-health/features/smoke_step_definitions.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Health::Client.new(region: region) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-iam/features/smoke.feature b/gems/aws-sdk-iam/features/smoke.feature deleted file mode 100644 index fbdfe24726e..00000000000 --- a/gems/aws-sdk-iam/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for IAM - -Background: - Given I create a client in region 'us-east-1' - - @iam @smoke - Scenario: Call Aws::IAM::Client#list_users and expect it to succeed - When I call the operation 'list_users' with params: - """ -{} - """ - Then I expect an error was not raised - - @iam @smoke - Scenario: Call Aws::Aws::IAM::Client#get_user and expect it to fail - When I call the operation 'get_user' with params: - """ -{"user_name":"fake_user"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-iam/features/smoke_step_definitions.rb b/gems/aws-sdk-iam/features/smoke_step_definitions.rb deleted file mode 100644 index 79e540dc383..00000000000 --- a/gems/aws-sdk-iam/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::IAM::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::IAM::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-inspector/features/smoke.feature b/gems/aws-sdk-inspector/features/smoke.feature deleted file mode 100644 index 209c4c55406..00000000000 --- a/gems/aws-sdk-inspector/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Inspector - -Background: - Given I create a client in region 'us-west-2' - - @inspector @smoke - Scenario: Call Aws::Inspector::Client#list_assessment_templates and expect it to succeed - When I call the operation 'list_assessment_templates' with params: - """ -{} - """ - Then I expect an error was not raised - - @inspector @smoke - Scenario: Call Aws::Aws::Inspector::Client#list_tags_for_resource and expect it to fail - When I call the operation 'list_tags_for_resource' with params: - """ -{"resource_arn":"fake-arn"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-inspector/features/smoke_step_definitions.rb b/gems/aws-sdk-inspector/features/smoke_step_definitions.rb deleted file mode 100644 index eaf872479f3..00000000000 --- a/gems/aws-sdk-inspector/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Inspector::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Inspector::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-internetmonitor/features/smoke.feature b/gems/aws-sdk-internetmonitor/features/smoke.feature deleted file mode 100644 index 4e474849787..00000000000 --- a/gems/aws-sdk-internetmonitor/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for InternetMonitor - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-internetmonitor/features/smoke_step_definitions.rb b/gems/aws-sdk-internetmonitor/features/smoke_step_definitions.rb deleted file mode 100644 index e21b3475ace..00000000000 --- a/gems/aws-sdk-internetmonitor/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::InternetMonitor::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::InternetMonitor::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-iot/features/smoke.feature b/gems/aws-sdk-iot/features/smoke.feature deleted file mode 100644 index 5940cc06586..00000000000 --- a/gems/aws-sdk-iot/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for IoT - -Background: - Given I create a client in region 'us-west-2' - - @iot @smoke - Scenario: Call Aws::IoT::Client#list_policies and expect it to succeed - When I call the operation 'list_policies' with params: - """ -{} - """ - Then I expect an error was not raised - - @iot @smoke - Scenario: Call Aws::Aws::IoT::Client#describe_thing and expect it to fail - When I call the operation 'describe_thing' with params: - """ -{"thing_name":"fake-thing"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-iot/features/smoke_step_definitions.rb b/gems/aws-sdk-iot/features/smoke_step_definitions.rb deleted file mode 100644 index f27d21f6dbf..00000000000 --- a/gems/aws-sdk-iot/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::IoT::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::IoT::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-iotdataplane/features/smoke.feature b/gems/aws-sdk-iotdataplane/features/smoke.feature deleted file mode 100644 index 6e36ff037b5..00000000000 --- a/gems/aws-sdk-iotdataplane/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for IoTDataPlane - -Background: - Given I create a client with endpoint 'https://data.iot.us-west-2.amazonaws.com' - - @iotdataplane @smoke - Scenario: Call Aws::Aws::IoTDataPlane::Client#get_thing_shadow and expect it to fail - When I call the operation 'get_thing_shadow' with params: - """ -{"thing_name":"fake-thing"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-iotdataplane/features/smoke_step_definitions.rb b/gems/aws-sdk-iotdataplane/features/smoke_step_definitions.rb deleted file mode 100644 index a250824e22d..00000000000 --- a/gems/aws-sdk-iotdataplane/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::IoTDataPlane::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::IoTDataPlane::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-iotfleetwise/features/smoke.feature b/gems/aws-sdk-iotfleetwise/features/smoke.feature deleted file mode 100644 index cdc5ae8308f..00000000000 --- a/gems/aws-sdk-iotfleetwise/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for IoTFleetWise - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-iotfleetwise/features/smoke_step_definitions.rb b/gems/aws-sdk-iotfleetwise/features/smoke_step_definitions.rb deleted file mode 100644 index e912ea2f2df..00000000000 --- a/gems/aws-sdk-iotfleetwise/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::IoTFleetWise::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::IoTFleetWise::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-iottwinmaker/features/smoke.feature b/gems/aws-sdk-iottwinmaker/features/smoke.feature deleted file mode 100644 index 4a4c8ab0cb0..00000000000 --- a/gems/aws-sdk-iottwinmaker/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for IoTTwinMaker - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-iottwinmaker/features/smoke_step_definitions.rb b/gems/aws-sdk-iottwinmaker/features/smoke_step_definitions.rb deleted file mode 100644 index 7e15f602ee5..00000000000 --- a/gems/aws-sdk-iottwinmaker/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::IoTTwinMaker::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::IoTTwinMaker::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-keyspaces/features/smoke.feature b/gems/aws-sdk-keyspaces/features/smoke.feature deleted file mode 100644 index 2799ac709cc..00000000000 --- a/gems/aws-sdk-keyspaces/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Keyspaces - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-keyspaces/features/smoke_step_definitions.rb b/gems/aws-sdk-keyspaces/features/smoke_step_definitions.rb deleted file mode 100644 index a78e0606c8d..00000000000 --- a/gems/aws-sdk-keyspaces/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Keyspaces::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Keyspaces::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-kinesis/features/smoke.feature b/gems/aws-sdk-kinesis/features/smoke.feature deleted file mode 100644 index 66a1fb4a844..00000000000 --- a/gems/aws-sdk-kinesis/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Kinesis - -Background: - Given I create a client in region 'us-west-2' - - @kinesis @smoke - Scenario: Call Aws::Kinesis::Client#list_streams and expect it to succeed - When I call the operation 'list_streams' with params: - """ -{} - """ - Then I expect an error was not raised - - @kinesis @smoke - Scenario: Call Aws::Aws::Kinesis::Client#describe_stream and expect it to fail - When I call the operation 'describe_stream' with params: - """ -{"stream_name":"bogus-stream-name"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-kinesis/features/smoke_step_definitions.rb b/gems/aws-sdk-kinesis/features/smoke_step_definitions.rb deleted file mode 100644 index 941cb7b79a7..00000000000 --- a/gems/aws-sdk-kinesis/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Kinesis::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Kinesis::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-kms/features/smoke.feature b/gems/aws-sdk-kms/features/smoke.feature deleted file mode 100644 index d98df84c85b..00000000000 --- a/gems/aws-sdk-kms/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for KMS - -Background: - Given I create a client in region 'us-west-2' - - @kms @smoke - Scenario: Call Aws::KMS::Client#list_aliases and expect it to succeed - When I call the operation 'list_aliases' with params: - """ -{} - """ - Then I expect an error was not raised - - @kms @smoke - Scenario: Call Aws::Aws::KMS::Client#get_key_policy and expect it to fail - When I call the operation 'get_key_policy' with params: - """ -{"key_id":"12345678-1234-1234-1234-123456789012","policy_name":"fakePolicy"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-kms/features/smoke_step_definitions.rb b/gems/aws-sdk-kms/features/smoke_step_definitions.rb deleted file mode 100644 index f7d9eb82d2d..00000000000 --- a/gems/aws-sdk-kms/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::KMS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::KMS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-lambda/features/smoke.feature b/gems/aws-sdk-lambda/features/smoke.feature deleted file mode 100644 index a05a077c063..00000000000 --- a/gems/aws-sdk-lambda/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Lambda - -Background: - Given I create a client in region 'us-west-2' - - @lambda @smoke - Scenario: Call Aws::Lambda::Client#list_functions and expect it to succeed - When I call the operation 'list_functions' with params: - """ -{} - """ - Then I expect an error was not raised - - @lambda @smoke - Scenario: Call Aws::Aws::Lambda::Client#invoke and expect it to fail - When I call the operation 'invoke' with params: - """ -{"function_name":"bogus-function"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-lambda/features/smoke_step_definitions.rb b/gems/aws-sdk-lambda/features/smoke_step_definitions.rb deleted file mode 100644 index d83daf4ea23..00000000000 --- a/gems/aws-sdk-lambda/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Lambda::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Lambda::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-lightsail/features/smoke.feature b/gems/aws-sdk-lightsail/features/smoke.feature deleted file mode 100644 index 9aed2c1afa2..00000000000 --- a/gems/aws-sdk-lightsail/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Lightsail - -Background: - Given I create a client in region 'us-west-2' - - @lightsail @smoke - Scenario: Call Aws::Lightsail::Client#get_active_names and expect it to succeed - When I call the operation 'get_active_names' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-lightsail/features/smoke_step_definitions.rb b/gems/aws-sdk-lightsail/features/smoke_step_definitions.rb deleted file mode 100644 index 09dfbf32139..00000000000 --- a/gems/aws-sdk-lightsail/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Lightsail::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Lightsail::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-managedblockchainquery/features/smoke.feature b/gems/aws-sdk-managedblockchainquery/features/smoke.feature deleted file mode 100644 index 3b97c4ffb11..00000000000 --- a/gems/aws-sdk-managedblockchainquery/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ManagedBlockchainQuery - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-managedblockchainquery/features/smoke_step_definitions.rb b/gems/aws-sdk-managedblockchainquery/features/smoke_step_definitions.rb deleted file mode 100644 index 4ce2d93ec99..00000000000 --- a/gems/aws-sdk-managedblockchainquery/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ManagedBlockchainQuery::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ManagedBlockchainQuery::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-marketplacecommerceanalytics/features/smoke.feature b/gems/aws-sdk-marketplacecommerceanalytics/features/smoke.feature deleted file mode 100644 index 7db07cb31cb..00000000000 --- a/gems/aws-sdk-marketplacecommerceanalytics/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for MarketplaceCommerceAnalytics - -Background: - Given I create a client in region 'us-east-1' - - @marketplacecommerceanalytics @smoke - Scenario: Call Aws::Aws::MarketplaceCommerceAnalytics::Client#generate_data_set and expect it to fail - When I call the operation 'generate_data_set' with params: - """ -{"data_set_type":"fake-type","data_set_publication_date":0,"role_name_arn":"fake-arn","destination_s3_bucket_name":"fake-bucket","sns_topic_arn":"fake-arn"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-marketplacecommerceanalytics/features/smoke_step_definitions.rb b/gems/aws-sdk-marketplacecommerceanalytics/features/smoke_step_definitions.rb deleted file mode 100644 index d5dd59b06b1..00000000000 --- a/gems/aws-sdk-marketplacecommerceanalytics/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::MarketplaceCommerceAnalytics::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::MarketplaceCommerceAnalytics::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-mediapackagev2/features/smoke.feature b/gems/aws-sdk-mediapackagev2/features/smoke.feature deleted file mode 100644 index 8bd217fa2cf..00000000000 --- a/gems/aws-sdk-mediapackagev2/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for MediaPackageV2 - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-mediapackagev2/features/smoke_step_definitions.rb b/gems/aws-sdk-mediapackagev2/features/smoke_step_definitions.rb deleted file mode 100644 index 3a148e01a2f..00000000000 --- a/gems/aws-sdk-mediapackagev2/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::MediaPackageV2::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::MediaPackageV2::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-medicalimaging/features/smoke.feature b/gems/aws-sdk-medicalimaging/features/smoke.feature deleted file mode 100644 index d6c504c7df8..00000000000 --- a/gems/aws-sdk-medicalimaging/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for MedicalImaging - -Background: - Given I create a client in region 'us-east-1' diff --git a/gems/aws-sdk-medicalimaging/features/smoke_step_definitions.rb b/gems/aws-sdk-medicalimaging/features/smoke_step_definitions.rb deleted file mode 100644 index 42e2514d47f..00000000000 --- a/gems/aws-sdk-medicalimaging/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::MedicalImaging::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::MedicalImaging::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-migrationhuborchestrator/features/smoke.feature b/gems/aws-sdk-migrationhuborchestrator/features/smoke.feature deleted file mode 100644 index 2af4f3e897a..00000000000 --- a/gems/aws-sdk-migrationhuborchestrator/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for MigrationHubOrchestrator - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-migrationhuborchestrator/features/smoke_step_definitions.rb b/gems/aws-sdk-migrationhuborchestrator/features/smoke_step_definitions.rb deleted file mode 100644 index 353fb15cd48..00000000000 --- a/gems/aws-sdk-migrationhuborchestrator/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::MigrationHubOrchestrator::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::MigrationHubOrchestrator::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-mturk/features/smoke.feature b/gems/aws-sdk-mturk/features/smoke.feature deleted file mode 100644 index 3151cfdad64..00000000000 --- a/gems/aws-sdk-mturk/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for MTurk - -Background: - Given I create a client in region 'us-east-1' diff --git a/gems/aws-sdk-mturk/features/smoke_step_definitions.rb b/gems/aws-sdk-mturk/features/smoke_step_definitions.rb deleted file mode 100644 index 7d33c7b96ea..00000000000 --- a/gems/aws-sdk-mturk/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::MTurk::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::MTurk::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-neptune/features/smoke.feature b/gems/aws-sdk-neptune/features/smoke.feature deleted file mode 100644 index 87e045de33c..00000000000 --- a/gems/aws-sdk-neptune/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Neptune - -Background: - Given I create a client in region 'us-west-2' - - @neptune @smoke - Scenario: Call Aws::Neptune::Client#describe_db_engine_versions and expect it to succeed - When I call the operation 'describe_db_engine_versions' with params: - """ -{} - """ - Then I expect an error was not raised - - @neptune @smoke - Scenario: Call Aws::Aws::Neptune::Client#describe_db_instances and expect it to fail - When I call the operation 'describe_db_instances' with params: - """ -{"db_instance_identifier":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-neptune/features/smoke_step_definitions.rb b/gems/aws-sdk-neptune/features/smoke_step_definitions.rb deleted file mode 100644 index ae9247b6fcc..00000000000 --- a/gems/aws-sdk-neptune/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Neptune::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Neptune::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-networkmonitor/features/smoke.feature b/gems/aws-sdk-networkmonitor/features/smoke.feature deleted file mode 100644 index c63ff2d3439..00000000000 --- a/gems/aws-sdk-networkmonitor/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for NetworkMonitor - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-networkmonitor/features/smoke_step_definitions.rb b/gems/aws-sdk-networkmonitor/features/smoke_step_definitions.rb deleted file mode 100644 index 464fb28bd48..00000000000 --- a/gems/aws-sdk-networkmonitor/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::NetworkMonitor::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::NetworkMonitor::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-omics/features/smoke.feature b/gems/aws-sdk-omics/features/smoke.feature deleted file mode 100644 index e66f0439048..00000000000 --- a/gems/aws-sdk-omics/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Omics - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-omics/features/smoke_step_definitions.rb b/gems/aws-sdk-omics/features/smoke_step_definitions.rb deleted file mode 100644 index 856e9bef73c..00000000000 --- a/gems/aws-sdk-omics/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Omics::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Omics::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-opensearchservice/features/smoke.feature b/gems/aws-sdk-opensearchservice/features/smoke.feature deleted file mode 100644 index 89102dd00f9..00000000000 --- a/gems/aws-sdk-opensearchservice/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for OpenSearchService - -Background: - Given I create a client in region 'us-west-2' - - @opensearchservice @smoke - Scenario: Call Aws::OpenSearchService::Client#list_domain_names and expect it to succeed - When I call the operation 'list_domain_names' with params: - """ -{} - """ - Then I expect an error was not raised - - @opensearchservice @smoke - Scenario: Call Aws::Aws::OpenSearchService::Client#describe_domain and expect it to fail - When I call the operation 'describe_domain' with params: - """ -{"domain_name":"not-a-domain"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-opensearchservice/features/smoke_step_definitions.rb b/gems/aws-sdk-opensearchservice/features/smoke_step_definitions.rb deleted file mode 100644 index 932eb917ef3..00000000000 --- a/gems/aws-sdk-opensearchservice/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::OpenSearchService::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::OpenSearchService::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-opsworks/features/smoke.feature b/gems/aws-sdk-opsworks/features/smoke.feature deleted file mode 100644 index 3e26b6a2310..00000000000 --- a/gems/aws-sdk-opsworks/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for OpsWorks - -Background: - Given I create a client in region 'us-west-2' - - @opsworks @smoke - Scenario: Call Aws::OpsWorks::Client#describe_stacks and expect it to succeed - When I call the operation 'describe_stacks' with params: - """ -{} - """ - Then I expect an error was not raised - - @opsworks @smoke - Scenario: Call Aws::Aws::OpsWorks::Client#describe_layers and expect it to fail - When I call the operation 'describe_layers' with params: - """ -{"stack_id":"fake_stack"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-opsworks/features/smoke_step_definitions.rb b/gems/aws-sdk-opsworks/features/smoke_step_definitions.rb deleted file mode 100644 index 1acc6e77d93..00000000000 --- a/gems/aws-sdk-opsworks/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::OpsWorks::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::OpsWorks::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-pinpointsmsvoicev2/features/smoke.feature b/gems/aws-sdk-pinpointsmsvoicev2/features/smoke.feature deleted file mode 100644 index a4dfa999a73..00000000000 --- a/gems/aws-sdk-pinpointsmsvoicev2/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for PinpointSMSVoiceV2 - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-pinpointsmsvoicev2/features/smoke_step_definitions.rb b/gems/aws-sdk-pinpointsmsvoicev2/features/smoke_step_definitions.rb deleted file mode 100644 index 389c534da0d..00000000000 --- a/gems/aws-sdk-pinpointsmsvoicev2/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::PinpointSMSVoiceV2::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::PinpointSMSVoiceV2::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-polly/features/smoke.feature b/gems/aws-sdk-polly/features/smoke.feature deleted file mode 100644 index 8c9c05cdc83..00000000000 --- a/gems/aws-sdk-polly/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Polly - -Background: - Given I create a client in region 'us-west-2' - - @polly @smoke - Scenario: Call Aws::Polly::Client#describe_voices and expect it to succeed - When I call the operation 'describe_voices' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-polly/features/smoke_step_definitions.rb b/gems/aws-sdk-polly/features/smoke_step_definitions.rb deleted file mode 100644 index b5f4f69fe18..00000000000 --- a/gems/aws-sdk-polly/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Polly::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Polly::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-pricing/features/smoke.feature b/gems/aws-sdk-pricing/features/smoke.feature deleted file mode 100644 index 0aabdc07124..00000000000 --- a/gems/aws-sdk-pricing/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Pricing - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-pricing/features/smoke_step_definitions.rb b/gems/aws-sdk-pricing/features/smoke_step_definitions.rb deleted file mode 100644 index e633c46b91d..00000000000 --- a/gems/aws-sdk-pricing/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Pricing::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Pricing::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-rds/features/smoke.feature b/gems/aws-sdk-rds/features/smoke.feature deleted file mode 100644 index f4381981183..00000000000 --- a/gems/aws-sdk-rds/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for RDS - -Background: - Given I create a client in region 'us-west-2' - - @rds @smoke - Scenario: Call Aws::RDS::Client#describe_db_engine_versions and expect it to succeed - When I call the operation 'describe_db_engine_versions' with params: - """ -{} - """ - Then I expect an error was not raised - - @rds @smoke - Scenario: Call Aws::Aws::RDS::Client#describe_db_instances and expect it to fail - When I call the operation 'describe_db_instances' with params: - """ -{"db_instance_identifier":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-rds/features/smoke_step_definitions.rb b/gems/aws-sdk-rds/features/smoke_step_definitions.rb deleted file mode 100644 index bb3625773a4..00000000000 --- a/gems/aws-sdk-rds/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::RDS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::RDS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-redshift/features/smoke.feature b/gems/aws-sdk-redshift/features/smoke.feature deleted file mode 100644 index d43a1fa27de..00000000000 --- a/gems/aws-sdk-redshift/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Redshift - -Background: - Given I create a client in region 'us-west-2' - - @redshift @smoke - Scenario: Call Aws::Redshift::Client#describe_cluster_versions and expect it to succeed - When I call the operation 'describe_cluster_versions' with params: - """ -{} - """ - Then I expect an error was not raised - - @redshift @smoke - Scenario: Call Aws::Aws::Redshift::Client#describe_clusters and expect it to fail - When I call the operation 'describe_clusters' with params: - """ -{"cluster_identifier":"fake-cluster"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-redshift/features/smoke_step_definitions.rb b/gems/aws-sdk-redshift/features/smoke_step_definitions.rb deleted file mode 100644 index 37ac4faf584..00000000000 --- a/gems/aws-sdk-redshift/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Redshift::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Redshift::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-rekognition/features/smoke.feature b/gems/aws-sdk-rekognition/features/smoke.feature deleted file mode 100644 index daf8d8c7364..00000000000 --- a/gems/aws-sdk-rekognition/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Rekognition - -Background: - Given I create a client in region 'us-west-2' - - @rekognition @smoke - Scenario: Call Aws::Rekognition::Client#list_collections and expect it to succeed - When I call the operation 'list_collections' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-rekognition/features/smoke_step_definitions.rb b/gems/aws-sdk-rekognition/features/smoke_step_definitions.rb deleted file mode 100644 index 0409dc1b9c7..00000000000 --- a/gems/aws-sdk-rekognition/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Rekognition::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Rekognition::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-route53/features/smoke.feature b/gems/aws-sdk-route53/features/smoke.feature deleted file mode 100644 index f6d4a282504..00000000000 --- a/gems/aws-sdk-route53/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Route53 - -Background: - Given I create a client in region 'us-east-1' - - @route53 @smoke - Scenario: Call Aws::Route53::Client#list_hosted_zones and expect it to succeed - When I call the operation 'list_hosted_zones' with params: - """ -{} - """ - Then I expect an error was not raised - - @route53 @smoke - Scenario: Call Aws::Aws::Route53::Client#get_hosted_zone and expect it to fail - When I call the operation 'get_hosted_zone' with params: - """ -{"id":"fake-zone"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-route53/features/smoke_step_definitions.rb b/gems/aws-sdk-route53/features/smoke_step_definitions.rb deleted file mode 100644 index b7f4caf0ffa..00000000000 --- a/gems/aws-sdk-route53/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Route53::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Route53::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-route53domains/features/smoke.feature b/gems/aws-sdk-route53domains/features/smoke.feature deleted file mode 100644 index 5da41267f49..00000000000 --- a/gems/aws-sdk-route53domains/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Route53Domains - -Background: - Given I create a client in region 'us-east-1' - - @route53domains @smoke - Scenario: Call Aws::Route53Domains::Client#list_domains and expect it to succeed - When I call the operation 'list_domains' with params: - """ -{} - """ - Then I expect an error was not raised - - @route53domains @smoke - Scenario: Call Aws::Aws::Route53Domains::Client#get_domain_detail and expect it to fail - When I call the operation 'get_domain_detail' with params: - """ -{"domain_name":"fake-domain-name"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-route53domains/features/smoke_step_definitions.rb b/gems/aws-sdk-route53domains/features/smoke_step_definitions.rb deleted file mode 100644 index 5ea6592b351..00000000000 --- a/gems/aws-sdk-route53domains/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Route53Domains::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Route53Domains::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-route53resolver/features/smoke.feature b/gems/aws-sdk-route53resolver/features/smoke.feature deleted file mode 100644 index 726ebe54f6f..00000000000 --- a/gems/aws-sdk-route53resolver/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Route53Resolver - -Background: - Given I create a client in region 'us-west-2' - - @route53resolver @smoke - Scenario: Call Aws::Route53Resolver::Client#list_resolver_endpoints and expect it to succeed - When I call the operation 'list_resolver_endpoints' with params: - """ -{} - """ - Then I expect an error was not raised - - @route53resolver @smoke - Scenario: Call Aws::Aws::Route53Resolver::Client#get_resolver_rule and expect it to fail - When I call the operation 'get_resolver_rule' with params: - """ -{"resolver_rule_id":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-route53resolver/features/smoke_step_definitions.rb b/gems/aws-sdk-route53resolver/features/smoke_step_definitions.rb deleted file mode 100644 index f40ad1da5c4..00000000000 --- a/gems/aws-sdk-route53resolver/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Route53Resolver::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Route53Resolver::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-s3/features/smoke.feature b/gems/aws-sdk-s3/features/smoke.feature deleted file mode 100644 index 11142f10e5f..00000000000 --- a/gems/aws-sdk-s3/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for S3 - -Background: - Given I create a client in region 'us-west-2' - - @s3 @smoke - Scenario: Call Aws::S3::Client#list_buckets and expect it to succeed - When I call the operation 'list_buckets' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-s3/features/smoke_step_definitions.rb b/gems/aws-sdk-s3/features/smoke_step_definitions.rb deleted file mode 100644 index 4935c9fb972..00000000000 --- a/gems/aws-sdk-s3/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::S3::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::S3::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-secretsmanager/features/smoke.feature b/gems/aws-sdk-secretsmanager/features/smoke.feature deleted file mode 100644 index aba21abfd08..00000000000 --- a/gems/aws-sdk-secretsmanager/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SecretsManager - -Background: - Given I create a client in region 'us-west-2' - - @secretsmanager @smoke - Scenario: Call Aws::SecretsManager::Client#list_secrets and expect it to succeed - When I call the operation 'list_secrets' with params: - """ -{} - """ - Then I expect an error was not raised - - @secretsmanager @smoke - Scenario: Call Aws::Aws::SecretsManager::Client#describe_secret and expect it to fail - When I call the operation 'describe_secret' with params: - """ -{"secret_id":"fake-secret-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-secretsmanager/features/smoke_step_definitions.rb b/gems/aws-sdk-secretsmanager/features/smoke_step_definitions.rb deleted file mode 100644 index 16e8a2b3b52..00000000000 --- a/gems/aws-sdk-secretsmanager/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SecretsManager::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SecretsManager::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-servicecatalog/features/smoke.feature b/gems/aws-sdk-servicecatalog/features/smoke.feature deleted file mode 100644 index 46782ba825a..00000000000 --- a/gems/aws-sdk-servicecatalog/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for ServiceCatalog - -Background: - Given I create a client in region 'us-west-2' - - @servicecatalog @smoke - Scenario: Call Aws::ServiceCatalog::Client#list_accepted_portfolio_shares and expect it to succeed - When I call the operation 'list_accepted_portfolio_shares' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-servicecatalog/features/smoke_step_definitions.rb b/gems/aws-sdk-servicecatalog/features/smoke_step_definitions.rb deleted file mode 100644 index 05f37f07391..00000000000 --- a/gems/aws-sdk-servicecatalog/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::ServiceCatalog::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::ServiceCatalog::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-ses/features/smoke.feature b/gems/aws-sdk-ses/features/smoke.feature deleted file mode 100644 index 54606dc170a..00000000000 --- a/gems/aws-sdk-ses/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SES - -Background: - Given I create a client in region 'us-west-2' - - @ses @smoke - Scenario: Call Aws::SES::Client#list_identities and expect it to succeed - When I call the operation 'list_identities' with params: - """ -{} - """ - Then I expect an error was not raised - - @ses @smoke - Scenario: Call Aws::Aws::SES::Client#verify_email_identity and expect it to fail - When I call the operation 'verify_email_identity' with params: - """ -{"email_address":"fake_email"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-ses/features/smoke_step_definitions.rb b/gems/aws-sdk-ses/features/smoke_step_definitions.rb deleted file mode 100644 index b57ad912a68..00000000000 --- a/gems/aws-sdk-ses/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SES::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SES::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-shield/features/smoke.feature b/gems/aws-sdk-shield/features/smoke.feature deleted file mode 100644 index 79c06573e7b..00000000000 --- a/gems/aws-sdk-shield/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Shield - -Background: - Given I create a client in region 'us-east-1' - - @shield @smoke - Scenario: Call Aws::Shield::Client#list_attacks and expect it to succeed - When I call the operation 'list_attacks' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-shield/features/smoke_step_definitions.rb b/gems/aws-sdk-shield/features/smoke_step_definitions.rb deleted file mode 100644 index 0c1cfb49405..00000000000 --- a/gems/aws-sdk-shield/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Shield::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Shield::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-sms/features/smoke.feature b/gems/aws-sdk-sms/features/smoke.feature deleted file mode 100644 index 4badb2f7e16..00000000000 --- a/gems/aws-sdk-sms/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SMS - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-sms/features/smoke_step_definitions.rb b/gems/aws-sdk-sms/features/smoke_step_definitions.rb deleted file mode 100644 index 24e817e03d0..00000000000 --- a/gems/aws-sdk-sms/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SMS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SMS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-snowball/features/smoke.feature b/gems/aws-sdk-snowball/features/smoke.feature deleted file mode 100644 index 54ea9e40f8f..00000000000 --- a/gems/aws-sdk-snowball/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Snowball - -Background: - Given I create a client in region 'us-west-2' - - @snowball @smoke - Scenario: Call Aws::Snowball::Client#describe_addresses and expect it to succeed - When I call the operation 'describe_addresses' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-snowball/features/smoke_step_definitions.rb b/gems/aws-sdk-snowball/features/smoke_step_definitions.rb deleted file mode 100644 index a631b8dc808..00000000000 --- a/gems/aws-sdk-snowball/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Snowball::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Snowball::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-sns/features/smoke.feature b/gems/aws-sdk-sns/features/smoke.feature deleted file mode 100644 index a54c191a103..00000000000 --- a/gems/aws-sdk-sns/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SNS - -Background: - Given I create a client in region 'us-west-2' - - @sns @smoke - Scenario: Call Aws::SNS::Client#list_topics and expect it to succeed - When I call the operation 'list_topics' with params: - """ -{} - """ - Then I expect an error was not raised - - @sns @smoke - Scenario: Call Aws::Aws::SNS::Client#publish and expect it to fail - When I call the operation 'publish' with params: - """ -{"message":"hello","topic_arn":"fake_topic"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-sns/features/smoke_step_definitions.rb b/gems/aws-sdk-sns/features/smoke_step_definitions.rb deleted file mode 100644 index f99493043d6..00000000000 --- a/gems/aws-sdk-sns/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SNS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SNS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-sqs/features/smoke.feature b/gems/aws-sdk-sqs/features/smoke.feature deleted file mode 100644 index 1130d68a0a6..00000000000 --- a/gems/aws-sdk-sqs/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SQS - -Background: - Given I create a client in region 'us-west-2' - - @sqs @smoke - Scenario: Call Aws::SQS::Client#list_queues and expect it to succeed - When I call the operation 'list_queues' with params: - """ -{} - """ - Then I expect an error was not raised - - @sqs @smoke - Scenario: Call Aws::Aws::SQS::Client#get_queue_url and expect it to fail - When I call the operation 'get_queue_url' with params: - """ -{"queue_name":"fake_queue"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-sqs/features/smoke_step_definitions.rb b/gems/aws-sdk-sqs/features/smoke_step_definitions.rb deleted file mode 100644 index 4ea73e37355..00000000000 --- a/gems/aws-sdk-sqs/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SQS::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SQS::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-ssm/features/smoke.feature b/gems/aws-sdk-ssm/features/smoke.feature deleted file mode 100644 index 21ee6dbd853..00000000000 --- a/gems/aws-sdk-ssm/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SSM - -Background: - Given I create a client in region 'us-west-2' - - @ssm @smoke - Scenario: Call Aws::SSM::Client#list_documents and expect it to succeed - When I call the operation 'list_documents' with params: - """ -{} - """ - Then I expect an error was not raised - - @ssm @smoke - Scenario: Call Aws::Aws::SSM::Client#get_document and expect it to fail - When I call the operation 'get_document' with params: - """ -{"name":"'fake-name'"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-ssm/features/smoke_step_definitions.rb b/gems/aws-sdk-ssm/features/smoke_step_definitions.rb deleted file mode 100644 index b91325c8c40..00000000000 --- a/gems/aws-sdk-ssm/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SSM::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SSM::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-states/features/smoke.feature b/gems/aws-sdk-states/features/smoke.feature deleted file mode 100644 index bf4662604c0..00000000000 --- a/gems/aws-sdk-states/features/smoke.feature +++ /dev/null @@ -1,19 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for States - -Background: - Given I create a client in region 'us-west-2' - - @states @smoke - Scenario: Call Aws::States::Client#list_activities and expect it to succeed - When I call the operation 'list_activities' with params: - """ -{} - """ - Then I expect an error was not raised diff --git a/gems/aws-sdk-states/features/smoke_step_definitions.rb b/gems/aws-sdk-states/features/smoke_step_definitions.rb deleted file mode 100644 index 3229c63fee3..00000000000 --- a/gems/aws-sdk-states/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::States::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::States::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-support/features/smoke.feature b/gems/aws-sdk-support/features/smoke.feature deleted file mode 100644 index e26624d3ace..00000000000 --- a/gems/aws-sdk-support/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for Support - -Background: - Given I create a client in region 'us-east-1' - - @support @smoke - Scenario: Call Aws::Support::Client#describe_services and expect it to succeed - When I call the operation 'describe_services' with params: - """ -{} - """ - Then I expect an error was not raised - - @support @smoke - Scenario: Call Aws::Aws::Support::Client#create_case and expect it to fail - When I call the operation 'create_case' with params: - """ -{"subject":"subject","communication_body":"communication","category_code":"category","service_code":"amazon-dynamodb","severity_code":"low"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-support/features/smoke_step_definitions.rb b/gems/aws-sdk-support/features/smoke_step_definitions.rb deleted file mode 100644 index cb7dae0a2e4..00000000000 --- a/gems/aws-sdk-support/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::Support::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::Support::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-swf/features/smoke.feature b/gems/aws-sdk-swf/features/smoke.feature deleted file mode 100644 index 067496648ff..00000000000 --- a/gems/aws-sdk-swf/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for SWF - -Background: - Given I create a client in region 'us-west-2' - - @swf @smoke - Scenario: Call Aws::SWF::Client#list_domains and expect it to succeed - When I call the operation 'list_domains' with params: - """ -{"registration_status":"REGISTERED"} - """ - Then I expect an error was not raised - - @swf @smoke - Scenario: Call Aws::Aws::SWF::Client#describe_domain and expect it to fail - When I call the operation 'describe_domain' with params: - """ -{"name":"fake_domain"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-swf/features/smoke_step_definitions.rb b/gems/aws-sdk-swf/features/smoke_step_definitions.rb deleted file mode 100644 index cc878f7d9f4..00000000000 --- a/gems/aws-sdk-swf/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::SWF::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::SWF::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-verifiedpermissions/features/smoke.feature b/gems/aws-sdk-verifiedpermissions/features/smoke.feature deleted file mode 100644 index 2e13bdcecbb..00000000000 --- a/gems/aws-sdk-verifiedpermissions/features/smoke.feature +++ /dev/null @@ -1,11 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for VerifiedPermissions - -Background: - Given I create a client in region 'us-west-2' diff --git a/gems/aws-sdk-verifiedpermissions/features/smoke_step_definitions.rb b/gems/aws-sdk-verifiedpermissions/features/smoke_step_definitions.rb deleted file mode 100644 index 43e24fd986a..00000000000 --- a/gems/aws-sdk-verifiedpermissions/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::VerifiedPermissions::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::VerifiedPermissions::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-waf/features/smoke.feature b/gems/aws-sdk-waf/features/smoke.feature deleted file mode 100644 index e52040d6644..00000000000 --- a/gems/aws-sdk-waf/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for WAF - -Background: - Given I create a client in region 'us-east-1' - - @waf @smoke - Scenario: Call Aws::WAF::Client#list_rules and expect it to succeed - When I call the operation 'list_rules' with params: - """ -{"limit":20} - """ - Then I expect an error was not raised - - @waf @smoke - Scenario: Call Aws::Aws::WAF::Client#create_sql_injection_match_set and expect it to fail - When I call the operation 'create_sql_injection_match_set' with params: - """ -{"name":"fake_name","change_token":"fake_token"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-waf/features/smoke_step_definitions.rb b/gems/aws-sdk-waf/features/smoke_step_definitions.rb deleted file mode 100644 index c96edca1c7e..00000000000 --- a/gems/aws-sdk-waf/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::WAF::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::WAF::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-wafregional/features/smoke.feature b/gems/aws-sdk-wafregional/features/smoke.feature deleted file mode 100644 index ec1e2717641..00000000000 --- a/gems/aws-sdk-wafregional/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for WAFRegional - -Background: - Given I create a client in region 'us-east-1' - - @wafregional @smoke - Scenario: Call Aws::WAFRegional::Client#list_rules and expect it to succeed - When I call the operation 'list_rules' with params: - """ -{"limit":20} - """ - Then I expect an error was not raised - - @wafregional @smoke - Scenario: Call Aws::Aws::WAFRegional::Client#create_sql_injection_match_set and expect it to fail - When I call the operation 'create_sql_injection_match_set' with params: - """ -{"name":"fake_name","change_token":"fake_token"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-wafregional/features/smoke_step_definitions.rb b/gems/aws-sdk-wafregional/features/smoke_step_definitions.rb deleted file mode 100644 index 95c88df62cb..00000000000 --- a/gems/aws-sdk-wafregional/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::WAFRegional::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::WAFRegional::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-wafv2/features/smoke.feature b/gems/aws-sdk-wafv2/features/smoke.feature deleted file mode 100644 index c7abba641cd..00000000000 --- a/gems/aws-sdk-wafv2/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for WAFV2 - -Background: - Given I create a client in region 'us-east-1' - - @wafv2 @smoke - Scenario: Call Aws::WAFV2::Client#list_web_acls and expect it to succeed - When I call the operation 'list_web_acls' with params: - """ -{"scope":"REGIONAL","limit":20} - """ - Then I expect an error was not raised - - @wafv2 @smoke - Scenario: Call Aws::Aws::WAFV2::Client#create_regex_pattern_set and expect it to fail - When I call the operation 'create_regex_pattern_set' with params: - """ -{"name":"fake_name","scope":"fake_scope"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-wafv2/features/smoke_step_definitions.rb b/gems/aws-sdk-wafv2/features/smoke_step_definitions.rb deleted file mode 100644 index a20c417fab1..00000000000 --- a/gems/aws-sdk-wafv2/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::WAFV2::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::WAFV2::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/gems/aws-sdk-workspaces/features/smoke.feature b/gems/aws-sdk-workspaces/features/smoke.feature deleted file mode 100644 index 7351c10f8ed..00000000000 --- a/gems/aws-sdk-workspaces/features/smoke.feature +++ /dev/null @@ -1,27 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Feature: Smoke tests for WorkSpaces - -Background: - Given I create a client in region 'us-west-2' - - @workspaces @smoke - Scenario: Call Aws::WorkSpaces::Client#describe_workspaces and expect it to succeed - When I call the operation 'describe_workspaces' with params: - """ -{} - """ - Then I expect an error was not raised - - @workspaces @smoke - Scenario: Call Aws::Aws::WorkSpaces::Client#describe_workspaces and expect it to fail - When I call the operation 'describe_workspaces' with params: - """ -{"directory_id":"fake-id"} - """ - Then I expect an error was raised diff --git a/gems/aws-sdk-workspaces/features/smoke_step_definitions.rb b/gems/aws-sdk-workspaces/features/smoke_step_definitions.rb deleted file mode 100644 index efcf0b69eec..00000000000 --- a/gems/aws-sdk-workspaces/features/smoke_step_definitions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -# Shared Smoke Test Definitions -Given(/I create a client in region '(.*?)'/) do |region| - @regional_client = Aws::WorkSpaces::Client.new(region: region) -end - -Given(/I create a client with endpoint '(.*?)'/) do |endpoint| - @regional_client = Aws::WorkSpaces::Client.new(endpoint: endpoint) -end - -When(/I call the operation '(.*?)' with params:/) do |operation, params| - opts = JSON.parse(params, symbolize_names: true) - begin - @regional_client.send(operation.to_sym, opts) - @operation_raised_error = false - rescue StandardError - @operation_raised_error = true - end -end - -Then(/I expect an error was raised/) do - expect(@operation_raised_error).to be_truthy -end - -Then(/I expect an error was not raised/) do - expect(@operation_raised_error).not_to be_truthy -end diff --git a/tasks/test.rake b/tasks/test.rake index 20e81e8134d..3bf46c63e4d 100644 --- a/tasks/test.rake +++ b/tasks/test.rake @@ -42,9 +42,55 @@ task 'test:spec' do end ## -## feature / integration tests +## integration / smoke tests ## +desc 'Executes smoke tests for a single gem' +rule /^test:smoke:.+$/ do |task| + dir = "gems/#{task.name.split(':').last}/features" + tags = "-t '@smoke'" + ENV.fetch('AWS_SMOKE_TEST_SKIP_TAGS', '').split(',').each do |tag| + tags += " -t 'not @#{tag}'" + end + sh("bundle exec cucumber --retry 3 #{tags} -r #{dir} #{dir} --publish-quiet") +end + +desc 'Executes all smoke tests' +rule 'test:smoke' do + failures = [] + Dir.glob('gems/*/features').each do |dir| + next unless File.exist?(File.join(dir, 'smoke.feature')) + + gem_name = dir.match(%r{gems/(.*)/features})[1] + sh("bundle exec rake test:smoke:#{gem_name}") do |ok, _| + failures << File.basename(File.dirname(dir)) unless ok + end + end + abort('one or more test suites failed: %s' % [failures.join(', ')]) unless failures.empty? +end + +desc 'Executes integration tests for a single gem' +rule /^test:integration:.+$/ do |task| + dir = "gems/#{task.name.split(':').last}/features" + tags = "-t 'not @smoke' -t 'not @veryslow'" + sh("bundle exec cucumber --retry 3 #{tags} -r #{dir} #{dir} --publish-quiet") +end + +desc 'Executes all integration tests' +task 'test:integration' do + failures = [] + Dir.glob('gems/*/features').each do |dir| + next unless Dir.glob(File.join(dir, '**', '*.feature')).any? + + gem_name = dir.match(%r{gems/(.*)/features})[1] + sh("bundle exec rake test:integration:#{gem_name}") do |ok, _| + failures << File.basename(File.dirname(dir)) unless ok + end + end + abort('one or more test suites failed: %s' % [failures.join(', ')]) unless failures.empty? +end + +desc 'Executes feature tests for a single gem' rule /^test:features:.+$/ do |task| dir = "gems/#{task.name.split(':').last}/features" # Exclude support smoke tests as these require account settings @@ -54,12 +100,14 @@ rule /^test:features:.+$/ do |task| sh("bundle exec cucumber --retry 3 #{tags} -r #{dir} #{dir} --publish-quiet") end -desc 'Executes integration tests.' +desc 'Executes all feature tests' task 'test:features' do failures = [] Dir.glob('gems/*/features').each do |dir| - tags = "-t 'not @veryslow' -t 'not @support or not @smoke'" - sh("bundle exec cucumber --retry 3 #{tags} -r #{dir} #{dir} --publish-quiet") do |ok, _| + next unless Dir.glob(File.join(dir, '**', '*.feature')).any? + + gem_name = dir.match(%r{gems/(.*)/features})[1] + sh("bundle exec rake test:features:#{gem_name}") do |ok, _| failures << File.basename(File.dirname(dir)) unless ok end end