Commit 19a8a50e authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '37278-DS_DISABLE_DIND-true' into 'master'

Make DS_DISABLE_DIND true

See merge request gitlab-org/gitlab!31588
parents 147032ba 16eb9be5
---
title: 'Disable Docker-in-Docker for Dependency Scanning by default'
merge_request: 31588
author:
type: changed
...@@ -33,7 +33,11 @@ describe 'Dependency-Scanning.gitlab-ci.yml' do ...@@ -33,7 +33,11 @@ describe 'Dependency-Scanning.gitlab-ci.yml' do
allow(License).to receive(:current).and_return(license) allow(License).to receive(:current).and_return(license)
end end
context 'by default' do context 'when DS_DISABLE_DIND=false' do
before do
create(:ci_variable, project: project, key: 'DS_DISABLE_DIND', value: 'false')
end
it 'includes orchestrator job' do it 'includes orchestrator job' do
expect(build_names).to match_array(%w[dependency_scanning]) expect(build_names).to match_array(%w[dependency_scanning])
end end
...@@ -49,11 +53,7 @@ describe 'Dependency-Scanning.gitlab-ci.yml' do ...@@ -49,11 +53,7 @@ describe 'Dependency-Scanning.gitlab-ci.yml' do
end end
end end
context 'when DS_DISABLE_DIND=true' do context 'by default' do
before do
create(:ci_variable, project: project, key: 'DS_DISABLE_DIND', value: 'true')
end
describe 'language detection' do describe 'language detection' do
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
......
...@@ -14,7 +14,7 @@ variables: ...@@ -14,7 +14,7 @@ variables:
DS_DEFAULT_ANALYZERS: "bundler-audit, retire.js, gemnasium, gemnasium-maven, gemnasium-python" DS_DEFAULT_ANALYZERS: "bundler-audit, retire.js, gemnasium, gemnasium-maven, gemnasium-python"
DS_MAJOR_VERSION: 2 DS_MAJOR_VERSION: 2
DS_DISABLE_DIND: "false" DS_DISABLE_DIND: "true"
dependency_scanning: dependency_scanning:
stage: test stage: test
......
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