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
107715f2
Commit
107715f2
authored
Jul 29, 2020
by
Sanad Liaquat (Personal)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create and use new user instead of using existing
parent
4f9d38b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_root_group_spec.rb
...te/repository/merge_with_code_owner_in_root_group_spec.rb
+8
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_subgroup_spec.rb
...eate/repository/merge_with_code_owner_in_subgroup_spec.rb
+8
-2
No files found.
qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_root_group_spec.rb
View file @
107715f2
...
@@ -3,8 +3,13 @@
...
@@ -3,8 +3,13 @@
module
QA
module
QA
context
'Create'
do
context
'Create'
do
describe
'Codeowners'
do
describe
'Codeowners'
do
context
'when the project is in the root group'
do
context
'when the project is in the root group'
,
:requires_admin
do
let
(
:approver
)
{
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
}
let
(
:approver
)
do
Resource
::
User
.
fabricate_via_api!
do
|
resource
|
resource
.
api_client
=
Runtime
::
API
::
Client
.
as_admin
end
end
let
(
:root_group
)
{
Resource
::
Sandbox
.
fabricate_via_api!
}
let
(
:root_group
)
{
Resource
::
Sandbox
.
fabricate_via_api!
}
let
(
:project
)
do
let
(
:project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
...
@@ -24,6 +29,7 @@ module QA
...
@@ -24,6 +29,7 @@ module QA
after
do
after
do
group_or_project
.
remove_member
(
approver
)
group_or_project
.
remove_member
(
approver
)
approver
.
remove_via_api!
end
end
context
'and the code owner is the root group'
do
context
'and the code owner is the root group'
do
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/merge_with_code_owner_in_subgroup_spec.rb
View file @
107715f2
...
@@ -3,8 +3,13 @@
...
@@ -3,8 +3,13 @@
module
QA
module
QA
context
'Create'
do
context
'Create'
do
describe
'Codeowners'
do
describe
'Codeowners'
do
context
'when the project is in a subgroup'
do
context
'when the project is in a subgroup'
,
:requires_admin
do
let
(
:approver
)
{
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
}
let
(
:approver
)
do
Resource
::
User
.
fabricate_via_api!
do
|
resource
|
resource
.
api_client
=
Runtime
::
API
::
Client
.
as_admin
end
end
let
(
:project
)
do
let
(
:project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
"approve-and-merge"
project
.
name
=
"approve-and-merge"
...
@@ -22,6 +27,7 @@ module QA
...
@@ -22,6 +27,7 @@ module QA
after
do
after
do
group_or_project
.
remove_member
(
approver
)
group_or_project
.
remove_member
(
approver
)
approver
.
remove_via_api!
end
end
context
'and the code owner is the root group'
do
context
'and the code owner is the root group'
do
...
...
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