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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
939c9554
Commit
939c9554
authored
Jan 29, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for CI/CD bridge metadata attributes
parent
8f108fd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
ee/spec/models/ci/bridge_spec.rb
ee/spec/models/ci/bridge_spec.rb
+16
-0
No files found.
ee/spec/models/ci/bridge_spec.rb
View file @
939c9554
...
...
@@ -79,4 +79,20 @@ describe Ci::Bridge do
.
to
include
(
key:
'BRIDGE'
,
value:
'cross'
)
end
end
describe
'metadata support'
do
it
'reads YAML variables from metadata'
do
expect
(
bridge
.
yaml_variables
).
not_to
be_empty
expect
(
bridge
.
metadata
).
to
be_a
Ci
::
BuildMetadata
expect
(
bridge
.
read_attribute
(
:yaml_variables
)).
to
be_nil
expect
(
bridge
.
metadata
.
config_variables
).
to
be
bridge
.
yaml_variables
end
it
'reads options from metadata'
do
expect
(
bridge
.
options
).
not_to
be_empty
expect
(
bridge
.
metadata
).
to
be_a
Ci
::
BuildMetadata
expect
(
bridge
.
read_attribute
(
:options
)).
to
be_nil
expect
(
bridge
.
metadata
.
config_options
).
to
be
bridge
.
options
end
end
end
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