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
24f0ddb0
Commit
24f0ddb0
authored
Mar 31, 2022
by
Mayra Cabrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes conflicts on file specs
parent
3be9635e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
spec/lib/gitlab/ci/config/external/file/base_spec.rb
spec/lib/gitlab/ci/config/external/file/base_spec.rb
+2
-2
spec/lib/gitlab/ci/config/external/file/project_spec.rb
spec/lib/gitlab/ci/config/external/file/project_spec.rb
+1
-6
spec/lib/gitlab/ci/config/external/file/template_spec.rb
spec/lib/gitlab/ci/config/external/file/template_spec.rb
+1
-1
No files found.
spec/lib/gitlab/ci/config/external/file/base_spec.rb
View file @
24f0ddb0
...
@@ -91,8 +91,8 @@ RSpec.describe Gitlab::Ci::Config::External::File::Base do
...
@@ -91,8 +91,8 @@ RSpec.describe Gitlab::Ci::Config::External::File::Base do
end
end
it
'is not a valid file'
do
it
'is not a valid file'
do
expect
(
subject
).
not_to
be_valid
expect
(
valid?
).
to
be_falsy
expect
(
subject
.
error_message
).
to
eq
(
'Included file `some/file/xxxxxxxxxxxxxxxx.yml` does not have valid YAML syntax!'
)
expect
(
file
.
error_message
).
to
eq
(
'Included file `some/file/xxxxxxxxxxxxxxxx.yml` does not have valid YAML syntax!'
)
end
end
end
end
end
end
...
...
spec/lib/gitlab/ci/config/external/file/project_spec.rb
View file @
24f0ddb0
...
@@ -121,7 +121,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Project do
...
@@ -121,7 +121,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Project do
end
end
it
'returns false'
do
it
'returns false'
do
expect
(
project_file
).
not_to
be_valid
expect
(
valid?
).
to
be_falsy
expect
(
project_file
.
error_message
).
to
include
(
"Project `
#{
project
.
full_path
}
` file `/xxxxxxxxxxx.yml` is empty!"
)
expect
(
project_file
.
error_message
).
to
include
(
"Project `
#{
project
.
full_path
}
` file `/xxxxxxxxxxx.yml` is empty!"
)
end
end
end
end
...
@@ -145,13 +145,8 @@ RSpec.describe Gitlab::Ci::Config::External::File::Project do
...
@@ -145,13 +145,8 @@ RSpec.describe Gitlab::Ci::Config::External::File::Project do
end
end
it
'returns false'
do
it
'returns false'
do
<<<<<<<
HEAD
expect
(
valid?
).
to
be_falsy
expect
(
valid?
).
to
be_falsy
expect
(
project_file
.
error_message
).
to
include
(
"Project `
#{
project
.
full_path
}
` file `/invalid-file.yml` does not exist!"
)
=======
expect
(
project_file
).
not_to
be_valid
expect
(
project_file
.
error_message
).
to
include
(
"Project `
#{
project
.
full_path
}
` file `/xxxxxxxxxxxxxxxxxxx.yml` does not exist!"
)
expect
(
project_file
.
error_message
).
to
include
(
"Project `
#{
project
.
full_path
}
` file `/xxxxxxxxxxxxxxxxxxx.yml` does not exist!"
)
>>>>>>>
security
/
master
end
end
end
end
...
...
spec/lib/gitlab/ci/config/external/file/template_spec.rb
View file @
24f0ddb0
...
@@ -62,7 +62,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Template do
...
@@ -62,7 +62,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Template do
let
(
:context_params
)
{
{
project:
project
,
sha:
'12345'
,
user:
user
,
variables:
variables
}
}
let
(
:context_params
)
{
{
project:
project
,
sha:
'12345'
,
user:
user
,
variables:
variables
}
}
it
'returns false'
do
it
'returns false'
do
expect
(
template_file
).
not_to
be_valid
expect
(
valid?
).
to
be_falsy
expect
(
template_file
.
error_message
).
to
include
(
'`xxxxxxxxxxxxxx.yml` is not a valid location!'
)
expect
(
template_file
.
error_message
).
to
include
(
'`xxxxxxxxxxxxxx.yml` is not a valid location!'
)
end
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