diff --git a/features/opsworks/opsworks.feature b/features/opsworks/opsworks.feature deleted file mode 100644 index 679415377d20..000000000000 --- a/features/opsworks/opsworks.feature +++ /dev/null @@ -1,21 +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 - - 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 error 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 8041c869578d..000000000000 --- a/features/opsworks/step_definitions/opsworks.js +++ /dev/null @@ -1,47 +0,0 @@ -const { After, Before, Given, Then } = require("@cucumber/cucumber"); - -Before({ tags: "@opsworks" }, function () { - const { IAM } = require("../../../clients/client-iam"); - const { OpsWorks } = require("../../../clients/client-opsworks"); - - this.iam = new IAM({}); - this.service = new OpsWorks({}); -}); - -After({ tags: "@opsworks" }, async function () { - if (this.iamUser) { - await this.iam.deleteUser({ UserName: this.iamUser }); - await this.service.deleteUserProfile({ IamUserArn: this.iamUserArn }); - this.iamUser = undefined; - } -}); - -Given("I create an OpsWorks user profile with the IAM user ARN", async function () { - try { - const params = { IamUserArn: this.iamUserArn }; - this.data = await this.service.createUserProfile(params); - } catch (error) { - this.error = error; - } -}); - -Given("the IAM user ARN is in the result", function () { - this.assert.equal(this.data.IamUserArn, this.iamUserArn); -}); - -Given("I describe the OpsWorks user profiles", async function () { - const params = { IamUserArns: [this.iamUserArn] }; - this.data = await this.service.describeUserProfiles(params); -}); - -Then("the IAM user ARN should be in the result", function () { - this.assert.equal(this.data.UserProfiles[0].IamUserArn, this.iamUserArn); -}); - -Then("the name should be equal to the IAM username", function () { - this.assert.equal(this.data.UserProfiles[0].Name, this.iamUser); -}); - -Then("the SSH username should be equal to the IAM username", function () { - this.assert.equal(this.data.UserProfiles[0].SshUsername, this.iamUser); -});