Feature: delete file As a user I want to be able to delete files So that I can remove unwanted data Background: Given user "Alice" has been created with default attributes and without skeleton files @smokeTest Scenario Outline: delete a file Given using DAV path And user "Alice" has uploaded file with content "to delete" to "/textfile0.txt" 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 not exist Examples: | dav-path-version | | old | | new | @skipOnRevaMaster Examples: | dav-path-version | | spaces | Scenario Outline: delete a file when 2 files exist with different case Given using DAV path And user "Alice" has uploaded file with content "to delete" to "/textfile1.txt" And user "Alice" has uploaded file with content "uploaded content" to "/TextFile1.txt" When user "Alice" deletes file "/textfile1.txt" using the WebDAV API Then the HTTP status code should be "204" And as "Alice" file "/textfile1.txt" should not exist And as "Alice" file "/TextFile1.txt" should exist And the content of file "/TextFile1.txt" for user "Alice" should be "uploaded content" Examples: | dav-path-version | | old | | new | @skipOnRevaMaster Examples: | dav-path-version | | spaces | Scenario Outline: delete file from folder with dots in the path Given using DAV path And user "Alice" has created folder "" And user "Alice" has uploaded file with content "uploaded content for file name with dots" to "/" When user "Alice" deletes file "/" using the WebDAV API Then the HTTP status code should be "204" And as "Alice" file "/" should not exist Examples: | dav-path-version | folder_name | file_name | | old | /upload. | abc. | | old | /upload. | abc . | | old | /upload.1 | abc.txt | | old | /upload...1.. | abc...txt.. | | old | /... | ... | | old | /..upload | abc | | old | /..upload | ..abc | | new | /upload. | abc. | | new | /upload. | abc . | | new | /upload.1 | abc.txt | | new | /upload...1.. | abc...txt.. | | new | /... | ... | | new | /..upload | abc | | new | /..upload | ..abc | @skipOnRevaMaster Examples: | dav-path-version | folder_name | file_name | | spaces | /upload. | abc. | | spaces | /upload...1.. | abc...txt.. | | spaces | /upload.1 | abc.txt | | spaces | /upload. | abc . | | spaces | /... | ... | | spaces | /..upload | abc | | spaces | /..upload | ...abc | Scenario Outline: delete a file with comma in the filename Given using DAV path And user "Alice" has uploaded file with content "file with comma in filename" to When user "Alice" deletes file using the WebDAV API Then the HTTP status code should be "204" And as "Alice" file should not exist Examples: | dav-path-version | filename | | old | "sample,1.txt" | | old | ",,,.txt" | | old | ",,,.," | | new | "sample,1.txt" | | new | ",,,.txt" | | new | ",,,.," | @skipOnRevaMaster Examples: | dav-path-version | filename | | spaces | "sample,1.txt" | | spaces | ",,,.txt" | | spaces | ",,,.," | Scenario Outline: delete a hidden file Given using DAV path And user "Alice" has created folder "/FOLDER" And user "Alice" has uploaded the following files with content "hidden file" | path | | .hidden_file | | /FOLDER/.hidden_file | When user "Alice" deletes the following files | path | | .hidden_file | | /FOLDER/.hidden_file | Then the HTTP status code of responses on all endpoints should be "204" And as "Alice" the following files should not exist | path | | .hidden_file | | /FOLDER/.hidden_file | Examples: | dav-path-version | | old | | new | @skipOnRevaMaster Examples: | dav-path-version | | spaces | Scenario: delete a file of size zero byte Given user "Alice" has uploaded file "filesForUpload/zerobyte.txt" to "/zerobyte.txt" When user "Alice" deletes file "/zerobyte.txt" using the WebDAV API Then the HTTP status code should be "204" And as "Alice" file "/zerobyte.txt" should not exist