fix tests where public try to download file
This commit is contained in:
@@ -88,10 +88,6 @@ cannot share a folder with create permission
|
|||||||
- [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:155](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L155)
|
- [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:155](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L155)
|
||||||
- [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:172](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L172)
|
- [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:172](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L172)
|
||||||
|
|
||||||
#### [Public link enforce permissions](https://github.com/owncloud/ocis/issues/1269)
|
|
||||||
|
|
||||||
- [coreApiSharePublicLink1/createPublicLinkShare.feature:290](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L290)
|
|
||||||
|
|
||||||
#### [copying a folder within a public link folder to folder with same name as an already existing file overwrites the parent file](https://github.com/owncloud/ocis/issues/1232)
|
#### [copying a folder within a public link folder to folder with same name as an already existing file overwrites the parent file](https://github.com/owncloud/ocis/issues/1232)
|
||||||
|
|
||||||
- [coreApiSharePublicLink2/copyFromPublicLink.feature:75](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink2/copyFromPublicLink.feature#L75)
|
- [coreApiSharePublicLink2/copyFromPublicLink.feature:75](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink2/copyFromPublicLink.feature#L75)
|
||||||
@@ -160,8 +156,6 @@ API, search, favorites, config, capabilities, not existing endpoints, CORS and o
|
|||||||
- [coreApiAuth/ocsGETAuth.feature:123](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/ocsGETAuth.feature#L123)
|
- [coreApiAuth/ocsGETAuth.feature:123](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/ocsGETAuth.feature#L123)
|
||||||
- [coreApiAuth/ocsPOSTAuth.feature:10](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/ocsPOSTAuth.feature#L10)
|
- [coreApiAuth/ocsPOSTAuth.feature:10](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/ocsPOSTAuth.feature#L10)
|
||||||
- [coreApiAuth/ocsPUTAuth.feature:7](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/ocsPUTAuth.feature#L7)
|
- [coreApiAuth/ocsPUTAuth.feature:7](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuth/ocsPUTAuth.feature#L7)
|
||||||
- [coreApiSharePublicLink1/createPublicLinkShare.feature:277](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L277)
|
|
||||||
|
|
||||||
#### [sending MKCOL requests to another or non-existing user's webDav endpoints as normal user should return 404](https://github.com/owncloud/ocis/issues/5049)
|
#### [sending MKCOL requests to another or non-existing user's webDav endpoints as normal user should return 404](https://github.com/owncloud/ocis/issues/5049)
|
||||||
|
|
||||||
_ocdav: api compatibility, return correct status code_
|
_ocdav: api compatibility, return correct status code_
|
||||||
|
|||||||
@@ -1207,11 +1207,7 @@ class PublicWebDavContext implements Context {
|
|||||||
|
|
||||||
$responseContent = $response->getBody()->getContents();
|
$responseContent = $response->getBody()->getContents();
|
||||||
\libxml_use_internal_errors(true);
|
\libxml_use_internal_errors(true);
|
||||||
Assert::assertNotFalse(
|
Assert::assertEmpty($responseContent, "response body is not empty, maybe download did work");
|
||||||
\simplexml_load_string($responseContent),
|
|
||||||
"response body is not valid XML, maybe download did work\n" .
|
|
||||||
"response body: \n$responseContent\n"
|
|
||||||
);
|
|
||||||
$this->featureContext->theHTTPStatusCodeShouldBe($expectedHttpCode, "", $response);
|
$this->featureContext->theHTTPStatusCodeShouldBe($expectedHttpCode, "", $response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -296,9 +296,7 @@ Feature: create a public link share
|
|||||||
| space | Personal |
|
| space | Personal |
|
||||||
| permissionsRole | createOnly |
|
| permissionsRole | createOnly |
|
||||||
| password | %public% |
|
| password | %public% |
|
||||||
When the public downloads file "parent.txt" from inside the last public link shared folder using the new public WebDAV API
|
Then the public download of file "/parent.txt" from inside the last public link shared folder using the new public WebDAV API with password "%public%" should fail with HTTP status code "403"
|
||||||
Then the value of the item "//s:message" in the response should be "File not found: parent.txt"
|
|
||||||
And the HTTP status code should be "404"
|
|
||||||
|
|
||||||
@env-config @skipOnReva
|
@env-config @skipOnReva
|
||||||
Scenario: get the size of a file shared by public link
|
Scenario: get the size of a file shared by public link
|
||||||
|
|||||||
Reference in New Issue
Block a user