You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have many sharing API acceptance tests with auto-accept off, we often get sequences like this:
When user "Alice" shares folder "/FOLDER" with group "grp1" using the sharing API
And user "Brian" accepts share "/FOLDER" offered by user "Alice" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "<http_status_code>"
And the fields of the last response to user "Alice" should include
| expiration | |
And the response when user "Brian" gets the info of the last share should include
| expiration | |
We need to do 2 When actions in order to get the share to be effectively useable by the share receiver.
We also want to be able to check the HTTP status code, OCS status code and response of the create-share request done by Alice. We could write scenarios in this style:
When user "Alice" shares folder "/FOLDER" with group "grp1" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "<http_status_code>"
And the fields of the last response to user "Alice" should include
| expiration | |
When user "Brian" accepts share "/FOLDER" offered by user "Alice" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
And the HTTP status code should be "<http_status_code>"
And the response when user "Brian" gets the info of the last share should include
| expiration | |
Or we could design some way that the test code remembers the statuses and responses from many (all?) the previous steps and checks like Then the HTTP status code should be... have a way to refer to the response that they want to examine.
The text was updated successfully, but these errors were encountered:
Now that we have many sharing API acceptance tests with auto-accept off, we often get sequences like this:
We need to do 2
When
actions in order to get the share to be effectively useable by the share receiver.We also want to be able to check the HTTP status code, OCS status code and response of the create-share request done by Alice. We could write scenarios in this style:
Or we could design some way that the test code remembers the statuses and responses from many (all?) the previous steps and checks like
Then the HTTP status code should be...
have a way to refer to the response that they want to examine.The text was updated successfully, but these errors were encountered: