Skip to content

Find, verify, and analyze leaked credentials

fixed vouchery detector integration tests (#3775)

Kashif Khan1f28c1d35c9c
diff --git a/pkg/detectors/vouchery/vouchery_integration_test.go b/pkg/detectors/vouchery/vouchery_integration_test.go
index bf0f87970..851f4f45b 100644
--- a/pkg/detectors/vouchery/vouchery_integration_test.go
+++ b/pkg/detectors/vouchery/vouchery_integration_test.go
@@ -48,9 +48,15 @@ func TestVouchery_FromChunk(t *testing.T) {
verify: true,
},
want: []detectors.Result{
+ {
+ DetectorType: detectorspb.DetectorType_Vouchery,
+ Verified: false,
+ RawV2: []byte(secret + "secret"),
+ },
{
DetectorType: detectorspb.DetectorType_Vouchery,
Verified: true,
+ RawV2: []byte(secret + subdomain),
},
},
wantErr: false,
@@ -67,6 +73,12 @@ func TestVouchery_FromChunk(t *testing.T) {
{
DetectorType: detectorspb.DetectorType_Vouchery,
Verified: false,
+ RawV2: []byte(inactiveSecret + "secret"),
+ },
+ {
+ DetectorType: detectorspb.DetectorType_Vouchery,
+ Verified: false,
+ RawV2: []byte(inactiveSecret + subdomain),
},
},
wantErr: false,