diff --git a/e2e/flags/.snapshots/TestReportFlagsShouldFail-format-jsonv2 b/e2e/flags/.snapshots/TestReportFlagsShouldFail-format-jsonv2 new file mode 100644 index 000000000..ad1c7b2d4 --- /dev/null +++ b/e2e/flags/.snapshots/TestReportFlagsShouldFail-format-jsonv2 @@ -0,0 +1,5 @@ +{"source":"Bearer","version":"dev","findings":[{"cwe_ids":["42"],"id":"test_ruby_logger","title":"Ruby logger","description":"Ruby logger","documentation_url":"","line_number":1,"full_filename":"e2e/flags/testdata/simple/main.rb","filename":"main.rb","data_type":{"category_uuid":"cef587dd-76db-430b-9e18-7b031e1a193b","name":"Email Address"},"category_groups":["PII","Personal Data"],"source":{"start":1,"end":1,"column":{"start":26,"end":36}},"sink":{"start":1,"end":1,"column":{"start":1,"end":37},"content":"logger.info(\"user info\", user.email)"},"parent_line_number":1,"snippet":"logger.info(\"user info\", user.email)","fingerprint":"fa5e03644738e4c17cbbd04a580506b1_0","old_fingerprint":"8240e1537878783bac845d1163c80555_0","code_extract":"logger.info(\"user info\", user.email)","severity":"critical"}]} + +-- +Analyzing codebase + diff --git a/e2e/flags/.snapshots/TestReportJsonV2Flags-format-jsonv2 b/e2e/flags/.snapshots/TestReportJsonV2Flags-format-jsonv2 deleted file mode 100644 index be21b2006..000000000 --- a/e2e/flags/.snapshots/TestReportJsonV2Flags-format-jsonv2 +++ /dev/null @@ -1,5 +0,0 @@ -{"source":"Bearer","version":"dev","findings":null} - --- -Analyzing codebase - diff --git a/e2e/flags/report_flags_test.go b/e2e/flags/report_flags_test.go index f47542547..1f1a7f9ec 100644 --- a/e2e/flags/report_flags_test.go +++ b/e2e/flags/report_flags_test.go @@ -29,14 +29,6 @@ func TestReportFlags(t *testing.T) { testhelper.RunTests(t, tests) } -func TestReportJsonV2Flags(t *testing.T) { - tests := []testhelper.TestCase{ - newScanTest("format-jsonv2", []string{"--format=jsonv2", "--external-rule-dir=e2e/testdata/rules"}), - } - - testhelper.RunTests(t, tests) -} - func TestReportFlagsShouldFail(t *testing.T) { t.Parallel() tests := []testhelper.TestCase{ @@ -44,6 +36,7 @@ func TestReportFlagsShouldFail(t *testing.T) { newScanTest("invalid-format-flag-security", []string{"--format=testing"}), newScanTest("invalid-format-flag-privacy", []string{"--report=privacy", "--format=testing"}), newScanTest("invalid-context-flag", []string{"--context=testing"}), + newScanTest("format-jsonv2", []string{"--format=jsonv2", "--external-rule-dir=e2e/testdata/rules"}), } for i := range tests {