[full-ci] ApiTests. enable auto accepting in api tests (#7477)

* enable auto accepting in test

* go format
This commit is contained in:
Viktor Scharf
2023-10-17 16:29:05 +02:00
committed by GitHub
parent 917ee878cb
commit c179485db6
95 changed files with 458 additions and 1063 deletions
@@ -16,7 +16,6 @@ Feature: REPORT request to Shares space
Scenario Outline: check the REPORT response of the found folder
Given using <dav-path-version> DAV path
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
When user "Brian" searches for "SubFolder1" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
@@ -37,7 +36,6 @@ Feature: REPORT request to Shares space
Scenario Outline: check the REPORT response of the found file
Given using <dav-path-version> DAV path
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
And user "Alice" has uploaded file with content "Not all those who wander are lost." to "/folderMain/SubFolder1/subFOLDER2/frodo.txt"
When user "Brian" searches for "frodo.txt" using the WebDAV API
Then the HTTP status code should be "207"
@@ -59,8 +57,11 @@ Feature: REPORT request to Shares space
Scenario Outline: search for the shared folder when share is not accepted
Given using <dav-path-version> DAV path
When user "Brian" searches for "folderMain" using the WebDAV API
Given user "Brian" has disabled auto-accepting
And using <dav-path-version> DAV path
And user "Alice" has created folder "/folderToBrian"
And user "Alice" has shared entry "/folderToBrian" with user "Brian" with permissions "17"
When user "Brian" searches for "folderToBrian" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
| X-Request-Id | /^[a-zA-Z]+\/[a-zA-Z]+\.feature:\d+(-\d+)?$/ |
@@ -24,7 +24,6 @@ Feature: Report test
| path | folderMain |
| shareWith | Brian |
| role | viewer |
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
When user "Brian" searches for "SubFolder1" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
@@ -45,7 +44,6 @@ Feature: Report test
| path | folderMain |
| shareWith | Brian |
| role | editor |
And user "Brian" has accepted share "/folderMain" offered by user "Alice"
When user "Brian" searches for "insideTheFolder.txt" using the WebDAV API
Then the HTTP status code should be "207"
And the following headers should match these regular expressions
@@ -62,7 +60,8 @@ Feature: Report test
Scenario: search for the shared folder when the share is not accepted
Given user "Alice" has created a share inside of space "find data" with settings:
Given user "Brian" has disabled auto-accepting
And user "Alice" has created a share inside of space "find data" with settings:
| path | folderMain |
| shareWith | Brian |
| role | viewer |