From efb01a961e72859085f27ff8991d4ed8c4d75d94 Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Wed, 4 Dec 2019 17:24:10 -0800 Subject: [PATCH] remove sts regional endpoint integ test (#2997) --- features/sts/step_definitions/sts.js | 10 ---------- features/sts/sts.feature | 7 +------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/features/sts/step_definitions/sts.js b/features/sts/step_definitions/sts.js index 1feaa557c7..e0133b7ff1 100644 --- a/features/sts/step_definitions/sts.js +++ b/features/sts/step_definitions/sts.js @@ -8,16 +8,6 @@ module.exports = function() { this.request(null, 'getSessionToken', {DurationSeconds: parseInt(duration)}, callback, false); }); - this.Before('@sts-regional-endpoints', function(callback) { - this.service = new this.AWS.STS({region: 'us-east-1', stsRegionalEndpoints: 'regional'}); - callback(); - }); - - this.After('@sts-regional-endpoints', function(callback) { - this.service = new this.AWS.STS(); - callback(); - }) - this.Then(/^the result should contain an access key ID and secret access key$/, function(callback) { this.assert.compare(this.data.Credentials.AccessKeyId.length, '>', 0); this.assert.compare(this.data.Credentials.SecretAccessKey.length, '>', 0); diff --git a/features/sts/sts.feature b/features/sts/sts.feature index 2d0d562690..330b769298 100644 --- a/features/sts/sts.feature +++ b/features/sts/sts.feature @@ -11,9 +11,4 @@ Feature: AWS Security Token Service Scenario: Error handling Given I get an STS session token with a duration of 60 seconds - Then the error code should be "ValidationError" - - @sts-regional-endpoints - Scenario: Get a session token from regional endpoint - Given I get an STS session token with a duration of 900 seconds - Then the result should contain an access key ID and secret access key + Then the error code should be "ValidationError" \ No newline at end of file