From 11ce6608f8677995f8e9b3a182cb3c47eba80540 Mon Sep 17 00:00:00 2001 From: kashif khan Date: Fri, 13 Dec 2024 20:04:22 +0500 Subject: [PATCH] fixed vouchery detector integration tests --- pkg/detectors/vouchery/vouchery_integration_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkg/detectors/vouchery/vouchery_integration_test.go b/pkg/detectors/vouchery/vouchery_integration_test.go index bf0f879703dd..851f4f45b845 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,