-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API provisioning tests for users and groups in ldap #346
Conversation
bfad189
to
dad5717
Compare
Codecov Report
@@ Coverage Diff @@
## master #346 +/- ##
=========================================
Coverage 35.74% 35.74%
Complexity 1333 1333
=========================================
Files 30 30
Lines 3752 3752
=========================================
Hits 1341 1341
Misses 2411 2411 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #346 +/- ##
=========================================
Coverage 35.74% 35.74%
Complexity 1333 1333
=========================================
Files 30 30
Lines 3752 3752
=========================================
Hits 1341 1341
Misses 2411 2411 Continue to review full report at Codecov.
|
f10b9e2
to
8a57097
Compare
9ec839b
to
2d8c260
Compare
2d8c260
to
5d63582
Compare
4b1a14e
to
e0b88e8
Compare
6eafa5c
to
8426415
Compare
So that I can easily manage groups when user LDAP is enabled | ||
|
||
Background: | ||
Given using OCS API version "2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should test both versions
Given user "db-user" has been created with default attributes in the database user backend | ||
When the administrator adds user "db-user" to group "grp1" using the provisioning API | ||
Then the OCS status code should be "200" | ||
And the HTTP status code should be "200" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make commented out steps that would be the behaviour after the issue is fixed
Background: | ||
Given using OCS API version "2" | ||
|
||
Scenario: admin creates a user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more detail is title
Scenario: admin creates a user | |
Scenario: admin creates a local user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also applies to other steps
When the administrator sets the ldap attribute "displayname" of the entry "uid=user1,ou=TestUsers" to "ldap user" | ||
And the LDAP users are resynced | ||
When the administrator changes the display of user "user1" to "A New User" using the provisioning API | ||
Then the HTTP status code should be "200" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should not work, is there an issue about that? is yes tag this Scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably issue-core-33186
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is just the status code the actual display name is still unchanged
5675854
to
6046020
Compare
6046020
to
4af820a
Compare
if (isset($items['dn'])) { | ||
//only one item in the ldif data | ||
$this->ldap->add($items['dn'], $items); | ||
if (isset($items['uid'])) { | ||
$this->featureContext->addUserToCreatedUsersList($items['uid'][0], $items['userpassword'][0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make the lines shorter
4af820a
to
6c6fdf9
Compare
6c6fdf9
to
1f98810
Compare
Related Issue #343
Add API acceptance tests for checking what can/cannot happen with respect to modifying attributes of LDAP users and groups.