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
469bc368
Commit
469bc368
authored
Aug 15, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add integration test for new LDAP sync
parent
3cd35f05
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
app/views/ldap_group_links/_form.html.haml
app/views/ldap_group_links/_form.html.haml
+1
-1
features/group.feature
features/group.feature
+5
-0
features/steps/group/group.rb
features/steps/group/group.rb
+14
-0
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+4
-0
No files found.
app/views/ldap_group_links/_form.html.haml
View file @
469bc368
...
...
@@ -24,4 +24,4 @@
You can manage permission levels for individual group members in the Members tab.
.form-actions
=
f
.
submit
'Add Synchronization'
,
class:
"btn btn-create"
\ No newline at end of file
=
f
.
submit
'Add synchronization'
,
class:
"btn btn-create"
\ No newline at end of file
features/group.feature
View file @
469bc368
...
...
@@ -55,6 +55,11 @@ Feature: Groups
Then
I should not see group
"Owned"
avatar
And
I should not see the
"Remove avatar"
button
Scenario
:
Add new LDAP synchronization
When
I visit Group
"Owned"
LDAP settings page
And
I add a new LDAP synchronization
Then
I see a new LDAP synchronization listed
# Leave
@javascript
...
...
features/steps/group/group.rb
View file @
469bc368
...
...
@@ -285,4 +285,18 @@ class Groups < Spinach::FeatureSteps
author:
current_user
,
milestone:
milestone2_project3
end
step
'I add a new LDAP synchronization'
do
within
(
'form#new_ldap_group_link'
)
do
find
(
'#ldap_group_link_cn'
,
visible:
false
).
set
(
'my-group-cn'
)
# fill_in('LDAP Group cn', with: 'my-group-cn', visible: false)
select
'Developer'
,
from:
"ldap_group_link_group_access"
click_button
'Add synchronization'
end
end
step
'I see a new LDAP synchronization listed'
do
expect
(
page
).
not_to
have_content
(
'No synchronizations yet'
)
expect
(
page
).
to
have_content
(
'my-group-cn as Developer'
)
end
end
features/steps/shared/paths.rb
View file @
469bc368
...
...
@@ -41,6 +41,10 @@ module SharedPaths
visit
edit_group_path
(
Group
.
find_by
(
name
:"Owned"
))
end
step
'I visit group "Owned" LDAP settings page'
do
visit
group_ldap_group_links_path
(
Group
.
find_by
(
name
:"Owned"
))
end
step
'I visit group "Guest" page'
do
visit
group_path
(
Group
.
find_by
(
name
:"Guest"
))
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