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
e032de20
Commit
e032de20
authored
Sep 28, 2020
by
Sanad Liaquat (Personal)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use independent user for impersonation
parent
16fdd83b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
qa/qa/specs/features/ee/browser_ui/1_manage/instance/instance_audit_logs_spec.rb
.../browser_ui/1_manage/instance/instance_audit_logs_spec.rb
+8
-3
No files found.
qa/qa/specs/features/ee/browser_ui/1_manage/instance/instance_audit_logs_spec.rb
View file @
e032de20
...
...
@@ -97,14 +97,15 @@ module QA
end
context
'Start and stop user impersonation'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/739'
do
let!
(
:user_for_impersonation
)
{
Resource
::
User
.
fabricate_via_api!
}
before
do
sign_in
user
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
Page
::
Main
::
Menu
.
perform
(
&
:go_to_admin_area
)
Page
::
Admin
::
Menu
.
perform
(
&
:go_to_users_overview
)
Page
::
Admin
::
Overview
::
Users
::
Index
.
perform
do
|
index
|
index
.
search_user
(
user
.
username
)
index
.
click_user
(
user
.
username
)
index
.
search_user
(
user
_for_impersonation
.
username
)
index
.
click_user
(
user
_for_impersonation
.
username
)
end
Page
::
Admin
::
Overview
::
Users
::
Show
.
perform
(
&
:click_impersonate_user
)
...
...
@@ -113,6 +114,10 @@ module QA
end
it_behaves_like
'audit event'
,
[
"Started Impersonation"
,
"Stopped Impersonation"
]
after
do
user_for_impersonation
.
remove_via_api!
end
end
def
sign_in
...
...
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