Commit a4d301ee authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add specs seeding jobs with auto-retries configured

parent 7fde7012
...@@ -320,5 +320,19 @@ describe Ci::CreatePipelineService, :services do ...@@ -320,5 +320,19 @@ describe Ci::CreatePipelineService, :services do
end.not_to change { Environment.count } end.not_to change { Environment.count }
end end
end end
context 'when builds with auto-retries are configured' do
before do
config = YAML.dump(rspec: { script: 'rspec', retry: 3 })
stub_ci_pipeline_yaml_file(config)
end
it 'correctly creates builds with auto-retry value configured' do
pipeline = execute_service
expect(pipeline).to be_persisted
expect(pipeline.builds.find_by(name: 'rspec').retries_max).to eq 3
end
end
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