-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved checks in tests for apiProvisioning-v1 suite
- Loading branch information
Showing
9 changed files
with
93 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,8 +65,6 @@ Feature: edit users | |
Scenario: the administrator can override an existing user email | ||
Given user "brand-new-user" has been created with default attributes and without skeleton files | ||
And the administrator has changed the email of user "brand-new-user" to "[email protected]" | ||
And the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
When the administrator changes the email of user "brand-new-user" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
|
@@ -76,8 +74,6 @@ Feature: edit users | |
Scenario: the administrator can clear an existing user email | ||
Given user "brand-new-user" has been created with default attributes and without skeleton files | ||
And the administrator has changed the email of user "brand-new-user" to "[email protected]" | ||
And the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
When the administrator changes the email of user "brand-new-user" to "" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
|
@@ -93,11 +89,17 @@ Feature: edit users | |
And user "brand-new-user" has been added to group "new-group" | ||
And user "subadmin" has been made a subadmin of group "new-group" | ||
When user "subadmin" changes the quota of user "brand-new-user" to "12MB" using the provisioning API | ||
And user "subadmin" changes the email of user "brand-new-user" to "[email protected]" using the provisioning API | ||
And user "subadmin" changes the display of user "brand-new-user" to "Anne Brown" using the provisioning API | ||
Then the display name of user "brand-new-user" should be "Anne Brown" | ||
And the email address of user "brand-new-user" should be "[email protected]" | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the quota definition of user "brand-new-user" should be "12 MB" | ||
When user "subadmin" changes the email of user "brand-new-user" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the email address of user "brand-new-user" should be "[email protected]" | ||
When user "subadmin" changes the display of user "brand-new-user" to "Anne Brown" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the display name of user "brand-new-user" should be "Anne Brown" | ||
|
||
|
||
Scenario: a normal user should be able to change their email address | ||
|
@@ -140,11 +142,17 @@ Feature: edit users | |
| another-admin | | ||
And user "another-admin" has been added to group "admin" | ||
When user "another-admin" changes the quota of user "another-admin" to "12MB" using the provisioning API | ||
And user "another-admin" changes the email of user "another-admin" to "[email protected]" using the provisioning API | ||
And user "another-admin" changes the display of user "another-admin" to "Anne Brown" using the provisioning API | ||
Then the display name of user "another-admin" should be "Anne Brown" | ||
And the email address of user "another-admin" should be "[email protected]" | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the quota definition of user "another-admin" should be "12 MB" | ||
When user "another-admin" changes the email of user "another-admin" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the email address of user "another-admin" should be "[email protected]" | ||
When user "another-admin" changes the display of user "another-admin" to "Anne Brown" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the display name of user "another-admin" should be "Anne Brown" | ||
|
||
@notToImplementOnOCIS | ||
Scenario: a subadmin should be able to edit user information with subadmin permissions in their group | ||
|
@@ -157,11 +165,17 @@ Feature: edit users | |
And user "another-subadmin" has been made a subadmin of group "new-group" | ||
And user "subadmin" has been made a subadmin of group "new-group" | ||
When user "subadmin" changes the quota of user "another-subadmin" to "12MB" using the provisioning API | ||
And user "subadmin" changes the email of user "another-subadmin" to "[email protected]" using the provisioning API | ||
And user "subadmin" changes the display of user "another-subadmin" to "Anne Brown" using the provisioning API | ||
Then the display name of user "another-subadmin" should be "Anne Brown" | ||
And the email address of user "another-subadmin" should be "[email protected]" | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the quota definition of user "another-subadmin" should be "12 MB" | ||
When user "subadmin" changes the email of user "another-subadmin" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the email address of user "another-subadmin" should be "[email protected]" | ||
When user "subadmin" changes the display of user "another-subadmin" to "Anne Brown" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the display name of user "another-subadmin" should be "Anne Brown" | ||
|
||
@notToImplementOnOCIS | ||
Scenario: a subadmin should not be able to edit user information of another subadmin of same group | ||
|
@@ -175,15 +189,15 @@ Feature: edit users | |
When user "subadmin" changes the quota of user "another-subadmin" to "12MB" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the quota definition of user "another-subadmin" should be "default" | ||
When user "subadmin" changes the email of user "another-subadmin" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the email address of user "another-subadmin" should be "[email protected]" | ||
When user "subadmin" changes the display of user "another-subadmin" to "Anne Brown" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the display name of user "another-subadmin" should be "Regular User" | ||
And the email address of user "another-subadmin" should be "[email protected]" | ||
And the quota definition of user "another-subadmin" should be "default" | ||
|
||
|
||
Scenario: a normal user should not be able to edit another user's information | ||
|
@@ -194,17 +208,32 @@ Feature: edit users | |
When user "Alice" tries to change the display name of user "Brian" to "New Brian" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the display name of user "Brian" should not have changed | ||
When user "Alice" tries to change the email of user "Brian" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the email address of user "Brian" should not have changed | ||
|
||
|
||
Scenario: a normal user should not be able to edit another user's information | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
When user "Alice" tries to change the display name of user "Brian" to "New Brian" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the display name of user "Brian" should not have changed | ||
When user "Alice" tries to change the email of user "Brian" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the email address of user "Brian" should not have changed | ||
|
||
@skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 | ||
Scenario: Admin gives access to users to change their email address | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
When the administrator updates system config key "allow_user_to_change_mail_address" with value "true" and type "boolean" using the occ command | ||
And user "Alice" changes the email of user "Alice" to "[email protected]" using the provisioning API | ||
And the administrator has updated system config key "allow_user_to_change_mail_address" with value "true" and type "boolean" | ||
When user "Alice" changes the email of user "Alice" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the attributes of user "Alice" returned by the API should include | ||
|
@@ -214,8 +243,8 @@ Feature: edit users | |
@notToImplementOnOCIS @skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 | ||
Scenario: Admin does not give access to users to change their email address | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
When the administrator updates system config key "allow_user_to_change_mail_address" with value "false" and type "boolean" using the occ command | ||
And user "Alice" tries to change the email of user "Alice" to "[email protected]" using the provisioning API | ||
And the administrator has updated system config key "allow_user_to_change_mail_address" with value "false" and type "boolean" | ||
When user "Alice" tries to change the email of user "Alice" to "[email protected]" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the attributes of user "Alice" returned by the API should include | ||
|
@@ -280,8 +309,8 @@ Feature: edit users | |
@skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 | ||
Scenario: Admin gives access to users to change their display name | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
When the administrator updates system config key "allow_user_to_change_display_name" with value "true" and type "boolean" using the occ command | ||
And user "Alice" changes the display of user "Alice" to "Alice Wonderland" using the provisioning API | ||
And the administrator has updated system config key "allow_user_to_change_display_name" with value "true" and type "boolean" | ||
When user "Alice" changes the display of user "Alice" to "Alice Wonderland" using the provisioning API | ||
Then the OCS status code should be "100" | ||
And the HTTP status code should be "200" | ||
And the attributes of user "Alice" returned by the API should include | ||
|
@@ -291,8 +320,8 @@ Feature: edit users | |
@notToImplementOnOCIS @skipOnOcV10.6 @skipOnOcV10.7 @skipOnOcV10.8.0 | ||
Scenario: Admin does not give access to users to change their display name | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
When the administrator updates system config key "allow_user_to_change_display_name" with value "false" and type "boolean" using the occ command | ||
And user "Alice" tries to change the display name of user "Alice" to "Alice Wonderland" using the provisioning API | ||
And the administrator has updated system config key "allow_user_to_change_display_name" with value "false" and type "boolean" | ||
When user "Alice" tries to change the display name of user "Alice" to "Alice Wonderland" using the provisioning API | ||
Then the OCS status code should be "997" | ||
And the HTTP status code should be "401" | ||
And the attributes of user "Alice" returned by the API should include | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.