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
101f1971
Commit
101f1971
authored
Mar 15, 2022
by
Tiffany Rea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move projects and runner to their own group
parent
f52ed489
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_subscription_with_group_owned_project_spec.rb
...fy/pipeline_subscription_with_group_owned_project_spec.rb
+10
-3
No files found.
qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_subscription_with_group_owned_project_spec.rb
View file @
101f1971
...
@@ -6,8 +6,15 @@ module QA
...
@@ -6,8 +6,15 @@ module QA
let
(
:executor
)
{
"qa-runner-
#{
SecureRandom
.
hex
(
3
)
}
"
}
let
(
:executor
)
{
"qa-runner-
#{
SecureRandom
.
hex
(
3
)
}
"
}
let
(
:tag_name
)
{
"awesome-tag-
#{
SecureRandom
.
hex
(
3
)
}
"
}
let
(
:tag_name
)
{
"awesome-tag-
#{
SecureRandom
.
hex
(
3
)
}
"
}
let
(
:group
)
do
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
group
.
name
=
"group-for-pipeline-subscriptions-
#{
SecureRandom
.
hex
(
3
)
}
"
end
end
let
(
:upstream_project
)
do
let
(
:upstream_project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
group
=
group
project
.
name
=
'upstream-project-for-subscription'
project
.
name
=
'upstream-project-for-subscription'
project
.
description
=
'Project with CI subscription'
project
.
description
=
'Project with CI subscription'
end
end
...
@@ -15,6 +22,7 @@ module QA
...
@@ -15,6 +22,7 @@ module QA
let
(
:downstream_project
)
do
let
(
:downstream_project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
group
=
group
project
.
name
=
'project-with-pipeline-subscription'
project
.
name
=
'project-with-pipeline-subscription'
project
.
description
=
'Project with CI subscription'
project
.
description
=
'Project with CI subscription'
end
end
...
@@ -22,8 +30,7 @@ module QA
...
@@ -22,8 +30,7 @@ module QA
let!
(
:runner
)
do
let!
(
:runner
)
do
Resource
::
Runner
.
fabricate!
do
|
runner
|
Resource
::
Runner
.
fabricate!
do
|
runner
|
runner
.
project
=
upstream_project
runner
.
token
=
group
.
reload!
.
runners_token
runner
.
token
=
upstream_project
.
group
.
reload!
.
runners_token
runner
.
name
=
executor
runner
.
name
=
executor
runner
.
tags
=
[
executor
]
runner
.
tags
=
[
executor
]
end
end
...
@@ -43,7 +50,7 @@ module QA
...
@@ -43,7 +50,7 @@ module QA
end
end
after
do
after
do
[
runner
,
upstream_project
,
downstream_project
].
each
do
|
item
|
[
runner
,
upstream_project
,
downstream_project
,
group
].
each
do
|
item
|
item
.
remove_via_api!
item
.
remove_via_api!
end
end
end
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