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
3f363786
Commit
3f363786
authored
May 04, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional Gitlab/Json autocorrects
New offenses since all prior offenses were corrected.
parent
ad3904e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/spec/support/shared_examples/requests/api/graphql/geo/registries_shared_examples.rb
...es/requests/api/graphql/geo/registries_shared_examples.rb
+1
-1
spec/requests/api/graphql/project/issues_spec.rb
spec/requests/api/graphql/project/issues_spec.rb
+2
-2
No files found.
ee/spec/support/shared_examples/requests/api/graphql/geo/registries_shared_examples.rb
View file @
3f363786
...
...
@@ -97,7 +97,7 @@ RSpec.shared_examples 'gets registries for' do |args|
# Get second page
post_graphql
(
query
(
"first: 2, after:
\"
#{
end_cursor
}
\"
"
),
current_user:
current_user
)
response_data
=
JSON
.
parse
(
response
.
body
).
dig
(
'data'
,
'geoNode'
,
GraphqlHelpers
.
fieldnamerize
(
field_name
),
'edges'
)
response_data
=
Gitlab
::
Json
.
parse
(
response
.
body
).
dig
(
'data'
,
'geoNode'
,
GraphqlHelpers
.
fieldnamerize
(
field_name
),
'edges'
)
first_result
=
response_data
.
first
[
'node'
]
second_result
=
response_data
.
second
[
'node'
]
...
...
spec/requests/api/graphql/project/issues_spec.rb
View file @
3f363786
...
...
@@ -358,7 +358,7 @@ describe 'getting an issue list for a project' do
cursored_query
=
query
(
"sort: LABEL_PRIORITY_ASC, after:
\"
#{
end_cursor
}
\"
"
)
post_graphql
(
cursored_query
,
current_user:
current_user
)
response_data
=
JSON
.
parse
(
response
.
body
)[
'data'
][
'project'
][
'issues'
][
'edges'
]
response_data
=
Gitlab
::
Json
.
parse
(
response
.
body
)[
'data'
][
'project'
][
'issues'
][
'edges'
]
expect
(
grab_iids
(
response_data
)).
to
eq
[
label_issue2
.
iid
,
label_issue4
.
iid
]
end
...
...
@@ -380,7 +380,7 @@ describe 'getting an issue list for a project' do
cursored_query
=
query
(
"sort: LABEL_PRIORITY_DESC, after:
\"
#{
end_cursor
}
\"
"
)
post_graphql
(
cursored_query
,
current_user:
current_user
)
response_data
=
JSON
.
parse
(
response
.
body
)[
'data'
][
'project'
][
'issues'
][
'edges'
]
response_data
=
Gitlab
::
Json
.
parse
(
response
.
body
)[
'data'
][
'project'
][
'issues'
][
'edges'
]
expect
(
grab_iids
(
response_data
)).
to
eq
[
label_issue1
.
iid
,
label_issue4
.
iid
]
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