mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
examples and more tests
This commit is contained in:
1 parent
c8f9560aa3
commit
275232f8c8
8 files changed
+102
-1
No files matched your search
+9
-1
@@ -153,6 +153,15 @@ func TestAudit(t *testing.T) {
|
||||
},
|
||||
wantPath: "../test_data/test_local_repo_four_alt_config_entropy.json",
|
||||
},
|
||||
{
|
||||
description: "test local repo four entropy alternative config",
|
||||
opts: options.Options{
|
||||
RepoPath: "../test_data/test_repos/test_repo_1",
|
||||
Report: "../test_data/test_regex_whitelist.json.got",
|
||||
Config: "../test_data/test_configs/aws_key_aws_whitelisted.toml",
|
||||
},
|
||||
wantEmpty: true,
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
@@ -178,7 +187,6 @@ func TestAudit(t *testing.T) {
|
||||
}
|
||||
continue
|
||||
}
|
||||
// time.Sleep(time.Millisecond * 50)
|
||||
|
||||
err = m.Report()
|
||||
|
||||
|
||||
Reference in new issue
Block a user