Skip to content

Commit

Permalink
Fix DAV request tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry authored and SergioBertolinSG committed May 10, 2017
1 parent 9085c80 commit c6316e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion tests/integration/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,20 @@ public function checkIfETAGHasChanged($path, $user){
*/
public function connectingToDavEndpoint() {
try {
$this->response = $this->makeDavRequest('admin', 'PROPFIND', '', []);
$this->response = $this->makeDavRequest(null, 'PROPFIND', '', []);
} catch (\GuzzleHttp\Exception\ClientException $e) {
$this->response = $e->getResponse();
} catch (\GuzzleHttp\Exception\ServerException $e) {
$this->response = $e->getResponse();
}
}

/**
* @When Connecting to dav endpoint as user :user
*/
public function connectingToDavEndpointAsUser($user) {
try {
$this->response = $this->makeDavRequest($user, 'PROPFIND', '', []);
} catch (\GuzzleHttp\Exception\ClientException $e) {
$this->response = $e->getResponse();
} catch (\GuzzleHttp\Exception\ServerException $e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,6 @@ Feature: webdav-related-new-endpoint
Scenario: Maintenance mode
Given using new dav path
And maintenance mode is enabled
When Connecting to dav endpoint
When Connecting to dav endpoint as user "admin"
Then the HTTP status code should be "503"

Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,6 @@ Feature: webdav-related-old-endpoint

Scenario: Maintenance mode
Given maintenance mode is enabled
When Connecting to dav endpoint
When Connecting to dav endpoint as user "admin"
Then the HTTP status code should be "503"

0 comments on commit c6316e9

Please sign in to comment.