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
9ff0dafa
Commit
9ff0dafa
authored
Jan 19, 2022
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify runner global IDs in tests
parent
95f81a81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/requests/api/graphql/ci/runner_spec.rb
spec/requests/api/graphql/ci/runner_spec.rb
+5
-5
No files found.
spec/requests/api/graphql/ci/runner_spec.rb
View file @
9ff0dafa
...
...
@@ -55,7 +55,7 @@ RSpec.describe 'Query.runner(id)' do
runner
=
get_runner
(
runner_id
)
expect
(
runner_data
).
to
match
a_hash_including
(
'id'
=>
"gid://gitlab/Ci::Runner/
#{
runner
.
id
}
"
,
'id'
=>
runner
.
to_global_id
.
to_s
,
'description'
=>
runner
.
description
,
'createdAt'
=>
runner
.
created_at
&
.
iso8601
,
'contactedAt'
=>
runner
.
contacted_at
&
.
iso8601
,
...
...
@@ -103,7 +103,7 @@ RSpec.describe 'Query.runner(id)' do
runner
=
get_runner
(
runner_id
)
expect
(
runner_data
).
to
match
a_hash_including
(
'id'
=>
"gid://gitlab/Ci::Runner/
#{
runner
.
id
}
"
,
'id'
=>
runner
.
to_global_id
.
to_s
,
'adminUrl'
=>
nil
)
expect
(
runner_data
[
'tagList'
]).
to
match_array
runner
.
tag_list
...
...
@@ -179,7 +179,7 @@ RSpec.describe 'Query.runner(id)' do
runner_data
=
graphql_data_at
(
:runner
)
expect
(
runner_data
).
to
match
a_hash_including
(
'id'
=>
"gid://gitlab/Ci::Runner/
#{
project_runner
.
id
}
"
,
'id'
=>
project_runner
.
to_global_id
.
to_s
,
'locked'
=>
is_locked
)
end
...
...
@@ -216,7 +216,7 @@ RSpec.describe 'Query.runner(id)' do
a_hash_including
(
'webUrl'
=>
"http://localhost/groups/
#{
group
.
full_path
}
/-/runners/
#{
active_group_runner
.
id
}
"
,
'node'
=>
{
'id'
=>
"gid://gitlab/Ci::Runner/
#{
active_group_runner
.
id
}
"
'id'
=>
active_group_runner
.
to_global_id
.
to_s
}
)
]
...
...
@@ -227,7 +227,7 @@ RSpec.describe 'Query.runner(id)' do
let
(
:query
)
do
%(
query {
runner(id: "
gid://gitlab/Ci::Runner/#{active_group_runner.
id}") {
runner(id: "
#{active_group_runner.to_global_
id}") {
groups {
nodes {
id
...
...
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