[tests-only] [full-ci] Refactor scenario related to checking json response (#6034)

* Separate positive and negative testing in different scenario

* Remove duplicate scenario

* Refactor json step graamer

* Remove unnecessary steps

* Add step to check space disable state
This commit is contained in:
Amrita
2023-05-04 14:55:11 +02:00
committed by GitHub
parent 5c3c7278dc
commit 517a177057
11 changed files with 131 additions and 851 deletions
@@ -83,31 +83,6 @@ Feature: List and create spaces
And user "Brian" has created folder "folder"
And user "Brian" has shared folder "folder" with user "Alice" with permissions "31"
And user "Alice" has accepted share "/folder" offered by user "Brian"
Then for user "Alice" the JSON response should contain space called "Shares" and match
"""
{
"type": "object",
"required": [
"driveType",
"id",
"name"
],
"properties": {
"driveType": {
"type": "string",
"enum": ["virtual"]
},
"id": {
"type": "string",
"enum": ["%space_id%"]
},
"name": {
"type": "string",
"enum": ["Shares"]
}
}
}
"""
When user "Alice" lists all available spaces via the GraphApi with query "$filter=driveType eq 'personal'"
Then the HTTP status code should be "200"
And the JSON response should contain space called "Alice Hansen" and match