Skip to content

Commit

Permalink
Merge pull request #6424 from owncloud/refactor-feature-files
Browse files Browse the repository at this point in the history
[tests-only] [full-ci] refactored feature files
  • Loading branch information
phil-davis authored Jun 8, 2023
2 parents b6b85ba + edc8e96 commit 021c9fc
Show file tree
Hide file tree
Showing 21 changed files with 236 additions and 191 deletions.
190 changes: 95 additions & 95 deletions tests/acceptance/expected-failures-API-on-OCIS-storage.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: files and folders can be deleted from the trashbin
And user "Alice" has uploaded file with content "to delete" to "/PARENT/CHILD/child.txt"

@smokeTest
Scenario Outline: Trashbin can be emptied
Scenario Outline: trashbin can be emptied
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "file with comma" to "sample,0.txt"
And user "Alice" has uploaded file with content "file with comma" to "sample,1.txt"
Expand Down Expand Up @@ -85,7 +85,7 @@ Feature: files and folders can be deleted from the trashbin
| spaces |


Scenario Outline: User tries to delete another user's trashbin
Scenario Outline: user tries to delete another user's trashbin
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has deleted file "/textfile0.txt"
Expand All @@ -105,7 +105,7 @@ Feature: files and folders can be deleted from the trashbin
| spaces | 404 |


Scenario Outline: User tries to delete trashbin file using invalid password
Scenario Outline: user tries to delete trashbin file using invalid password
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has deleted file "/textfile0.txt"
Expand All @@ -128,7 +128,7 @@ Feature: files and folders can be deleted from the trashbin
| spaces |


Scenario Outline: User tries to delete trashbin file using no password
Scenario Outline: user tries to delete trashbin file using no password
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has deleted file "/textfile0.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces |

@issue-3561
Scenario Outline: Listing other user's trashbin is prohibited
Scenario Outline: listing other user's trashbin is prohibited
Given using <dav-path> DAV path
And user "testtrashbin100" has been created with default attributes and without skeleton files
And user "testtrashbin100" has uploaded file "filesForUpload/textfile.txt" to "/textfile1.txt"
Expand All @@ -177,7 +177,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces | 404 |

@issue-3561 @smokeTest
Scenario Outline: Listing other user's trashbin is prohibited with multiple files on trashbin
Scenario Outline: listing other user's trashbin is prohibited with multiple files on trashbin
Given using <dav-path> DAV path
And user "testtrashbin101" has been created with default attributes and without skeleton files
And user "testtrashbin101" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
Expand All @@ -198,7 +198,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces | 404 |

@issue-3561 @provisioning_api-app-required
Scenario Outline: Listing other user's trashbin is prohibited for newly recreated user with same name
Scenario Outline: listing other user's trashbin is prohibited for newly recreated user with same name
Given using <dav-path> DAV path
And user "testtrashbin102" has been created with default attributes and without skeleton files
And user "testtrashbin102" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
Expand All @@ -224,7 +224,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces | 404 |

@issue-3561
Scenario Outline: Listing other user's empty unused trashbin is prohibited
Scenario Outline: listing other user's empty unused trashbin is prohibited
Given using <dav-path> DAV path
And user "testtrashbinempty" has been created with default attributes and without skeleton files
And user "testtrashbinempty" has uploaded file "filesForUpload/textfile.txt" to "/textfile1.txt"
Expand All @@ -240,7 +240,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces |

@issue-3561
Scenario Outline: Listing non-existent user's trashbin is prohibited
Scenario Outline: listing non-existent user's trashbin is prohibited
Given using <dav-path> DAV path
When user "Alice" tries to list the trashbin content for user "testtrashbinnotauser"
Then the HTTP status code should be "404"
Expand All @@ -254,7 +254,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces |

@smokeTest
Scenario Outline: Get trashbin content with wrong password
Scenario Outline: get trashbin content with wrong password
Given using <dav-path> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
And user "Alice" has deleted file "/textfile0.txt"
Expand All @@ -273,7 +273,7 @@ Feature: files and folders exist in the trashbin after being deleted
| spaces |

@smokeTest
Scenario Outline: Get trashbin content without password
Scenario Outline: get trashbin content without password
Given using <dav-path> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
And user "Alice" has deleted file "/textfile0.txt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@api
Feature: using trashbin together with sharing
As a user
I want the deletion of the resources that I shared to end up in my trashbin
So that I can restore the resources that were accidentally deleted

Background:
Given user "Alice" has been created with default attributes and without skeleton files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@api @issue-1324
Feature: Restore deleted files/folders
Feature: restore deleted files/folders
As a user
I would like to restore files/folders
So that I can recover accidentally deleted files/folders in ownCloud
Expand All @@ -9,7 +9,7 @@ Feature: Restore deleted files/folders
And user "Alice" has uploaded file with content "file to delete" to "/textfile0.txt"

