-
Notifications
You must be signed in to change notification settings - Fork 189
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
47d3ade
commit 80b439c
Showing
2 changed files
with
395 additions
and
0 deletions.
There are no files selected for viewing
169 changes: 169 additions & 0 deletions
169
tests/acceptance/features/apiGraph/reproduceBug502.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,169 @@ | ||
Feature: | ||
Reproduse bug | ||
|
||
Background: | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
| Bob | | ||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API | ||
And the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API | ||
And the administrator has assigned the role "Space Admin" to user "Bob" using the Graph API | ||
And user "Alice" has created a space "Project-al" with the default quota using the GraphApi | ||
And user "Brian" has created a space "Project-br" with the default quota using the GraphApi | ||
And user "Bob" has created a space "Project-bo" with the default quota using the GraphApi | ||
|
||
|
||
# TRYing to Reproduse BUG in rhe config | ||
Scenario Outline: test1 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test2 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test3 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test4 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test5 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test7 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test8 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
||
|
||
Scenario Outline: test9 | ||
Given using OCS API version "<ocs-api-version>" | ||
And user "Alice" has uploaded a file inside space "Project-al" with content "some content" to "test.txt" | ||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Alice" should be "ownCloud test text file 0" | ||
|
||
And user "Brian" has uploaded a file inside space "Project-br" with content "some content" to "test.txt" | ||
And user "Brian" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Brian" should be "ownCloud test text file 0" | ||
|
||
And user "Bob" has uploaded a file inside space "Project-bo" with content "some content" to "test.txt" | ||
And user "Bob" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" | ||
Then the content of file "/textfile0.txt" for user "Bob" should be "ownCloud test text file 0" | ||
Examples: | ||
| ocs_api_version | | ||
| 1 | | ||
| 2 | | ||
|
Oops, something went wrong.