Skip to content

Commit

Permalink
remove sts regional endpoint integ test (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Dec 5, 2019
1 parent f136b3d commit efb01a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
10 changes: 0 additions & 10 deletions features/sts/step_definitions/sts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 1 addition & 6 deletions features/sts/sts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit efb01a9

Please sign in to comment.