From 4f46f146eb43ef9cebda5c0253c079425e11be3e Mon Sep 17 00:00:00 2001 From: sid <48153483+siddsriv@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:33:24 -0400 Subject: [PATCH] test(client-opsworks): delete tests for opsworks (#4650) * test(client-opsworks): delete tests for opsworks * chore: changelog * test(opsworks): remove supported test cases/endpoint --- .../bugfix-opsworks-dc487795.json | 5 +++ features/opsworks/opsworks.feature | 23 ---------- .../opsworks/step_definitions/opsworks.js | 42 ------------------- test/endpoint/test_cases_supported.json | 32 -------------- 4 files changed, 5 insertions(+), 97 deletions(-) create mode 100644 .changes/next-release/bugfix-opsworks-dc487795.json delete mode 100644 features/opsworks/opsworks.feature delete mode 100644 features/opsworks/step_definitions/opsworks.js diff --git a/.changes/next-release/bugfix-opsworks-dc487795.json b/.changes/next-release/bugfix-opsworks-dc487795.json new file mode 100644 index 0000000000..c6e304b7da --- /dev/null +++ b/.changes/next-release/bugfix-opsworks-dc487795.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "opsworks", + "description": "delete tests" +} \ No newline at end of file diff --git a/features/opsworks/opsworks.feature b/features/opsworks/opsworks.feature deleted file mode 100644 index 3d45a53983..0000000000 --- a/features/opsworks/opsworks.feature +++ /dev/null @@ -1,23 +0,0 @@ -# language: en -@opsworks -Feature: AWS OpsWorks - - I want to use AWS OpsWorks - - Scenario: Creating and deleting user profiles - Given I have an IAM username "aws-js-sdk" - And I create an IAM user with the username - And I create an OpsWorks user profile with the IAM user ARN - And the IAM user ARN is in the result - And I describe the OpsWorks user profiles - Then the IAM user ARN should be in the result - And the name should be equal to the IAM username - And the SSH username should be equal to the IAM username - And I delete the OpsWorks user profile - And I delete the IAM user - - Scenario: Error handling - Given I have an IAM username "" - And I create an OpsWorks user profile with the IAM user ARN - Then the error code should be "ValidationException" - And the status code should be 400 diff --git a/features/opsworks/step_definitions/opsworks.js b/features/opsworks/step_definitions/opsworks.js deleted file mode 100644 index b3f29e1336..0000000000 --- a/features/opsworks/step_definitions/opsworks.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = function() { - this.Before("@opsworks", function (callback) { - this.iam = new this.AWS.IAM({region: 'us-west-2'}); - this.service = new this.AWS.OpsWorks({region: 'us-west-2'}); - callback(); - }); - - this.Given(/^I create an OpsWorks user profile with the IAM user ARN$/, function(callback) { - var params = {IamUserArn: this.iamUserArn}; - this.request(null, 'createUserProfile', params, callback, false); - }); - - this.Given(/^the IAM user ARN is in the result$/, function(callback) { - this.assert.equal(this.data.IamUserArn, this.iamUserArn); - callback(); - }); - - this.Given(/^I describe the OpsWorks user profiles$/, function(callback) { - var params = {IamUserArns: [this.iamUserArn]}; - this.request(null, 'describeUserProfiles', params, callback); - }); - - this.Then(/^the IAM user ARN should be in the result$/, function(callback) { - this.assert.equal(this.data.UserProfiles[0].IamUserArn, this.iamUserArn); - callback(); - }); - - this.Then(/^the name should be equal to the IAM username$/, function(callback) { - this.assert.equal(this.data.UserProfiles[0].Name, this.iamUser); - callback(); - }); - - this.Then(/^the SSH username should be equal to the IAM username$/, function(callback) { - this.assert.equal(this.data.UserProfiles[0].SshUsername, this.iamUser); - callback(); - }); - - this.Then(/^I delete the OpsWorks user profile$/, function(callback) { - var params = {IamUserArn: this.iamUserArn}; - this.request(null, 'deleteUserProfile', params, callback, false); - }); -}; diff --git a/test/endpoint/test_cases_supported.json b/test/endpoint/test_cases_supported.json index 6fa794077d..a3d09cc11f 100644 --- a/test/endpoint/test_cases_supported.json +++ b/test/endpoint/test_cases_supported.json @@ -4903,38 +4903,6 @@ "useDualstackEndpoint": true, "hostname": "nimble-fips.ap-southeast-2.api.aws" }, - { - "endpointPrefix": "opsworks", - "clientName": "OpsWorks", - "region": "ap-northeast-1", - "useFipsEndpoint": false, - "useDualstackEndpoint": false, - "hostname": "opsworks.ap-northeast-1.amazonaws.com" - }, - { - "endpointPrefix": "opsworks", - "clientName": "OpsWorks", - "region": "ap-northeast-1", - "useFipsEndpoint": false, - "useDualstackEndpoint": true, - "hostname": "opsworks.ap-northeast-1.api.aws" - }, - { - "endpointPrefix": "opsworks", - "clientName": "OpsWorks", - "region": "ap-northeast-1", - "useFipsEndpoint": true, - "useDualstackEndpoint": false, - "hostname": "opsworks-fips.ap-northeast-1.amazonaws.com" - }, - { - "endpointPrefix": "opsworks", - "clientName": "OpsWorks", - "region": "ap-northeast-1", - "useFipsEndpoint": true, - "useDualstackEndpoint": true, - "hostname": "opsworks-fips.ap-northeast-1.api.aws" - }, { "endpointPrefix": "opsworks-cm", "clientName": "OpsWorksCM",