Commit 4099d5b3 authored by Kamil Trzciński's avatar Kamil Trzciński

Improve specs

parent 19f2d1bb
......@@ -29,49 +29,10 @@ describe Ci::Pipeline do
before do
create(:ci_build, :legacy_sast, pipeline: pipeline_1)
create(
:ci_build,
:success,
:artifacts,
name: 'dependency_scanning',
pipeline: pipeline_2,
options: {
artifacts: {
paths: [Ci::JobArtifact::DEFAULT_FILE_NAMES[:dependency_scanning]]
}
}
)
create(
:ci_build,
:success,
:artifacts,
name: 'container_scanning',
pipeline: pipeline_3,
options: {
artifacts: {
paths: [Ci::JobArtifact::DEFAULT_FILE_NAMES[:container_scanning]]
}
}
)
create(
:ci_build,
:success,
:artifacts,
name: 'dast',
pipeline: pipeline_4,
options: {
artifacts: {
paths: [Ci::JobArtifact::DEFAULT_FILE_NAMES[:dast]]
}
}
)
create(
:ci_build,
:success,
:artifacts,
name: 'foobar',
pipeline: pipeline_5
)
create(:ci_build, :legacy_dependency_scanning, pipeline: pipeline_2)
create(:ci_build, :legacy_container_scanning, pipeline: pipeline_3)
create(:ci_build, :legacy_dast, pipeline: pipeline_4)
create(:ci_build, :success, :artifacts, name: 'foobar', pipeline: pipeline_5)
end
it "returns pipeline with security reports" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment