Skip to content

Find, verify, and analyze leaked credentials

fix test (#4350)

Dustin Decker98c36a4b2a01
diff --git a/pkg/sources/gcs/gcs_manager_test.go b/pkg/sources/gcs/gcs_manager_test.go
index 2cbd2b39c..4502dbd9c 100644
--- a/pkg/sources/gcs/gcs_manager_test.go
+++ b/pkg/sources/gcs/gcs_manager_test.go
@@ -71,7 +71,9 @@ func TestNewGcsManager(t *testing.T) {
projID: testProjectID,
opts: []gcsManagerOption{withJSONServiceAccount(ctx, []byte(`{
"type": "service_account",
- "project_id": "test-project"}`,
+ "project_id": "test-project",
+ "client_email": "[email protected]",
+ "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC7VJTUt9Us8cKB\nT1aFVMgL36LJVCGPGM7ke2dY67XR9/ln3tOXmNtHfZUGCLQRv3B0yTI/0mB4+DXu\n-----END PRIVATE KEY-----\n"}`,
))},
want: &gcsManager{projectID: testProjectID, concurrency: defaultConcurrency, maxObjectSize: defaultMaxObjectSize},
},