Skip to content

Commit

Permalink
example file
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor authored and kobergj committed Sep 21, 2023
1 parent 47d3ade commit 80b439c
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 0 deletions.
169 changes: 169 additions & 0 deletions tests/acceptance/features/apiGraph/reproduceBug502.feature
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 |

Loading

0 comments on commit 80b439c

Please sign in to comment.