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
8a36ec52
Commit
8a36ec52
authored
Aug 18, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed spec file to be consistent
parent
eb7cd131
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
45 deletions
+0
-45
spec/requests/api/graphql/mutations/ci/cancel_pipeline_spec.rb
...requests/api/graphql/mutations/ci/cancel_pipeline_spec.rb
+0
-45
spec/requests/api/graphql/mutations/ci/pipeline_retry_spec.rb
.../requests/api/graphql/mutations/ci/pipeline_retry_spec.rb
+0
-0
No files found.
spec/requests/api/graphql/mutations/ci/cancel_pipeline_spec.rb
deleted
100644 → 0
View file @
eb7cd131
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
'PipelineCancel'
do
include
GraphqlHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
)
}
let
(
:mutation
)
do
variables
=
{
id:
pipeline
.
id
}
graphql_mutation
(
:pipeline_retry
,
variables
,
<<-
QL
errors
pipeline {
id
}
QL
)
end
let
(
:mutation_response
)
{
graphql_mutation_response
(
:pipeline_cancel
)
}
before
do
project
.
add_maintainer
(
user
)
end
it
'returns an error if the user is not allowed to retry the pipeline'
do
post_graphql_mutation
(
mutation
,
current_user:
create
(
:user
))
expect
(
graphql_errors
).
not_to
be_empty
end
it
'retries a pipeline'
do
post_graphql_mutation
(
mutation
,
current_user:
user
)
expect
(
response
).
to
have_gitlab_http_status
(
:success
)
expect
(
mutation_response
[
'pipeline'
][
'id'
]).
to
include
(
pipeline
.
id
.
to_s
)
end
end
spec/requests/api/graphql/mutations/ci/
retry_pipeline
_spec.rb
→
spec/requests/api/graphql/mutations/ci/
pipeline_retry
_spec.rb
View file @
8a36ec52
File moved
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