Skip to content

Commit efb01a9

Browse files
authored
remove sts regional endpoint integ test (#2997)
1 parent f136b3d commit efb01a9

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

features/sts/step_definitions/sts.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ module.exports = function() {
88
this.request(null, 'getSessionToken', {DurationSeconds: parseInt(duration)}, callback, false);
99
});
1010

11-
this.Before('@sts-regional-endpoints', function(callback) {
12-
this.service = new this.AWS.STS({region: 'us-east-1', stsRegionalEndpoints: 'regional'});
13-
callback();
14-
});
15-
16-
this.After('@sts-regional-endpoints', function(callback) {
17-
this.service = new this.AWS.STS();
18-
callback();
19-
})
20-
2111
this.Then(/^the result should contain an access key ID and secret access key$/, function(callback) {
2212
this.assert.compare(this.data.Credentials.AccessKeyId.length, '>', 0);
2313
this.assert.compare(this.data.Credentials.SecretAccessKey.length, '>', 0);

features/sts/sts.feature

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,4 @@ Feature: AWS Security Token Service
1111

1212
Scenario: Error handling
1313
Given I get an STS session token with a duration of 60 seconds
14-
Then the error code should be "ValidationError"
15-
16-
@sts-regional-endpoints
17-
Scenario: Get a session token from regional endpoint
18-
Given I get an STS session token with a duration of 900 seconds
19-
Then the result should contain an access key ID and secret access key
14+
Then the error code should be "ValidationError"

0 commit comments

Comments
 (0)