Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
update integration test excludes (#1169)
Dustin Decker585bd82d4770
diff --git a/pkg/sources/gcs/gcs_integration_test.go b/pkg/sources/gcs/gcs_integration_test.goindex 3f6145a14..357844791 100644--- a/pkg/sources/gcs/gcs_integration_test.go+++ b/pkg/sources/gcs/gcs_integration_test.go@@ -23,7 +23,7 @@ func TestChunks(t *testing.T) {source, conn := createTestSource(&sourcespb.GCS{ProjectId: testProjectID,Credential: &sourcespb.GCS_Adc{},- ExcludeBuckets: []string{perfTestBucketGlob},+ ExcludeBuckets: []string{perfTestBucketGlob, "public-trufflehog-test-bucket"},})err := source.Init(ctx, "test", 1, 1, true, conn, 8)diff --git a/pkg/sources/gcs/gcs_manager_test.go b/pkg/sources/gcs/gcs_manager_test.goindex fa4f1ea96..2fe316f82 100644--- a/pkg/sources/gcs/gcs_manager_test.go+++ b/pkg/sources/gcs/gcs_manager_test.go@@ -370,7 +370,7 @@ func TestGCSManagerListObjects(t *testing.T) {{name: "list objects, all buckets, with objects",projectID: testProjectID,- opts: []gcsManagerOption{withDefaultADC(ctx), withExcludeBuckets([]string{perfTestBucketGlob})},+ opts: []gcsManagerOption{withDefaultADC(ctx), withExcludeBuckets([]string{perfTestBucketGlob, "public-trufflehog-test-bucket"})},want: []object{{name: "aws1.txt",@@ -444,7 +444,8 @@ func TestGCSManagerListObjects(t *testing.T) {{name: "list objects, exclude buckets, with objects",projectID: testProjectID,- opts: []gcsManagerOption{withDefaultADC(ctx), withExcludeBuckets([]string{testBucket, testBucket2, perfTestBucketGlob})},+ opts: []gcsManagerOption{withDefaultADC(ctx),+ withExcludeBuckets([]string{testBucket, testBucket2, perfTestBucketGlob, "public-trufflehog-test-bucket"})},want: []object{{name: "moar.txt",@@ -472,7 +473,7 @@ func TestGCSManagerListObjects(t *testing.T) {opts: []gcsManagerOption{withDefaultADC(ctx),withExcludeObjects([]string{"aws1.txt", "moar2.txt"}),- withExcludeBuckets([]string{perfTestBucketGlob}),+ withExcludeBuckets([]string{perfTestBucketGlob, "public-trufflehog-test-bucket"}),},want: []object{{@@ -530,7 +531,7 @@ func TestGCSManagerListObjects(t *testing.T) {opts: []gcsManagerOption{withDefaultADC(ctx),withIncludeObjects([]string{"aws1.txt"}),- withExcludeBuckets([]string{perfTestBucketGlob}),+ withExcludeBuckets([]string{perfTestBucketGlob, "public-trufflehog-test-bucket"}),},want: []object{{@@ -552,7 +553,7 @@ func TestGCSManagerListObjects(t *testing.T) {withDefaultADC(ctx),withIncludeBuckets([]string{testBucket}),withExcludeObjects([]string{"aws1.txt"}),- withExcludeBuckets([]string{perfTestBucketGlob}),+ withExcludeBuckets([]string{perfTestBucketGlob, "public-trufflehog-test-bucket"}),},want: []object{{