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
00bf6a60
Commit
00bf6a60
authored
May 19, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass GraphQL query as a block to graphql_mutation
parent
873d6ecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
spec/requests/api/graphql/mutations/alert_management/alerts/update_alert_status_spec.rb
...tions/alert_management/alerts/update_alert_status_spec.rb
+10
-10
No files found.
spec/requests/api/graphql/mutations/alert_management/alerts/update_alert_status_spec.rb
View file @
00bf6a60
...
...
@@ -15,16 +15,16 @@ describe 'Setting the status of an alert' do
project_path:
project
.
full_path
,
iid:
alert
.
iid
.
to_s
}
graphql_mutation
(
:update_alert_status
,
variables
.
merge
(
input
)
,
<<~
QL
clientMutationId
errors
alert {
iid
status
}
QL
)
graphql_mutation
(
:update_alert_status
,
variables
.
merge
(
input
)
)
do
<<~
QL
clientMutationId
errors
alert {
iid
status
}
QL
end
end
let
(
:mutation_response
)
{
graphql_mutation_response
(
:update_alert_status
)
}
...
...
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