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
b9503293
Commit
b9503293
authored
Nov 13, 2018
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Admin sync test moved to another file
parent
23ae4268
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
+31
-12
qa/qa/specs/features/browser_ui/1_manage/ee_ldap/admin_ldap_sync_spec.rb
...tures/browser_ui/1_manage/ee_ldap/admin_ldap_sync_spec.rb
+26
-0
qa/qa/specs/features/browser_ui/1_manage/login/log_into_gitlab_via_ldap_spec.rb
...rowser_ui/1_manage/login/log_into_gitlab_via_ldap_spec.rb
+5
-12
No files found.
qa/qa/specs/features/browser_ui/1_manage/ee_ldap/admin_ldap_sync_spec.rb
0 → 100644
View file @
b9503293
# frozen_string_literal: true
module
QA
context
'Manage'
,
:orchestrated
,
:ldap_no_tls
,
:ldap_tls
do
describe
'LDAP admin sync'
do
it
'Syncs admin users'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
do
|
login_page
|
login_page
.
sign_in_using_ldap_credentials
(
username:
'adminuser1'
,
password:
'password'
)
end
Page
::
Main
::
Menu
.
perform
do
|
menu
|
expect
(
menu
).
to
have_personal_area
# The ldap_sync_worker_cron job is set to run every minute
admin_synchronised
=
menu
.
wait
(
max:
80
,
time:
1
,
reload:
true
)
do
menu
.
has_admin_area_link?
end
expect
(
admin_synchronised
).
to
be_truthy
end
end
end
end
end
qa/qa/specs/features/browser_ui/1_manage/login/log_into_gitlab_via_ldap_spec.rb
View file @
b9503293
...
...
@@ -3,22 +3,15 @@
module
QA
context
'Manage'
,
:orchestrated
,
:ldap_no_tls
,
:ldap_tls
do
describe
'LDAP login'
do
it
'
Logins with LDAP and syncs admin user
s'
do
it
'
user logs into GitLab using LDAP credential
s'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
Page
::
Main
::
Login
.
perform
do
|
login_page
|
login_page
.
sign_in_using_ldap_credentials
(
username:
'adminuser1'
,
password:
'password'
)
end
# TODO, since `Signed in successfully` message was removed
# this is the only way to tell if user is signed in correctly.
#
Page
::
Main
::
Menu
.
perform
do
|
menu
|
expect
(
menu
).
to
have_personal_area
# The ldap_sync_worker_cron job is set to run every minute
admin_synchronised
=
menu
.
wait
(
max:
80
,
time:
1
,
reload:
true
)
do
menu
.
has_admin_area_link?
end
expect
(
admin_synchronised
).
to
be_truthy
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