提交 a4d301ee 编写于 作者: G Grzegorz Bizon

Add specs seeding jobs with auto-retries configured

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册