Skip to content

Commit 64e7977

Browse files
committed
Revert "dummy credentials in mocked unit tests"
This reverts commit 9d778df.
1 parent 4ed5942 commit 64e7977

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

internal/testutil/unit/http_mocker.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ func IsDataUpdate() bool {
5555

5656
func CaptureOrMockTestCaseAndRun(t *testing.T, config MockHTTPDataConfig, testCase *resource.TestCase) { //nolint: gocritic // Want each test run to have its own config (hugeParam: config is heavy (112 bytes); consider passing it by pointer)
5757
t.Helper()
58-
if acc.InUnitTest() { // Dummy credentials for mocked unit tests
59-
t.Setenv("MONGODB_ATLAS_PUBLIC_KEY", "dummy")
60-
t.Setenv("MONGODB_ATLAS_PRIVATE_KEY", "dummy")
61-
t.Setenv("MONGODB_ATLAS_CLIENT_ID", "")
62-
t.Setenv("MONGODB_ATLAS_CLIENT_SECRET", "")
63-
}
6458
var err error
6559
noneSet := !IsCapture() && !IsReplay()
6660
bothSet := IsCapture() && IsReplay()

0 commit comments

Comments
 (0)