diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-17 00:09:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-17 00:09:08 +0300 |
commit | fd11748fe8dcb109a1bd0650963383d843ea7bd5 (patch) | |
tree | 82697d86388ad9c6d4455522a21c81906f1875b6 /spec/services/ci/create_downstream_pipeline_service_spec.rb | |
parent | b58ab6c33c0369e402109d5388d4f6f73b7eb2bb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/ci/create_downstream_pipeline_service_spec.rb')
-rw-r--r-- | spec/services/ci/create_downstream_pipeline_service_spec.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/services/ci/create_downstream_pipeline_service_spec.rb b/spec/services/ci/create_downstream_pipeline_service_spec.rb index 03cea4074bf..0cc380439a7 100644 --- a/spec/services/ci/create_downstream_pipeline_service_spec.rb +++ b/spec/services/ci/create_downstream_pipeline_service_spec.rb @@ -581,40 +581,5 @@ RSpec.describe Ci::CreateDownstreamPipelineService, '#execute' do ) end end - - context 'when downstream pipeline has workflow rule' do - before do - stub_ci_pipeline_yaml_file(config) - end - - let(:config) do - <<-EOY - workflow: - rules: - - if: $my_var - - regular-job: - script: 'echo Hello, World!' - EOY - end - - context 'when passing the required variable' do - before do - bridge.yaml_variables = [{ key: 'my_var', value: 'var', public: true }] - end - - it 'creates the pipeline' do - expect { service.execute(bridge) }.to change(downstream_project.ci_pipelines, :count).by(1) - - expect(bridge.reload).to be_success - end - end - - context 'when not passing the required variable' do - it 'does not create the pipeline' do - expect { service.execute(bridge) }.not_to change(downstream_project.ci_pipelines, :count) - end - end - end end end |