- Notifications
You must be signed in to change notification settings - Fork 70
Correct Failing E2E Tests #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
7969118 94b4bec 6ccec1b 678df9a e80b6fd 0e11187 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -2,6 +2,7 @@ package integration | |
| | ||
| import ( | ||
| "fmt" | ||
| awsClient "github.com/aws/aws-sdk-go/aws/client" | ||
| "os" | ||
| "strings" | ||
| "time" | ||
| | @@ -50,7 +51,19 @@ var _ = Describe("RAM Share", Ordered, func() { | |
| BeforeAll(func() { | ||
| secondaryTestRoleArn = os.Getenv("SECONDARY_ACCOUNT_TEST_ROLE_ARN") | ||
| | ||
| primarySess := session.Must(session.NewSession(&aws.Config{Region: aws.String(config.Region)})) | ||
| retryer := awsClient.DefaultRetryer{ | ||
| MinThrottleDelay: 1 * time.Second, | ||
| MinRetryDelay: 1 * time.Second, | ||
| MaxThrottleDelay: 5 * time.Second, | ||
| MaxRetryDelay: 5 * time.Second, | ||
| NumMaxRetries: 3, | ||
| ||
| } | ||
| | ||
| primarySess := session.Must(session.NewSession(&aws.Config{ | ||
| Region: aws.String(config.Region), | ||
| Retryer: retryer, | ||
| })) | ||
| | ||
| stsClient := sts.New(primarySess) | ||
| assumeRoleInput := &sts.AssumeRoleInput{ | ||
| RoleArn: aws.String(secondaryTestRoleArn), | ||
| | @@ -63,7 +76,8 @@ var _ = Describe("RAM Share", Ordered, func() { | |
| creds := assumeRoleResult.Credentials | ||
| | ||
| secondarySess := session.Must(session.NewSession(&aws.Config{ | ||
| Region: aws.String(config.Region), | ||
| Region: aws.String(config.Region), | ||
| Retryer: retryer, | ||
| Credentials: credentials.NewStaticCredentials( | ||
| *creds.AccessKeyId, | ||
| *creds.SecretAccessKey, | ||
| | ||
Uh oh!
There was an error while loading. Please reload this page.