[tests-only] removing the setresponse in given/when/then step in webdavproperties context (#7368)
* refactor given and when steps in webdavproperties context * change the status code in tests as the when step sets the response now * correct the status code check * only save response * use getResponseXml to get xml response object * fix isEtagValid method * rename step def methods * make stricter checks --------- Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
This commit is contained in:
@@ -51,7 +51,7 @@ Feature: create files and folder
|
||||
When user "Alice" gets the following properties of folder "/test_folder" using the WebDAV API
|
||||
| propertyName |
|
||||
| d:resourcetype |
|
||||
Then the HTTP status code should be "201"
|
||||
Then the HTTP status code should be "207"
|
||||
And the single response should contain a property "d:resourcetype" with a child property "d:collection"
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
@@ -70,7 +70,7 @@ Feature: create files and folder
|
||||
When user "Alice" gets the following properties of folder "/test_folder:5" using the WebDAV API
|
||||
| propertyName |
|
||||
| d:resourcetype |
|
||||
Then the HTTP status code should be "201"
|
||||
Then the HTTP status code should be "207"
|
||||
And the single response should contain a property "d:resourcetype" with a child property "d:collection"
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
|
||||
Reference in New Issue
Block a user