From f58ec34ba4942b4656dc9c2e211f65b9a7d45338 Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Wed, 13 Jan 2021 23:27:36 +0000 Subject: [PATCH] test(support): remove support cucumber test Support service is not turned on by default for all the AWS account. So remove it to make sure the integ test can be run on any account. There's no customization to support service either, so no much value with testing it. --- features/support/step_definitions/support.js | 36 -------------------- features/support/support.feature | 14 -------- 2 files changed, 50 deletions(-) delete mode 100644 features/support/step_definitions/support.js delete mode 100644 features/support/support.feature diff --git a/features/support/step_definitions/support.js b/features/support/step_definitions/support.js deleted file mode 100644 index fba4fdd3e348..000000000000 --- a/features/support/step_definitions/support.js +++ /dev/null @@ -1,36 +0,0 @@ -const { Support } = require("../../../clients/client-support"); -const { Before, Given, Then } = require("cucumber"); - -Before({ tags: "@support" }, function (scenario, callback) { - this.service = new Support({ region: "us-east-1" }); - callback(); -}); - -Given("I describe Support services", function (callback) { - this.request(null, "describeServices", {}, callback); -}); - -Then("the Supported services list should contain a service with code {string}", function (code, callback) { - this.assert.contains(this.data.services, function (svc) { - return svc.code == code; - }); - callback(); -}); - -Then("the Supported services list should contain a service with name {string}", function (name, callback) { - this.assert.contains(this.data.services, function (svc) { - return svc.name == name; - }); - callback(); -}); - -Given("I create a case with an invalid category", function (callback) { - const params = { - subject: "Subject", - serviceCode: "INVALID-CODE", - categoryCode: "INVALID-CATEGORY", - communicationBody: "Communication", - }; - - this.request(null, "createCase", params, callback, false); -}); diff --git a/features/support/support.feature b/features/support/support.feature deleted file mode 100644 index 350df99ecbb3..000000000000 --- a/features/support/support.feature +++ /dev/null @@ -1,14 +0,0 @@ -# language: en -@support -Feature: AWS Support - - I want to use AWS Support - - Scenario: Describe Services - Given I describe Support services - Then the request should be successful - And the value at "services" should be a list - - Scenario: Error handling - Given I create a case with an invalid category - Then the error code should be "ValidationException"