Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/ci/config/entry/processable_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/config/entry/processable_spec.rb71
1 files changed, 0 insertions, 71 deletions
diff --git a/spec/lib/gitlab/ci/config/entry/processable_spec.rb b/spec/lib/gitlab/ci/config/entry/processable_spec.rb
index f98a6a869d6..b872f6644a2 100644
--- a/spec/lib/gitlab/ci/config/entry/processable_spec.rb
+++ b/spec/lib/gitlab/ci/config/entry/processable_spec.rb
@@ -362,76 +362,6 @@ RSpec.describe Gitlab::Ci::Config::Entry::Processable do
end
context 'with inheritance' do
- context 'of variables' do
- let(:config) do
- { variables: { A: 'job', B: 'job' } }
- end
-
- before do
- entry.compose!(deps)
- end
-
- context 'with only job variables' do
- it 'does return defined variables' do
- expect(entry.value).to include(
- variables: { 'A' => 'job', 'B' => 'job' },
- job_variables: { 'A' => 'job', 'B' => 'job' },
- root_variables_inheritance: true
- )
- end
- end
-
- context 'when root yaml variables are used' do
- let(:variables) do
- Gitlab::Ci::Config::Entry::Variables.new(
- { A: 'root', C: 'root', D: 'root' }
- ).value
- end
-
- it 'does return job and root variables' do
- expect(entry.value).to include(
- variables: { 'A' => 'job', 'B' => 'job', 'C' => 'root', 'D' => 'root' },
- job_variables: { 'A' => 'job', 'B' => 'job' },
- root_variables_inheritance: true
- )
- end
-
- context 'when inherit of defaults is disabled' do
- let(:config) do
- {
- variables: { A: 'job', B: 'job' },
- inherit: { variables: false }
- }
- end
-
- it 'does return job and root variables' do
- expect(entry.value).to include(
- variables: { 'A' => 'job', 'B' => 'job' },
- job_variables: { 'A' => 'job', 'B' => 'job' },
- root_variables_inheritance: false
- )
- end
- end
-
- context 'when inherit of only specific variable is enabled' do
- let(:config) do
- {
- variables: { A: 'job', B: 'job' },
- inherit: { variables: ['D'] }
- }
- end
-
- it 'does return job and root variables' do
- expect(entry.value).to include(
- variables: { 'A' => 'job', 'B' => 'job', 'D' => 'root' },
- job_variables: { 'A' => 'job', 'B' => 'job' },
- root_variables_inheritance: ['D']
- )
- end
- end
- end
- end
-
context 'of default:tags' do
using RSpec::Parameterized::TableSyntax
@@ -493,7 +423,6 @@ RSpec.describe Gitlab::Ci::Config::Entry::Processable do
name: :rspec,
stage: 'test',
only: { refs: %w[branches tags] },
- variables: {},
job_variables: {},
root_variables_inheritance: true
)