-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added bug demo test for removing comments app from whitelist for gues…
…t users
- Loading branch information
1 parent
f0a2c3c
commit 9dca3ae
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
tests/acceptance/features/apiGuests/guestsOc10issue549.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,37 @@ | ||
@api | ||
Feature: Guests Oc10 behaviour for issue-549 | ||
|
||
Background: | ||
Given using OCS API version "1" | ||
And using new dav path | ||
|
||
@email @issue-549 | ||
Scenario: a guest user cannot add comments on resource when the comments app is not whitelisted | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
And user "Alice" has uploaded file with content "some content" to "textfile0.txt" | ||
And the administrator has created guest user "guest" with email "[email protected]" | ||
And user "Alice" has shared file "/textfile0.txt" with user "[email protected]" | ||
And guest user "guest" has registered | ||
And the administrator has limited the guest access to the default whitelist apps | ||
And the administrator has removed the app "comments" from the whitelist for the guest user | ||
When user "[email protected]" comments with content "Comment from guest" on file "/textfile0.txt" using the WebDAV API | ||
Then the HTTP status code should be "201" | ||
# uncomment the line below and remove the line above when issue-549 is fixed | ||
#Then the HTTP status code should be "403" | ||
|
||
@email @issue-549 | ||
Scenario: a guest user cannot view comments of resource when the comments app is not whitelisted | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
And user "Alice" has uploaded file with content "some content" to "textfile0.txt" | ||
And user "Alice" has commented with content "My first comment" on file "/textfile0.txt" | ||
And the administrator has created guest user "guest" with email "[email protected]" | ||
And user "Alice" has shared file "/textfile0.txt" with user "[email protected]" | ||
And guest user "guest" has registered | ||
And the administrator has limited the guest access to the default whitelist apps | ||
And the administrator has removed the app "comments" from the whitelist for the guest user | ||
When user "[email protected]" gets the following properties of file "/textfile0.txt" using the WebDAV API | ||
| propertyName | | ||
| oc:comments-count | | ||
Then the HTTP status code should be "200" | ||
# uncomment the line below and remove the line above when issue-549 is fixed | ||
#Then the HTTP status code should be "403" |