Refactor theResponseShouldContain test step

This commit is contained in:
Phil Davis
2022-12-29 12:34:11 +05:45
committed by sagargurung1001@gmail.com
parent 4bb0472d83
commit 07d3ff7dfb
3 changed files with 43 additions and 12 deletions
@@ -15,7 +15,7 @@ Feature: Propfind test
Given user "Alice" has uploaded a file inside space "new-space" with content "some content" to "testfile.txt"
When user "Alice" sends PROPFIND request to space "new-space" using the WebDAV API
Then the HTTP status code should be "207"
And for user "Alice" the "PROPFIND" response should contain a space "new-space" with these key and value pairs:
And the "PROPFIND" response should contain a space "new-space" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:new-space |
| oc:name | new-space |
@@ -23,7 +23,7 @@ Feature: Report test
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 for user "Brian" the "REPORT" response should contain a mountpoint "folderMain" with these key and value pairs:
And the "REPORT" response to user "Brian" should contain a mountpoint "folderMain" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:SubFolder1 |
| oc:file-parent | UUIDof:folderMain |
@@ -39,7 +39,7 @@ Feature: Report test
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 for user "Brian" the "REPORT" response should contain a mountpoint "folderMain" with these key and value pairs:
And the "REPORT" response to user "Brian" should contain a mountpoint "folderMain" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:SubFolder1/subFOLDER2/insideTheFolder.txt |
| oc:file-parent | UUIDof:SubFolder1/subFOLDER2 |