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
e9ff4fd3
Commit
e9ff4fd3
authored
Dec 24, 2021
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a unique group for minimal access specs
parent
449ffe78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
qa/qa/specs/features/ee/api/1_manage/user/minimal_access_user_spec.rb
...features/ee/api/1_manage/user/minimal_access_user_spec.rb
+6
-4
No files found.
qa/qa/specs/features/ee/api/1_manage/user/minimal_access_user_spec.rb
View file @
e9ff4fd3
...
...
@@ -12,7 +12,9 @@ module QA
@user_api_client
=
Runtime
::
API
::
Client
.
new
(
:gitlab
,
user:
@user_with_minimal_access
)
@group
=
Resource
::
Group
.
fabricate_via_api!
@group
=
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
group
.
path
=
"group-for-minimal-access-
#{
SecureRandom
.
hex
(
8
)
}
"
end
@group
.
sandbox
.
add_member
(
@user_with_minimal_access
,
Resource
::
Members
::
AccessLevel
::
MINIMAL_ACCESS
)
...
...
@@ -65,10 +67,10 @@ module QA
end
after
(
:all
)
do
@user_with_minimal_access
.
remove_via_api!
@project
.
remove_via_api!
@user_with_minimal_access
&
.
remove_via_api!
@project
&
.
remove_via_api!
begin
@group
.
remove_via_api!
@group
&
.
remove_via_api!
rescue
Resource
::
ApiFabricator
::
ResourceNotDeletedError
# It is ok if the group is already marked for deletion by another test
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