Skip to content

Commit dbeee1c

Browse files
committed
Exclude RawV2 values from integration test of mux detector.
1 parent b006ece commit dbeee1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_integration_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func TestMattermostPersonalToken_FromChunk(t *testing.T) {
5151
{
5252
DetectorType: detectorspb.DetectorType_MattermostPersonalToken,
5353
Verified: true,
54+
RawV2: []byte(secret + server),
5455
},
5556
},
5657
wantErr: false,
@@ -60,13 +61,14 @@ func TestMattermostPersonalToken_FromChunk(t *testing.T) {
6061
s: Scanner{},
6162
args: args{
6263
ctx: context.Background(),
63-
data: []byte(fmt.Sprintf("You can find a mattermost secret %s within mattermost server %s but not valid", inactiveSecret, "test323561.cloud.mattermost.com")), // the secret would satisfy the regex but not pass validation
64+
data: []byte(fmt.Sprintf("You can find a mattermost secret %s within mattermost server %s but not valid", inactiveSecret, server)), // the secret would satisfy the regex but not pass validation
6465
verify: true,
6566
},
6667
want: []detectors.Result{
6768
{
6869
DetectorType: detectorspb.DetectorType_MattermostPersonalToken,
6970
Verified: false,
71+
RawV2: []byte(inactiveSecret + server),
7072
},
7173
},
7274
wantErr: false,

0 commit comments

Comments
 (0)