Просмотр исходного кода

rm 1password detect test since we test it in cfg gen

Zach 9 месяцев назад
Родитель
Сommit
9609928c02
1 измененных файлов с 0 добавлено и 23 удалено
  1. 0 23
      detect/detect_test.go

+ 0 - 23
detect/detect_test.go

@@ -68,29 +68,6 @@ func TestDetect(t *testing.T) {
 	}{
 		// General
 		"valid allow comment (1)": {
-			cfgName: "simple",
-			fragment: Fragment{
-				Raw:      `Key: A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB`,
-				FilePath: "tmp.go",
-			},
-			expectedFindings: []report.Finding{
-				{
-					Description: "1Password Secret Key",
-					Secret:      "A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB",
-					Match:       "A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB",
-					Line:        "Key: A3-ASWWYB-798JRY-LJVD4-23DC2-86TVM-H43EB",
-					File:        "tmp.go",
-					RuleID:      "1password-secret-key",
-					Tags:        []string{"1Password"},
-					StartLine:   0,
-					EndLine:     0,
-					StartColumn: 6,
-					EndColumn:   45,
-					Entropy:     4.3153114,
-				},
-			},
-		},
-		{
 			cfgName: "simple",
 			fragment: Fragment{
 				Raw:      `awsToken := \"AKIALALEMEL33243OKIA\ // gitleaks:allow"`,