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
0975955a
Commit
0975955a
authored
Jul 30, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
472955cc
9ba87676
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
qa/qa/service/kubernetes_cluster.rb
qa/qa/service/kubernetes_cluster.rb
+1
-0
spec/support/helpers/graphql_helpers.rb
spec/support/helpers/graphql_helpers.rb
+6
-2
No files found.
qa/qa/service/kubernetes_cluster.rb
View file @
0975955a
...
...
@@ -29,6 +29,7 @@ module QA
#{
auth_options
}
--enable-basic-auth
--region
#{
Runtime
::
Env
.
gcloud_region
}
--disk-size 10GB
&& gcloud container clusters
get-credentials
--region
#{
Runtime
::
Env
.
gcloud_region
}
...
...
spec/support/helpers/graphql_helpers.rb
View file @
0975955a
...
...
@@ -3,6 +3,8 @@
module
GraphqlHelpers
MutationDefinition
=
Struct
.
new
(
:query
,
:variables
)
NoData
=
Class
.
new
(
StandardError
)
# makes an underscored string look like a fieldname
# "merge_request" => "mergeRequest"
def
self
.
fieldnamerize
(
underscored_field_name
)
...
...
@@ -158,8 +160,9 @@ module GraphqlHelpers
post_graphql
(
mutation
.
query
,
current_user:
current_user
,
variables:
mutation
.
variables
)
end
# Raises an error if no data is found
def
graphql_data
json_response
[
'data'
]
json_response
[
'data'
]
||
(
raise
NoData
,
graphql_errors
)
end
def
graphql_errors
...
...
@@ -173,8 +176,9 @@ module GraphqlHelpers
end
end
# Raises an error if no response is found
def
graphql_mutation_response
(
mutation_name
)
graphql_data
[
GraphqlHelpers
.
fieldnamerize
(
mutation_name
)]
graphql_data
.
fetch
(
GraphqlHelpers
.
fieldnamerize
(
mutation_name
))
end
def
nested_fields?
(
field
)
...
...
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