Skip to content

Commit

Permalink
Migrate to AWS SDK v2 for rds subnet group, snapshot, proxy, paramete…
Browse files Browse the repository at this point in the history
…r group, global cluster, global cluster membership, rds-cluster
  • Loading branch information
james03160927 committed Dec 3, 2024
1 parent 219e830 commit d581b6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aws/resources/rds_global_cluster_membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/rds"
"github.com/aws/aws-sdk-go-v2/service/rds/types"
awsgo "github.com/aws/aws-sdk-go/aws"
"github.com/gruntwork-io/cloud-nuke/config"
"github.com/stretchr/testify/assert"
)
Expand Down Expand Up @@ -48,7 +47,7 @@ func TestRDSGlobalClusterMembershipGetAll(t *testing.T) {
// Testing empty config
clusters, err := dbCluster.getAll(context.Background(), config.Config{DBGlobalClusterMemberships: config.ResourceType{}})
assert.NoError(t, err)
assert.Contains(t, awsgo.StringValueSlice(clusters), strings.ToLower(testName))
assert.Contains(t, aws.ToStringSlice(clusters), strings.ToLower(testName))

// Testing db cluster exclusion
clusters, err = dbCluster.getAll(context.Background(), config.Config{
Expand Down

0 comments on commit d581b6c

Please sign in to comment.