diff --git a/features/elastictranscoder/elastictranscoder.feature b/features/elastictranscoder/elastictranscoder.feature deleted file mode 100644 index 7ca4863089d40..0000000000000 --- a/features/elastictranscoder/elastictranscoder.feature +++ /dev/null @@ -1,21 +0,0 @@ -# language: en -@elastictranscoder -Feature: Elastic Transcoder - - I want to use Amazon Elastic Transcoder - - @pipelines - Scenario: Pipeline CRUD - Given I create an IAM role with name prefix "aws-sdk-js" - And I create a bucket - And I create an Elastic Transcoder pipeline with name prefix "aws-sdk-js" - And I list pipelines - Then the list should contain the pipeline - And I pause the pipeline - And I read the pipeline - Then the pipeline status should be "Paused" - - @error - Scenario: Error handling - Given I create an Elastic Transcoder pipeline with name prefix "" - Then the error code should be "ValidationException" diff --git a/features/elastictranscoder/step_definitions/elastictranscoder.js b/features/elastictranscoder/step_definitions/elastictranscoder.js deleted file mode 100644 index 3383484a299b5..0000000000000 --- a/features/elastictranscoder/step_definitions/elastictranscoder.js +++ /dev/null @@ -1,74 +0,0 @@ -const { After, Before, Given, Then } = require("@cucumber/cucumber"); - -Before({ tags: "@elastictranscoder" }, function () { - const { S3 } = require("../../../clients/client-s3"); - const { IAM } = require("../../../clients/client-iam"); - const { ElasticTranscoder } = require("../../../clients/client-elastic-transcoder"); - this.iam = new IAM({}); - this.s3 = new S3({}); - this.service = new ElasticTranscoder({}); -}); - -After({ tags: "@elastictranscoder" }, async function () { - if (this.iamRoleName) { - await this.iam.deleteRole({ RoleName: this.iamRoleName }); - this.iamRoleName = undefined; - } - if (this.pipelineId) { - await this.service.deletePipeline({ Id: this.pipelineId }); - this.pipelineId = undefined; - } - if (this.bucket) { - await this.s3.deleteBucket({ Bucket: this.bucket }); - this.bucket = undefined; - } -}); - -Given("I create an Elastic Transcoder pipeline with name prefix {string}", async function (prefix) { - this.pipelineName = this.uniqueName(prefix); - const params = { - Name: this.pipelineName, - InputBucket: this.bucket, - OutputBucket: this.bucket, - Role: this.iamRoleArn, - Notifications: { - Progressing: "", - Completed: "", - Warning: "", - Error: "", - }, - }; - - try { - this.data = await this.service.createPipeline(params); - this.pipelineId = this.data.Pipeline.Id; - } catch (error) { - this.error = error; - } -}); - -Given("I list pipelines", async function () { - this.data = await this.service.listPipelines({}); -}); - -Then("the list should contain the pipeline", function () { - const id = this.pipelineId; - this.assert.contains(this.data.Pipelines, function (pipeline) { - return pipeline.Id === id; - }); -}); - -Then("I pause the pipeline", async function () { - this.data = await this.service.updatePipelineStatus({ - Id: this.pipelineId, - Status: "Paused", - }); -}); - -Then("I read the pipeline", async function () { - this.data = await this.service.readPipeline({ Id: this.pipelineId }); -}); - -Then("the pipeline status should be {string}", function (status) { - this.assert.equal(this.data.Pipeline.Status, status); -});