From 9cbdcff4fbdc37e2088b85063fff5d142bacf140 Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Mon, 18 Nov 2019 17:13:25 +0545 Subject: [PATCH] test a PROPFIND to a non-existing URL --- .../apiWebdavProperties/getFileProperties.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/acceptance/features/apiWebdavProperties/getFileProperties.feature b/tests/acceptance/features/apiWebdavProperties/getFileProperties.feature index 5ab533c0256c..e67bc713c9f8 100644 --- a/tests/acceptance/features/apiWebdavProperties/getFileProperties.feature +++ b/tests/acceptance/features/apiWebdavProperties/getFileProperties.feature @@ -172,3 +172,12 @@ Feature: get file properties | dav_version | | old | | new | + + Scenario Outline: Do a PROPFIND to a non-existing URL + And user "user0" requests "" with "PROPFIND" using basic auth + Then the value of the item "/d:error/s:message" in the response should be "" + And the value of the item "/d:error/s:exception" in the response should be "Sabre\DAV\Exception\NotFound" + Examples: + | url | message | + | /remote.php/dav/files/does-not-exist | Principal with name does-not-exist not found | + | /remote.php/dav/does-not-exist | File not found: does-not-exist in 'root' | \ No newline at end of file