Skip to content

Find, verify, and analyze leaked credentials

fixed authOmanagement detector integration test failure (#4013)

Kashif Khan06a0329ab470
diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken_integration_test.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken_integration_test.go
index 32a0ac059..dbbdf2708 100644
--- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken_integration_test.go
+++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken_integration_test.go
@@ -52,6 +52,7 @@ func TestAuth0ManagementApiToken_FromChunk(t *testing.T) {
want: []detectors.Result{
{
DetectorType: detectorspb.DetectorType_Auth0ManagementApiToken,
+ RawV2: []byte(managementApiToken + domain),
Redacted: domain,
Verified: true,
},
@@ -69,6 +70,7 @@ func TestAuth0ManagementApiToken_FromChunk(t *testing.T) {
want: []detectors.Result{
{
DetectorType: detectorspb.DetectorType_Auth0ManagementApiToken,
+ RawV2: []byte(inactiveManagementApiToken + domain),
Redacted: domain,
Verified: false,
},