Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
[Fix] Fixed Okta Detector Integration Test Case input (#4053)
Nabeel Alamb73fa5f8183d
diff --git a/pkg/detectors/okta/okta_integration_test.go b/pkg/detectors/okta/okta_integration_test.goindex 3c60dd198..75b7ee0d9 100644--- a/pkg/detectors/okta/okta_integration_test.go+++ b/pkg/detectors/okta/okta_integration_test.go@@ -88,11 +88,11 @@ func TestOkta_FromChunk(t *testing.T) {wantVerificationErr: false,},{- name: "found, verified but unexpected api surface",+ name: "found verifiable secret, verification failed due to unexpected API response",s: Scanner{client: common.ConstantResponseHttpClient(404, "")},args: args{ctx: context.Background(),- data: []byte(fmt.Sprintf("You can find a okta secret %s within oktaDomain %s", secretInactive, domain)),+ data: []byte(fmt.Sprintf("You can find a okta secret %s within oktaDomain %s", secret, domain)),verify: true,},want: []detectors.Result{