Skip to content

Commit

Permalink
bulker: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Nov 30, 2024
1 parent e81d5c1 commit 8963609
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions bulkerlib/implementations/sql/redshift_driver/dsn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ func TestRedshiftDataConfig__String(t *testing.T) {
func TestRedshiftConfigSanitize(t *testing.T) {
t.Run("cluster config", func(t *testing.T) {
c := RedshiftConfig{
ClusterIdentifier: "default",
WorkgroupName: "default",
Username: "admin",
AuthenticationMethod: "iam",
Serverless: false,
ClusterIdentifier: "default",
WorkgroupName: "default",
Username: "admin",
}

c.Sanitize()
Expand All @@ -145,8 +147,10 @@ func TestRedshiftConfigSanitize(t *testing.T) {

t.Run("workgroup config", func(t *testing.T) {
c := RedshiftConfig{
WorkgroupName: "default",
Username: "admin",
AuthenticationMethod: "iam",
Serverless: true,
WorkgroupName: "default",
Username: "admin",
}

c.Sanitize()
Expand Down

0 comments on commit 8963609

Please sign in to comment.