Skip to content

Commit

Permalink
fixed vouchery detector integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifkhan0771 committed Dec 13, 2024
1 parent bf6f313 commit 11ce660
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/detectors/vouchery/vouchery_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 11ce660

Please sign in to comment.