Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Apr 8, 2024
1 parent f59e6c3 commit f0fc939
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
16 changes: 16 additions & 0 deletions test/services/foreman_cve_scanner/cve_report_scanner_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

module ForemanCveScanner
class CveReportScannerTest < ActiveSupport::TestCase
def setup
raw = {
'reporter' => 'cve_scan'
}
@scanner = ForemanCveScanner::CveReportScanner.new(raw)
end

test 'should identify as cve scan' do
assert_equasl @scanner.identify_origin, 'CveScanner'
end
end
end
11 changes: 0 additions & 11 deletions test/unit/foreman_cve_scanner_test.rb

This file was deleted.

0 comments on commit f0fc939

Please sign in to comment.