Skip to content
Snippets Groups Projects
Commit b45a7cc0 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

tags test

parent 938d8900
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -387,7 +387,7 @@ describe Ci::CreatePipelineService do
 
context 'with environment' do
before do
config = YAML.dump(deploy: { environment: { name: "review/$CI_COMMIT_REF_NAME" }, script: 'ls' })
config = YAML.dump(deploy: { environment: { name: "review/$CI_COMMIT_REF_NAME" }, script: 'ls'})
stub_ci_pipeline_yaml_file(config)
end
 
Loading
Loading
@@ -397,6 +397,18 @@ describe Ci::CreatePipelineService do
expect(result).to be_persisted
expect(Environment.find_by(name: "review/master")).to be_present
end
it 'also has tags' do
config = YAML.dump(deploy: { environment: { name: "review/$CI_COMMIT_REF_NAME" }, script: 'ls', tags: ['hello'] })
stub_ci_pipeline_yaml_file(config)
result = execute_service
config = YAML.dump(deploy: { tags: ['hello'], script: ['ls'] })
stub_ci_pipeline_yaml_file(config)
result = execute_service
expect(Ci::Build.with_any_tags.count).to eq(2)
end
end
 
context 'with environment name including persisted variables' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment