Commit 9b27f49d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Adjust pipeline retry specs to use manual statuses

parent d87132b4
...@@ -100,7 +100,7 @@ describe Ci::RetryPipelineService, '#execute', :services do ...@@ -100,7 +100,7 @@ describe Ci::RetryPipelineService, '#execute', :services do
service.execute(pipeline) service.execute(pipeline)
expect(build('rspec 1')).to be_pending expect(build('rspec 1')).to be_pending
expect(build('staging')).to be_skipped expect(build('staging')).to be_manual
expect(build('rspec 2')).to be_created expect(build('rspec 2')).to be_created
expect(pipeline.reload).to be_running expect(pipeline.reload).to be_running
end end
...@@ -117,7 +117,7 @@ describe Ci::RetryPipelineService, '#execute', :services do ...@@ -117,7 +117,7 @@ describe Ci::RetryPipelineService, '#execute', :services do
service.execute(pipeline) service.execute(pipeline)
expect(build('rspec 1')).to be_pending expect(build('rspec 1')).to be_pending
expect(build('rspec 2')).to be_skipped expect(build('rspec 2')).to be_manual
expect(build('staging')).to be_created expect(build('staging')).to be_created
expect(pipeline.reload).to be_running expect(pipeline.reload).to be_running
end end
...@@ -144,11 +144,11 @@ describe Ci::RetryPipelineService, '#execute', :services do ...@@ -144,11 +144,11 @@ describe Ci::RetryPipelineService, '#execute', :services do
create_build('staging', :created, 0, when: :manual, allow_failure: true) create_build('staging', :created, 0, when: :manual, allow_failure: true)
end end
it 'retries canceled job and skipps the manual action' do it 'retries canceled job and processes the manual action' do
service.execute(pipeline) service.execute(pipeline)
expect(build('rspec 1')).to be_pending expect(build('rspec 1')).to be_pending
expect(build('staging')).to be_skipped expect(build('staging')).to be_manual
expect(pipeline.reload).to be_running expect(pipeline.reload).to be_running
end end
end end
......
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