Skip to content

Commit

Permalink
Used new dav trashbin endpoints for old dav
Browse files Browse the repository at this point in the history
  • Loading branch information
grgprarup committed Apr 27, 2022
1 parent 5339fef commit d862f02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions tests/TestHelpers/WebDavHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ public static function getDavPath(
return "dav/spaces/" . $spaceId . '/';
} else {
if ($davPathVersionToUse === self::DAV_VERSION_OLD) {
if ($type === "trash-bin") {
return "remote.php/dav/trash-bin/" . $user . '/';
}
return "remote.php/webdav/";
} elseif ($davPathVersionToUse === self::DAV_VERSION_NEW) {
if ($type === "files") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ Feature: files and folders exist in the trashbin after being deleted
And as "Alice" the folder with original path "/textfile0.txt" should exist in the trashbin
Examples:
| dav-path |
| old |
| new |
13 changes: 0 additions & 13 deletions tests/acceptance/features/apiTrashbin/trashbinSkip.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "/sample.go" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand Down Expand Up @@ -69,7 +68,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "/PARENT/sample.go" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand Down Expand Up @@ -115,7 +113,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "/sample.go" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |

Scenario Outline: Skip trashbin based on extensions when deleting the parent folder - skip-by-extension rules should not be applied
Expand All @@ -139,7 +136,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "PARENT/sample.go" should exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand Down Expand Up @@ -169,7 +165,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "simple-folder/sample.go" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -190,7 +185,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
But as "Alice" the file with original path "simple-folder/s.txt" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -206,7 +200,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "/PARENT/sample.dat" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -221,7 +214,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "skipFile" should exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -236,7 +228,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "PARENT/lorem.txt" should exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -252,7 +243,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
But as "Alice" the file with original path "lorem.dat" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -268,7 +258,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
But as "Alice" the file with original path "PARENT/lorem.dat" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand All @@ -283,7 +272,6 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "PARENT/lorem.dat" should exist in the trashbin
Examples:
| dav-path |
| old |
| new |


Expand Down Expand Up @@ -331,5 +319,4 @@ Feature: files and folders can be deleted completely skipping the trashbin
And as "Alice" the file with original path "PARENT/sample.dat" should not exist in the trashbin
Examples:
| dav-path |
| old |
| new |

0 comments on commit d862f02

Please sign in to comment.