diff options
| author | mo khan <mo.khan@gmail.com> | 2020-09-16 17:22:23 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-09-16 17:22:23 -0600 |
| commit | 2cfabe4424e5c13390f91c8708a43f57641b51f1 (patch) | |
| tree | 9d7bbe64deb1bc53ee7f0e0aca4f167f047174c1 /spec/integration | |
| parent | 20595e44b91a72dc39f72090bf9aed3b7db2a1bc (diff) | |
test: ensure spotbugs scanner matches sast schema
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/gemnasium_maven_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/spotbugs_spec.rb | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/integration/gemnasium_maven_spec.rb b/spec/integration/gemnasium_maven_spec.rb index 4372110..2b27221 100644 --- a/spec/integration/gemnasium_maven_spec.rb +++ b/spec/integration/gemnasium_maven_spec.rb @@ -8,6 +8,8 @@ RSpec.describe 'gemnasium-maven' do let(:project_fixture) { 'java/maven/custom-tls' } let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => X509.self_signed.to_pem, 'DS_JAVA_VERSION' => java_version } } + specify { expect(subject).to match_schema(:dependency_scanning) } + specify do files = subject.to_h['dependency_files'] expect(files.count).to be(1) diff --git a/spec/integration/spotbugs_spec.rb b/spec/integration/spotbugs_spec.rb index fa12203..6ff9395 100644 --- a/spec/integration/spotbugs_spec.rb +++ b/spec/integration/spotbugs_spec.rb @@ -1,8 +1,9 @@ # frozen_string_literal: true + RSpec.describe 'spotbugs' do let(:project_fixture) { 'java/maven/custom-tls' } let(:scanner) { 'spotbugs' } - specify { expect(subject).not_to be_nil } + specify { expect(subject).to match_schema(:sast) } specify { expect(subject['version']).to eql('3.0') } end |
