Refactoring example table scenerio (#6697)

This commit is contained in:
Sabin Panta
2023-07-12 12:42:32 +05:45
committed by GitHub
parent 51bc49d5b5
commit f2498e1fdf
62 changed files with 2869 additions and 2868 deletions
@@ -10,39 +10,39 @@ Feature: files and folders exist in the trashbin after being deleted
@smokeTest
Scenario Outline: deleting a file moves it to trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
When user "Alice" deletes file "/textfile0.txt" using the WebDAV API
Then the HTTP status code should be "204"
And as "Alice" file "/textfile0.txt" should exist in the trashbin
But as "Alice" file "/textfile0.txt" should not exist
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@smokeTest
Scenario Outline: deleting a folder moves it to trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has created folder "/tmp"
When user "Alice" deletes folder "/tmp" using the WebDAV API
Then the HTTP status code should be "204"
And as "Alice" folder "/tmp" should exist in the trashbin
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
Scenario Outline: deleting a file in a folder moves it to the trashbin root
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has moved file "/textfile0.txt" to "/new-folder/new-file.txt"
When user "Alice" deletes file "/new-folder/new-file.txt" using the WebDAV API
@@ -51,17 +51,17 @@ Feature: files and folders exist in the trashbin after being deleted
And as "Alice" file "/new-file.txt" should exist in the trashbin
But as "Alice" file "/new-folder/new-file.txt" should not exist
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
Scenario Outline: deleting a file in a shared folder moves it to the trashbin root
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/shared"
And user "Alice" has moved file "/textfile0.txt" to "/shared/shared_file.txt"
@@ -72,17 +72,17 @@ Feature: files and folders exist in the trashbin after being deleted
And as "Alice" file "/shared_file.txt" should exist in the trashbin
But as "Alice" file "/shared/shared_file.txt" should not exist
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
Scenario Outline: deleting a shared folder moves it to trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/shared"
And user "Alice" has moved file "/textfile0.txt" to "/shared/shared_file.txt"
@@ -91,13 +91,13 @@ Feature: files and folders exist in the trashbin after being deleted
Then the HTTP status code should be "204"
And as "Alice" the folder with original path "/shared" should exist in the trashbin
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
# This scenario deletes many files as close together in time as the test can run.
@@ -105,7 +105,7 @@ Feature: files and folders exist in the trashbin after being deleted
# But on "reasonable" systems, some of the files will be deleted in the same second,
# thus testing the required behavior.
Scenario Outline: trashbin can store two files with the same name but different origins when the files are deleted close together in time
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has created folder "/folderA"
And user "Alice" has created folder "/folderB"
And user "Alice" has created folder "/folderC"
@@ -127,17 +127,17 @@ Feature: files and folders exist in the trashbin after being deleted
And as "Alice" the folder with original path "/folderD/textfile0.txt" should exist in the trashbin
And as "Alice" the folder with original path "/textfile0.txt" should exist in the trashbin
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
# Note: the underlying acceptance test code ensures that each delete step is separated by a least 1 second
Scenario Outline: trashbin can store two files with the same name but different origins when the deletes are separated by at least 1 second
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has created folder "/folderA"
And user "Alice" has created folder "/folderB"
And user "Alice" has copied file "/textfile0.txt" to "/folderA/textfile0.txt"
@@ -150,17 +150,17 @@ Feature: files and folders exist in the trashbin after being deleted
And as "Alice" the folder with original path "/folderB/textfile0.txt" should exist in the trashbin
And as "Alice" the folder with original path "/textfile0.txt" should exist in the trashbin
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@issue-3561
Scenario Outline: listing other user's trashbin is prohibited
Given using <dav-path> DAV path
Given using <dav-path-version> 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"
And user "Brian" has been created with default attributes and without skeleton files
@@ -172,13 +172,13 @@ Feature: files and folders exist in the trashbin after being deleted
| textfile1.txt | testtrashbin100 |
@skipOnRevaMaster
Examples:
| dav-path |
| new |
| spaces |
| dav-path-version |
| new |
| spaces |
@issue-3561 @smokeTest
Scenario Outline: listing other user's trashbin is prohibited with multiple files on trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> 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"
And user "testtrashbin101" has uploaded file "filesForUpload/textfile.txt" to "/textfile2.txt"
@@ -193,13 +193,13 @@ Feature: files and folders exist in the trashbin after being deleted
| textfile2.txt | testtrashbin101 |
@skipOnRevaMaster
Examples:
| dav-path |
| new |
| spaces |
| dav-path-version |
| new |
| spaces |
@issue-3561 @provisioning_api-app-required
Scenario Outline: listing other user's trashbin is prohibited for newly recreated user with same name
Given using <dav-path> DAV path
Given using <dav-path-version> 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"
And user "testtrashbin102" has uploaded file "filesForUpload/textfile.txt" to "/textfile2.txt"
@@ -219,43 +219,43 @@ Feature: files and folders exist in the trashbin after being deleted
| textfile3.txt | testtrashbin102 |
@skipOnRevaMaster
Examples:
| dav-path |
| new |
| spaces |
| dav-path-version |
| new |
| spaces |
@issue-3561
Scenario Outline: listing other user's empty unused trashbin is prohibited
Given using <dav-path> DAV path
Given using <dav-path-version> 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"
When user "Alice" tries to list the trashbin content for user "testtrashbinempty"
Then the HTTP status code should be "404"
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@issue-3561
Scenario Outline: listing non-existent user's trashbin is prohibited
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
When user "Alice" tries to list the trashbin content for user "testtrashbinnotauser"
Then the HTTP status code should be "404"
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@smokeTest
Scenario Outline: get trashbin content with wrong password
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
And user "Alice" has deleted file "/textfile0.txt"
When user "Alice" tries to list the trashbin content for user "Alice" using password "invalid"
@@ -264,17 +264,17 @@ Feature: files and folders exist in the trashbin after being deleted
| path | user |
| /textfile0.txt | Alice |
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@smokeTest
Scenario Outline: get trashbin content without password
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
And user "Alice" has deleted file "/textfile0.txt"
When user "Alice" tries to list the trashbin content for user "Alice" using password ""
@@ -283,17 +283,17 @@ Feature: files and folders exist in the trashbin after being deleted
| path | user |
| /textfile0.txt | Alice |
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
Scenario Outline: user with unusual username deletes a file
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "<username>" has been created with default attributes and without skeleton files
And user "<username>" has uploaded file with content "to delete" to "/textfile0.txt"
When user "<username>" deletes file "/textfile0.txt" using the WebDAV API
@@ -301,38 +301,38 @@ Feature: files and folders exist in the trashbin after being deleted
And as "<username>" file "/textfile0.txt" should exist in the trashbin
But as "<username>" file "/textfile0.txt" should not exist
Examples:
| dav-path | username |
| new | dash-123 |
| new | null |
| new | nil |
| dav-path-version | username |
| new | dash-123 |
| new | null |
| new | nil |
@skipOnRevaMaster
Examples:
| dav-path | username |
| spaces | dash-123 |
| spaces | null |
| spaces | nil |
| dav-path-version | username |
| spaces | dash-123 |
| spaces | null |
| spaces | nil |
Scenario Outline: deleting a file with comma in the filename moves it to trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has uploaded file with content "file with comma in filename" to "sample,1.txt"
When user "Alice" deletes file "sample,1.txt" using the WebDAV API
Then the HTTP status code should be "204"
And as "Alice" file "sample,1.txt" should exist in the trashbin
But as "Alice" file "sample,1.txt" should not exist
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
Scenario Outline: deleting a folder moves all its content to the trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has created folder "/new-folder"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/new-folder/new-file.txt"
When user "Alice" deletes folder "/new-folder" using the WebDAV API
@@ -342,34 +342,34 @@ Feature: files and folders exist in the trashbin after being deleted
And as "Alice" file "/new-folder/new-file.txt" should exist in the trashbin
But as "Alice" file "/new-folder/new-file.txt" should not exist
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@issue-541
Scenario Outline: deleted file has appropriate deletion time information
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "file.txt" with mtime "Thu, 08 Aug 2018 04:18:13 GMT" using the WebDAV API
And user "Alice" has deleted file "file.txt"
When user "Alice" tries to list the trashbin content for user "Alice"
Then the HTTP status code should be "207"
And the deleted file "file.txt" should have the correct deletion mtime in the response
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@issue-1547
Scenario Outline: deleting files with special characters moves it to trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has uploaded the following files with content "special character file"
| path |
| qa&dev.txt |
@@ -396,17 +396,17 @@ Feature: files and folders exist in the trashbin after being deleted
| %file *?2.txt |
| # %ab ab?=ed.txt |
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |
@issue-1547
Scenario Outline: deleting folders with special characters moves it to trashbin
Given using <dav-path> DAV path
Given using <dav-path-version> DAV path
And user "Alice" has created the following folders
| path |
| qa&dev |
@@ -433,10 +433,10 @@ Feature: files and folders exist in the trashbin after being deleted
| %file *?2 |
| # %ab ab?=ed |
Examples:
| dav-path |
| new |
| dav-path-version |
| new |
@skipOnRevaMaster
Examples:
| dav-path |
| spaces |
| dav-path-version |
| spaces |