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
249e6bcf
Commit
249e6bcf
authored
Jun 16, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts in specs
parent
460f60fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
43 deletions
+1
-43
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+0
-33
spec/requests/api/jobs_spec.rb
spec/requests/api/jobs_spec.rb
+1
-10
No files found.
spec/features/projects/jobs_spec.rb
View file @
249e6bcf
...
...
@@ -118,13 +118,6 @@ feature 'Jobs', :feature do
before
do
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
<<<<<<<
HEAD
end
it
'shows status name'
,
:js
do
expect
(
page
).
to
have_css
(
'.ci-status.ci-success'
,
text:
'passed'
)
=======
>>>>>>>
upstream
/
master
end
it
'shows commit`s data'
do
...
...
@@ -373,11 +366,7 @@ feature 'Jobs', :feature do
before
do
job
.
run!
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
<<<<<<<
HEAD
find
(
'.js-cancel-job'
).
click
()
=======
click_link
"Cancel"
>>>>>>>
upstream
/
master
end
it
'loads the page and shows all needed controls'
do
...
...
@@ -385,8 +374,6 @@ feature 'Jobs', :feature do
expect
(
page
).
to
have_content
'Retry'
end
end
<<<<<<<
HEAD
=======
context
"Job from other project"
do
before
do
...
...
@@ -397,7 +384,6 @@ feature 'Jobs', :feature do
it
{
expect
(
page
.
status_code
).
to
eq
(
404
)
}
end
>>>>>>>
upstream
/
master
end
describe
"POST /:project/jobs/:id/retry"
do
...
...
@@ -405,15 +391,10 @@ feature 'Jobs', :feature do
before
do
job
.
run!
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
<<<<<<<
HEAD
find
(
'.js-cancel-job'
).
click
()
find
(
'.js-retry-button'
).
trigger
(
'click'
)
=======
click_link
'Cancel'
page
.
within
(
'.build-header'
)
do
click_link
'Retry job'
end
>>>>>>>
upstream
/
master
end
it
'shows the right status and buttons'
,
:js
do
...
...
@@ -424,8 +405,6 @@ feature 'Jobs', :feature do
end
end
<<<<<<<
HEAD
=======
context
"Job from other project"
do
before
do
job
.
run!
...
...
@@ -437,7 +416,6 @@ feature 'Jobs', :feature do
it
{
expect
(
page
).
to
have_http_status
(
404
)
}
end
>>>>>>>
upstream
/
master
context
"Job that current user is not allowed to retry"
do
before
do
job
.
run!
...
...
@@ -511,16 +489,6 @@ feature 'Jobs', :feature do
Capybara
.
current_session
.
driver
.
headers
=
{
'X-Sendfile-Type'
=>
'X-Sendfile'
}
job
.
run!
<<<<<<<
HEAD
end
context
'when job has trace in file'
,
:js
do
=======
allow_any_instance_of
(
Gitlab
::
Ci
::
Trace
).
to
receive
(
:paths
)
.
and_return
(
paths
)
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
end
context
'when job has trace in file'
,
:js
do
...
...
@@ -528,7 +496,6 @@ feature 'Jobs', :feature do
[
existing_file
]
end
>>>>>>>
upstream
/
master
before
do
allow_any_instance_of
(
Gitlab
::
Ci
::
Trace
)
.
to
receive
(
:paths
)
...
...
spec/requests/api/jobs_spec.rb
View file @
249e6bcf
...
...
@@ -11,11 +11,7 @@ describe API::Jobs, :api do
ref:
project
.
default_branch
)
end
<<<<<<<
HEAD
let!
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
=======
let
(
:job
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
>>>>>>>
upstream
/
master
let
(
:user
)
{
create
(
:user
)
}
let
(
:api_user
)
{
user
}
...
...
@@ -30,10 +26,7 @@ describe API::Jobs, :api do
let
(
:query
)
{
Hash
.
new
}
before
do
<<<<<<<
HEAD
=======
job
>>>>>>>
upstream
/
master
get
api
(
"/projects/
#{
project
.
id
}
/jobs"
,
api_user
),
query
end
...
...
@@ -97,10 +90,7 @@ describe API::Jobs, :api do
let
(
:query
)
{
Hash
.
new
}
before
do
<<<<<<<
HEAD
=======
job
>>>>>>>
upstream
/
master
get
api
(
"/projects/
#{
project
.
id
}
/pipelines/
#{
pipeline
.
id
}
/jobs"
,
api_user
),
query
end
...
...
@@ -203,6 +193,7 @@ describe API::Jobs, :api do
describe
'GET /projects/:id/jobs/:job_id/artifacts'
do
before
do
stub_artifacts_object_storage
job
get
api
(
"/projects/
#{
project
.
id
}
/jobs/
#{
job
.
id
}
/artifacts"
,
api_user
)
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