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
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-16 09:09:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-16 09:09:12 +0300
commit8dadd2eab8edd2354272e1d675171a789ad4233f (patch)
treefe9c325610893f9a26c23e7287a5ddc6041e1683 /spec
parentcf1d4237a4f226ba2deed26240544da0675a41e5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/models/ci/pipeline_spec.rb24
-rw-r--r--spec/services/ci/create_cross_project_pipeline_service_spec.rb28
2 files changed, 0 insertions, 52 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index 86c3628216e..cf1690df9ba 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -2932,30 +2932,6 @@ describe Ci::Pipeline, :mailer do
create(:ci_sources_pipeline, pipeline: pipeline, source_job: bridge)
end
- context 'when downstream pipeline status transitions to pending' do
- it 'updates bridge status ' do
- expect(pipeline).to receive(:update_bridge_status!).once
-
- pipeline.run!
- end
- end
-
- context 'when the status of downstream pipeline transitions to waiting_for_resource' do
- it 'updates bridge status ' do
- expect(pipeline).to receive(:update_bridge_status!).once
-
- pipeline.request_resource!
- end
- end
-
- context 'when the status of downstream pipeline transitions to failed' do
- it 'does not update bridge status ' do
- expect(pipeline).not_to receive(:update_bridge_status!)
-
- pipeline.drop!
- end
- end
-
describe '#bridge_triggered?' do
it 'is a pipeline triggered by a bridge' do
expect(pipeline).to be_bridge_triggered
diff --git a/spec/services/ci/create_cross_project_pipeline_service_spec.rb b/spec/services/ci/create_cross_project_pipeline_service_spec.rb
index 3625bc6ff41..51cf18f8d87 100644
--- a/spec/services/ci/create_cross_project_pipeline_service_spec.rb
+++ b/spec/services/ci/create_cross_project_pipeline_service_spec.rb
@@ -267,34 +267,6 @@ describe Ci::CreateCrossProjectPipelineService, '#execute' do
end
end
- context 'when downstream pipeline creation errors out' do
- let(:stub_config) { false }
-
- before do
- stub_ci_pipeline_yaml_file(YAML.dump(invalid: { yaml: 'error' }))
- end
-
- it 'creates only one new pipeline' do
- expect { service.execute(bridge) }
- .to change { Ci::Pipeline.count }.by(1)
- end
-
- it 'creates a new pipeline in the downstream project' do
- pipeline = service.execute(bridge)
-
- expect(pipeline.user).to eq bridge.user
- expect(pipeline.project).to eq downstream_project
- end
-
- it 'drops the bridge' do
- pipeline = service.execute(bridge)
-
- expect(pipeline.reload).to be_failed
- expect(bridge.reload).to be_failed
- expect(bridge.failure_reason).to eq('downstream_pipeline_creation_failed')
- end
- end
-
context 'when bridge job has YAML variables defined' do
before do
bridge.yaml_variables = [{ key: 'BRIDGE', value: 'var', public: true }]