@smokeTest
Scenario Outline: A deleted file can be restored
Scenario Outline: deleted file can be restored
Given using <dav-path> DAV path
And user "Alice" has created folder "/FOLDER"
And user "Alice" has created folder "/PARENT"
Expand All @@ -35,7 +35,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A file deleted from a folder can be restored to the original folder
Scenario Outline: file deleted from a folder can be restored to the original folder
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has moved file "/textfile0.txt" to "/new-folder/new-file.txt"
Expand All @@ -51,7 +51,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A file deleted from a folder is restored to the original folder if the original folder was deleted and restored
Scenario Outline: file deleted from a folder is restored to the original folder if the original folder was deleted and restored
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has moved file "/textfile0.txt" to "/new-folder/new-file.txt"
Expand All @@ -69,7 +69,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: a file is deleted and restored to a new destination
Scenario Outline: file is deleted and restored to a new destination
Given using <dav-path> DAV path
And user "Alice" has created folder "/PARENT"
And user "Alice" has created folder "/PARENT/CHILD"
Expand Down Expand Up @@ -111,7 +111,7 @@ Feature: Restore deleted files/folders
| new | "/PARENT/.hiddenfile0.txt" | ".hiddenfile0.txt" |


Scenario Outline: A file deleted from a folder is restored to the original folder if the original folder was deleted and recreated
Scenario Outline: file deleted from a folder is restored to the original folder if the original folder was deleted and recreated
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has moved file "/textfile0.txt" to "/new-folder/new-file.txt"
Expand All @@ -131,7 +131,7 @@ Feature: Restore deleted files/folders
| new |

@smokeTest
Scenario Outline: A deleted file cannot be restored by a different user
Scenario Outline: deleted file cannot be restored by a different user
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has deleted file "/textfile0.txt"
Expand All @@ -146,7 +146,7 @@ Feature: Restore deleted files/folders
| new | 404 |

@smokeTest
Scenario Outline: A deleted file cannot be restored with invalid password
Scenario Outline: deleted file cannot be restored with invalid password
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has deleted file "/textfile0.txt"
Expand All @@ -161,7 +161,7 @@ Feature: Restore deleted files/folders
| new |

@smokeTest
Scenario Outline: A deleted file cannot be restored without using a password
Scenario Outline: deleted file cannot be restored without using a password
Given using <dav-path> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has deleted file "/textfile0.txt"
Expand All @@ -176,7 +176,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: Files with strange names can be restored
Scenario Outline: files with strange names can be restored
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "file original content" to "<file-to-upload>"
And user "Alice" has deleted file "<file-to-upload>"
Expand All @@ -195,7 +195,7 @@ Feature: Restore deleted files/folders
| new | sample,1.txt |


Scenario Outline: A file deleted from a multi level sub-folder can be restored to the original folder
Scenario Outline: file deleted from a multi level sub-folder can be restored to the original folder
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has created folder "/new-folder/folder1/"
Expand All @@ -213,7 +213,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted multi level folder can be restored including the content
Scenario Outline: deleted multi level folder can be restored including the content
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has created folder "/new-folder/folder1/"
Expand All @@ -231,7 +231,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A subfolder from a deleted multi level folder can be restored including the content
Scenario Outline: subfolder from a deleted multi level folder can be restored including the content
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has created folder "/new-folder/folder1"
Expand All @@ -251,7 +251,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A file from a deleted multi level sub-folder can be restored
Scenario Outline: file from a deleted multi level sub-folder can be restored
Given using <dav-path> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has created folder "/new-folder/folder1/"
Expand All @@ -271,7 +271,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted hidden file can be restored
Scenario Outline: deleted hidden file can be restored
Given using <dav-path> DAV path
And user "Alice" has created folder "/FOLDER"
And user "Alice" has uploaded the following files with content "hidden file"
Expand Down Expand Up @@ -383,7 +383,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted file inside a nested folder can be restored to a different location
Scenario Outline: deleted file inside a nested folder can be restored to a different location
Given using <dav-path> DAV path
And user "Alice" has created folder "/parent_folder"
And user "Alice" has created folder "/parent_folder/sub"
Expand All @@ -401,7 +401,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted file inside a nested folder cannot be restored to the original location if the location doesn't exist
Scenario Outline: deleted file inside a nested folder cannot be restored to the original location if the location doesn't exist
Given using <dav-path> DAV path
And user "Alice" has created folder "/parent_folder"
And user "Alice" has created folder "/parent_folder/sub"
Expand All @@ -420,7 +420,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted file inside a nested folder can be restored to the original location if the location exists
Scenario Outline: deleted file inside a nested folder can be restored to the original location if the location exists
Given using <dav-path> DAV path
And user "Alice" has created folder "/parent_folder"
And user "Alice" has created folder "/parent_folder/sub"
Expand All @@ -444,7 +444,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted file inside a nested folder cannot be restored without the destination
Scenario Outline: deleted file inside a nested folder cannot be restored without the destination
Given using <dav-path> DAV path
And user "Alice" has created folder "/parent_folder"
And user "Alice" has created folder "/parent_folder/sub"
Expand All @@ -463,7 +463,7 @@ Feature: Restore deleted files/folders
| new |


Scenario Outline: A deleted file cannot be restored without the destination
Scenario Outline: deleted file cannot be restored without the destination
Given using <dav-path> DAV path
And user "Alice" has uploaded file with content "parent text" to "/parent.txt"
And user "Alice" has deleted file "parent.txt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@api @issue-2914
Feature: file versions remember the author of each version
As a user
I want to know the author of each version of a file
So that I can better understand the version history and choose a version to restore

Background:
Given using OCS API version "2"
Expand Down
Loading

0 comments on commit 021c9fc

Please sign in to comment.