Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/suites/integration/access_log_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ var _ = Describe("Access Log Policy", Ordered, func() {
)

BeforeAll(func() {
SetDefaultEventuallyTimeout(5 * time.Minute)
SetDefaultEventuallyPollingInterval(10 * time.Second)

awsResourceName = awsResourceNamePrefix + utils.RandomAlphaString(10)

tags := testFramework.NewTestTags(testSuite)
Expand Down
2 changes: 1 addition & 1 deletion test/suites/integration/grpcroute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var _ = Describe("GRPCRoute test", Ordered, func() {
g.Expect(len(rules)).To(Equal(1))
g.Expect(*rules[0].Match.HttpMatch.Method).To(Equal("POST"))
g.Expect(*rules[0].Match.HttpMatch.PathMatch.Match.Prefix).To(Equal("/"))
}).Within(30 * time.Second).Should(Succeed())
}).Within(1 * time.Minute).Should(Succeed())
})

Context("Traffic test: client pod (grpcurl-runner) can send request to all services/methods of grpcBinService", func() {
Expand Down
17 changes: 15 additions & 2 deletions test/suites/integration/ram_share_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package integration

import (
"fmt"
awsClient "github.com/aws/aws-sdk-go/aws/client"
"os"
"strings"
"time"
Expand Down Expand Up @@ -50,7 +51,18 @@ 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,
}

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),
Expand All @@ -63,7 +75,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,
Expand Down