Skip to content

Commit 40c3866

Browse files
authored
Add SecretsManager smoke integration tests (#180)
Adds integration smoke tests for SecretsManager service. V2 port of: aws/aws-sdk-go#1948
1 parent 5f71696 commit 40c3866

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// +build integration
2+
3+
//Package secretsmanager provides gucumber integration tests support.
4+
package secretsmanager
5+
6+
import (
7+
"github.com/aws/aws-sdk-go-v2/internal/awstesting/integration"
8+
_ "github.com/aws/aws-sdk-go-v2/internal/awstesting/integration/smoke"
9+
"github.com/aws/aws-sdk-go-v2/service/secretsmanager"
10+
"github.com/gucumber/gucumber"
11+
)
12+
13+
func init() {
14+
gucumber.Before("@secretsmanager", func() {
15+
gucumber.World["client"] = secretsmanager.New(integration.Config())
16+
})
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# language: en
2+
@smoke @secretsmanager
3+
Feature: Amazon SecretsManager
4+
5+
Scenario: Making a request
6+
When I call the "ListSecrets" API
7+
Then the request should be successful
8+
9+
Scenario: Handling errors
10+
When I attempt to call the "DescribeSecret" API with:
11+
| SecretId | fake-secret-id |
12+
Then I expect the response error code to be "ResourceNotFoundException"
13+

0 commit comments

Comments
 (0)