Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b45a7cc0
Commit
b45a7cc0
authored
Nov 12, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tags test
parent
938d8900
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
spec/services/ci/create_pipeline_service_spec.rb
spec/services/ci/create_pipeline_service_spec.rb
+13
-1
No files found.
spec/services/ci/create_pipeline_service_spec.rb
View file @
b45a7cc0
...
@@ -387,7 +387,7 @@ describe Ci::CreatePipelineService do
...
@@ -387,7 +387,7 @@ describe Ci::CreatePipelineService do
context
'with environment'
do
context
'with environment'
do
before
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
)
stub_ci_pipeline_yaml_file
(
config
)
end
end
...
@@ -397,6 +397,18 @@ describe Ci::CreatePipelineService do
...
@@ -397,6 +397,18 @@ describe Ci::CreatePipelineService do
expect
(
result
).
to
be_persisted
expect
(
result
).
to
be_persisted
expect
(
Environment
.
find_by
(
name:
"review/master"
)).
to
be_present
expect
(
Environment
.
find_by
(
name:
"review/master"
)).
to
be_present
end
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
end
context
'with environment name including persisted variables'
do
context
'with environment name including persisted variables'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment