add check OCS status to steps

This commit is contained in:
ScharfViktor
2021-12-21 18:22:32 +01:00
parent 3afb6cc4d7
commit f3d3431905
2 changed files with 12 additions and 1 deletions
@@ -16,6 +16,8 @@ Feature: Share spaces
Given user "Alice" has created a space "Space to share" of type "project" with quota "10"
When user "Alice" shares a space "Space to share" to user "Brian"
Then the HTTP status code should be "200"
And the OCS status code should be "200"
And the OCS status message should be "OK"
Scenario: A user can see that a received shared space is available
@@ -1178,7 +1178,16 @@ class SpacesContext implements Context {
}
$fullUrl = $baseUrl . "ocs/v2.php/apps/files_sharing/api/v1/shares";
HttpRequestHelper::post($fullUrl, "", $user, $this->featureContext->getPasswordForUser($user), [], $body);
$this->featureContext->setResponse(
HttpRequestHelper::post(
$fullUrl,
"",
$user,
$this->featureContext->getPasswordForUser($user),
[],
$body
)
);
}
/**