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
394746ff
Commit
394746ff
authored
Nov 13, 2018
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some refactoring done
parent
d85adbac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
91 deletions
+90
-91
qa/qa/specs/features/browser_ui/1_manage/ee_group/group_ldap_sync_spec.rb
...ures/browser_ui/1_manage/ee_group/group_ldap_sync_spec.rb
+90
-91
No files found.
qa/qa/specs/features/browser_ui/1_manage/ee_group/group_ldap_sync_spec.rb
View file @
394746ff
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
module
QA
module
QA
context
'Manage'
,
:orchestrated
,
:ldap_tls
,
:ldap_no_tls
do
context
'Manage'
,
:orchestrated
,
:ldap_tls
,
:ldap_no_tls
do
it
'Has LDAP user synced using group cn method'
do
describe
'LDAP Group sync'
do
before
(
:all
)
do
users
=
[
users
=
[
{
{
name:
'ENG User 2'
,
name:
'ENG User 2'
,
...
@@ -17,12 +18,28 @@ module QA
...
@@ -17,12 +18,28 @@ module QA
email:
'enguser3@example.org'
,
email:
'enguser3@example.org'
,
provider:
'ldapmain'
,
provider:
'ldapmain'
,
extern_uid:
'uid=enguser3,ou=people,ou=global groups,dc=example,dc=org'
extern_uid:
'uid=enguser3,ou=people,ou=global groups,dc=example,dc=org'
},
{
name:
'HR User 2'
,
username:
'hruser2'
,
email:
'hruser2@example.org'
,
provider:
'ldapmain'
,
extern_uid:
'uid=hruser2,ou=people,ou=global groups,dc=example,dc=org'
},
{
name:
'HR User 3'
,
username:
'hruser3'
,
email:
'hruser3@example.org'
,
provider:
'ldapmain'
,
extern_uid:
'uid=hruser3,ou=people,ou=global groups,dc=example,dc=org'
}
}
]
]
create_users_via_api
(
users
)
create_users_via_api
(
users
)
end
it
'Has LDAP user synced using group cn method'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
create_group_with_user_via_api
(
user:
'enguser1'
,
group_name:
'Synched-engineering-group'
)
create_group_with_user_via_api
(
user:
'enguser1'
,
group_name:
'Synched-engineering-group'
)
EE
::
Page
::
Group
::
Menu
.
perform
(
&
:go_to_ldap_sync_settings
)
EE
::
Page
::
Group
::
Menu
.
perform
(
&
:go_to_ldap_sync_settings
)
...
@@ -39,25 +56,6 @@ module QA
...
@@ -39,25 +56,6 @@ module QA
end
end
it
'Has LDAP user synced using user filter method'
do
it
'Has LDAP user synced using user filter method'
do
users
=
[
{
name:
'HR User 2'
,
username:
'hruser2'
,
email:
'hruser2@example.org'
,
provider:
'ldapmain'
,
extern_uid:
'uid=hruser2,ou=people,ou=global groups,dc=example,dc=org'
},
{
name:
'HR User 3'
,
username:
'hruser3'
,
email:
'hruser3@example.org'
,
provider:
'ldapmain'
,
extern_uid:
'uid=hruser3,ou=people,ou=global groups,dc=example,dc=org'
}
]
create_users_via_api
(
users
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
create_group_with_user_via_api
(
user:
'hruser1'
,
group_name:
'Synched-human-resources-group'
)
create_group_with_user_via_api
(
user:
'hruser1'
,
group_name:
'Synched-human-resources-group'
)
...
@@ -114,4 +112,5 @@ module QA
...
@@ -114,4 +112,5 @@ module QA
end
end
end
end
end
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