Skip to content

Commit

Permalink
Refactor TestNewCloud unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahQuinones committed Aug 6, 2024
1 parent ba28ab4 commit 3f984db
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions pkg/cloud/cloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,21 @@ func TestNewCloud(t *testing.T) {
batchingEnabled bool
}{
{
name: "success: with debug, userAgentExtra, and batching",
name: "success: with awsSdkDebugLog, userAgentExtra, and batchingEnabled",
region: "us-east-1",
awsSdkDebugLog: true,
userAgentExtra: "example_user_agent_extra",
batchingEnabled: true,
},
{
name: "success: with only debug, and userAgentExtra",
region: "us-east-1",
awsSdkDebugLog: true,
userAgentExtra: "example_user_agent_extra",
batchingEnabled: false,
name: "success: with only awsSdkDebugLog, and userAgentExtra",
region: "us-east-1",
awsSdkDebugLog: true,
userAgentExtra: "example_user_agent_extra",
},
{
name: "success: with only region",
region: "us-east-1",
awsSdkDebugLog: false,
userAgentExtra: "",
batchingEnabled: false,
name: "success: with only region",
region: "us-east-1",
},
}
for _, tc := range testCases {
Expand Down

0 comments on commit 3f984db

Please sign in to comment.