From 3f984dbf5dd0352bb389efe26139a43c3bda3184 Mon Sep 17 00:00:00 2001 From: elijah quinones Date: Tue, 6 Aug 2024 18:40:29 +0000 Subject: [PATCH] Refactor TestNewCloud unit tests --- pkg/cloud/cloud_test.go | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkg/cloud/cloud_test.go b/pkg/cloud/cloud_test.go index c836788430..f7acef7b61 100644 --- a/pkg/cloud/cloud_test.go +++ b/pkg/cloud/cloud_test.go @@ -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 {