-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1959fa
commit b96b755
Showing
10 changed files
with
94 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# The version of OCIS to use in pipelines that test against OCIS | ||
OCIS_COMMITID=0fa52f26e9a9f81ffaab1c1922f16f3c43d75d2f | ||
OCIS_COMMITID=1d83da09d2c03c89a19ba138e8a6badd17725423 | ||
OCIS_BRANCH=master |
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
81 changes: 41 additions & 40 deletions
81
tests/e2e/cucumber/features/shares/denyShareAccess.feature
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 |
---|---|---|
@@ -1,42 +1,43 @@ | ||
Feature: deny share access | ||
|
||
# FIXME: enable as soon as sharing NG supports it | ||
# Scenario: deny and grant access | ||
# Given "Admin" creates following users using API | ||
# | id | | ||
# | Alice | | ||
# | Brian | | ||
# When "Alice" logs in | ||
# And "Alice" creates the following folder in personal space using API | ||
# | name | | ||
# | folder_to_shared | | ||
# | folder_to_shared/folder | | ||
# | folder_to_shared/folder_to_deny | | ||
# And "Alice" opens the "files" app | ||
# And "Alice" shares the following resource using the quick action | ||
# | resource | recipient | type | role | resourceType | | ||
# | folder_to_shared | Brian | user | Can view | folder | | ||
# And "Alice" opens folder "folder_to_shared" | ||
# When "Alice" denies access to the following resources for user "Brian" using the sidebar panel | ||
# | resource | | ||
# | folder_to_deny | | ||
# And "Brian" logs in | ||
# And "Brian" opens the "files" app | ||
# And "Brian" navigates to the shared with me page | ||
# And "Brian" opens folder "folder_to_shared" | ||
# Then following resources should not be displayed in the files list for user "Brian" | ||
# | resource | | ||
# | folder_to_deny | | ||
# And "Alice" opens the "files" app | ||
# And "Alice" opens folder "folder_to_shared" | ||
# When "Alice" grants access to the following resources for user "Brian" using the sidebar panel | ||
# | resource | | ||
# | folder_to_deny | | ||
# And "Brian" opens the "files" app | ||
# And "Brian" navigates to the shared with me page | ||
# And "Brian" opens folder "folder_to_shared" | ||
# Then following resources should be displayed in the files list for user "Brian" | ||
# | resource | | ||
# | folder_to_deny | | ||
# And "Brian" logs out | ||
# And "Alice" logs out | ||
Scenario: deny and grant access | ||
Given "Admin" creates following users using API | ||
| id | | ||
| Alice | | ||
| Brian | | ||
When "Alice" logs in | ||
And "Alice" creates the following folder in personal space using API | ||
| name | | ||
| folder_to_shared | | ||
| folder_to_shared/folder | | ||
| folder_to_shared/folder_to_deny | | ||
And "Alice" opens the "files" app | ||
And "Alice" shares the following resource using the quick action | ||
| resource | recipient | type | role | resourceType | | ||
| folder_to_shared | Brian | user | Can view | folder | | ||
And "Alice" opens folder "folder_to_shared" | ||
# deny access | ||
When "Alice" shares the following resource using the sidebar panel | ||
| resource | recipient | type | role | resourceType | | ||
| folder_to_deny | Brian | user | Cannot access | folder | | ||
And "Brian" logs in | ||
And "Brian" opens the "files" app | ||
And "Brian" navigates to the shared with me page | ||
And "Brian" opens folder "folder_to_shared" | ||
Then following resources should not be displayed in the files list for user "Brian" | ||
| resource | | ||
| folder_to_deny | | ||
And "Alice" opens the "files" app | ||
And "Alice" opens folder "folder_to_shared" | ||
# allow access - deleting "Cannot access" share | ||
When "Alice" removes following sharee | ||
| resource | recipient | | ||
| folder_to_deny | Brian | | ||
And "Brian" opens the "files" app | ||
And "Brian" navigates to the shared with me page | ||
And "Brian" opens folder "folder_to_shared" | ||
Then following resources should be displayed in the files list for user "Brian" | ||
| resource | | ||
| folder_to_deny | | ||
And "Brian" logs out | ||
And "Alice" logs out |
46 changes: 46 additions & 0 deletions
46
tests/e2e/cucumber/features/spaces/denySpaceAccess.feature
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Feature: deny space access | ||
|
||
Scenario: deny and grant access | ||
Given "Admin" creates following users using API | ||
| id | | ||
| Alice | | ||
| Brian | | ||
And "Admin" assigns following roles to the users using API | ||
| id | role | | ||
| Alice | Space Admin | | ||
And "Alice" logs in | ||
And "Alice" creates the following project space using API | ||
| name | id | | ||
| sales | sales | | ||
And "Alice" creates the following folder in space "sales" using API | ||
| name | | ||
| f1 | | ||
| f2 | | ||
And "Alice" adds the following members to the space "sales" using API | ||
| user | role | shareType | | ||
| Brian | Can edit | user | | ||
|
||
When "Alice" navigates to the project space "sales" | ||
# deny access | ||
When "Alice" shares the following resource using the sidebar panel | ||
| resource | recipient | type | role | resourceType | | ||
| f1 | Brian | user | Cannot access | folder | | ||
And "Brian" logs in | ||
And "Brian" navigates to the project space "sales" | ||
Then following resources should not be displayed in the files list for user "Brian" | ||
| resource | | ||
| f1 | | ||
But following resources should be displayed in the files list for user "Brian" | ||
| resource | | ||
| f2 | | ||
# allow access - deleting "Cannot access" share | ||
When "Alice" removes following sharee | ||
| resource | recipient | | ||
| f1 | Brian | | ||
And "Brian" navigates to the project space "sales" | ||
Then following resources should be displayed in the files list for user "Brian" | ||
| resource | | ||
| f1 | | ||
| f2 | | ||
And "Brian" logs out | ||
And "Alice" logs out |
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
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