summaryrefslogtreecommitdiff
path: root/spec/integration/klar_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/klar_spec.rb')
-rw-r--r--spec/integration/klar_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/integration/klar_spec.rb b/spec/integration/klar_spec.rb
index 13ebb94..f834b30 100644
--- a/spec/integration/klar_spec.rb
+++ b/spec/integration/klar_spec.rb
@@ -2,8 +2,13 @@
RSpec.describe 'klar' do
let(:scanner) { 'klar' }
- let(:project_fixture) { 'docker/compose' }
- let(:env) { { DOCKER_IMAGE: 'mokhan/minbox:latest' } }
- specify { expect(subject).to match_schema(:container_scanning) }
+ context "when scanning a vulnerable webgoat image" do
+ let(:project_fixture) { 'docker/alpine-3.10' }
+ let(:env) { { DOCKER_IMAGE: 'registry.gitlab.com/gitlab-org/security-products/dast/webgoat-8.0@sha256:bc09fe2e0721dfaeee79364115aeedf2174cce0947b9ae5fe7c33312ee019a4e' } }
+
+ pending { expect(subject).to match_schema(:container_scanning) }
+ specify { expect(subject['vulnerabilities'].length).to be > 1 }
+ specify { expect(subject['vulnerabilities']).to all(include('category' => 'container_scanning')) }
+ end
end