From c9393e79b844601675ba16ffc9c6369d8153303d Mon Sep 17 00:00:00 2001 From: Nalem7 <61624650+nabim777@users.noreply.github.com> Date: Wed, 14 Jun 2023 15:30:00 +0545 Subject: [PATCH] update public sharing test for zip virus file (#6506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”> --- .../features/apiAntivirus/antivirus.feature | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/tests/acceptance/features/apiAntivirus/antivirus.feature b/tests/acceptance/features/apiAntivirus/antivirus.feature index 87fcca24b..a74dd31dd 100644 --- a/tests/acceptance/features/apiAntivirus/antivirus.feature +++ b/tests/acceptance/features/apiAntivirus/antivirus.feature @@ -94,17 +94,20 @@ Feature: antivirus | name | sharedlink | | permissions | change | | expireDate | 2040-01-01T23:59:59+0100 | - When user "Alice" uploads file "filesForUpload/filesWithVirus/eicar.com" to "/virusFile.txt" using the WebDAV API + When user "Alice" uploads file "filesForUpload/filesWithVirus/" to "/" using the WebDAV API Then the HTTP status code should be "201" And user "Alice" should get a notification with subject "Virus found" and message: | message | - | Virus found in virusFile.txt. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | - And as "Alice" file "/uploadFolder/virusFile.txt" should not exist + | Virus found in . Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + And as "Alice" file "/uploadFolder/" should not exist Examples: - | dav-path-version | - | old | - | new | - | spaces | + | dav-path-version | filename | newfilename | + | old | eicar.com | virusFile1.txt | + | old | eicar_com.zip | virusFile2.zip | + | new | eicar.com | virusFile1.txt | + | new | eicar_com.zip | virusFile2.zip | + | spaces | eicar.com | virusFile1.txt | + | spaces | eicar_com.zip | virusFile2.zip | Scenario Outline: upload a file with the virus to a password-protected public share @@ -116,17 +119,20 @@ Feature: antivirus | permissions | change | | password | newpasswd | | expireDate | 2040-01-01T23:59:59+0100 | - When user "Alice" uploads file "filesForUpload/filesWithVirus/eicar.com" to "/virusFile.txt" using the WebDAV API + When user "Alice" uploads file "filesForUpload/filesWithVirus/" to "/" using the WebDAV API Then the HTTP status code should be "201" And user "Alice" should get a notification with subject "Virus found" and message: | message | - | Virus found in virusFile.txt. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | - And as "Alice" file "/uploadFolder/virusFile.txt" should not exist + | Virus found in . Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + And as "Alice" file "/uploadFolder/" should not exist Examples: - | dav-path-version | - | old | - | new | - | spaces | + | dav-path-version | filename | newfilename | + | old | eicar.com | virusFile1.txt | + | old | eicar_com.zip | virusFile2.zip | + | new | eicar.com | virusFile1.txt | + | new | eicar_com.zip | virusFile2.zip | + | spaces | eicar.com | virusFile1.txt | + | spaces | eicar_com.zip | virusFile2.zip | Scenario Outline: upload a file with virus to a user share