From 9193df0385d5f64c9e33f36197c9ee796c4335b6 Mon Sep 17 00:00:00 2001 From: prashant-gurung899 Date: Wed, 4 Jun 2025 10:52:44 +0545 Subject: [PATCH] tests: update antivirus tests for zip files Signed-off-by: prashant-gurung899 --- ...failures-localAPI-on-decomposed-storage.md | 22 --- ...cted-failures-localAPI-on-posix-storage.md | 22 --- .../expected-failures-without-remotephp.md | 6 + .../features/apiAntivirus/antivirus.feature | 134 +++++++++--------- .../filesWithVirus/eicar_com.zip | Bin 0 -> 184 bytes 5 files changed, 73 insertions(+), 111 deletions(-) diff --git a/tests/acceptance/expected-failures-localAPI-on-decomposed-storage.md b/tests/acceptance/expected-failures-localAPI-on-decomposed-storage.md index 4a4e5519a1..0f516d03dd 100644 --- a/tests/acceptance/expected-failures-localAPI-on-decomposed-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-decomposed-storage.md @@ -205,27 +205,5 @@ - [apiSearch1/search.feature:466](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L466) - [apiSearch1/search.feature:467](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L467) -#### [No notification triggered for .zip virus file](https://github.com/opencloud-eu/opencloud/issues/382) -- [apiAntivirus/antivirus.feature:41](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L41) -- [apiAntivirus/antivirus.feature:43](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L43) -- [apiAntivirus/antivirus.feature:45](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L45) -- [apiAntivirus/antivirus.feature:69](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L69) -- [apiAntivirus/antivirus.feature:71](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L71) -- [apiAntivirus/antivirus.feature:73](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L73) -- [apiAntivirus/antivirus.feature:115](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L115) -- [apiAntivirus/antivirus.feature:117](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L117) -- [apiAntivirus/antivirus.feature:119](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L119) -- [apiAntivirus/antivirus.feature:141](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L141) -- [apiAntivirus/antivirus.feature:143](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L143) -- [apiAntivirus/antivirus.feature:145](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L145) -- [apiAntivirus/antivirus.feature:169](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L169) -- [apiAntivirus/antivirus.feature:171](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L171) -- [apiAntivirus/antivirus.feature:173](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L173) -- [apiAntivirus/antivirus.feature:199](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L199) -- [apiAntivirus/antivirus.feature:201](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L201) -- [apiAntivirus/antivirus.feature:203](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L203) -- [apiAntivirus/antivirus.feature:228](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L228) -- [apiAntivirus/antivirus.feature:253](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L253) - Note: always have an empty line at the end of this file. The bash script that processes this file requires that the last line has a newline on the end. diff --git a/tests/acceptance/expected-failures-localAPI-on-posix-storage.md b/tests/acceptance/expected-failures-localAPI-on-posix-storage.md index 4a4e5519a1..0f516d03dd 100644 --- a/tests/acceptance/expected-failures-localAPI-on-posix-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-posix-storage.md @@ -205,27 +205,5 @@ - [apiSearch1/search.feature:466](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L466) - [apiSearch1/search.feature:467](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L467) -#### [No notification triggered for .zip virus file](https://github.com/opencloud-eu/opencloud/issues/382) -- [apiAntivirus/antivirus.feature:41](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L41) -- [apiAntivirus/antivirus.feature:43](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L43) -- [apiAntivirus/antivirus.feature:45](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L45) -- [apiAntivirus/antivirus.feature:69](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L69) -- [apiAntivirus/antivirus.feature:71](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L71) -- [apiAntivirus/antivirus.feature:73](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L73) -- [apiAntivirus/antivirus.feature:115](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L115) -- [apiAntivirus/antivirus.feature:117](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L117) -- [apiAntivirus/antivirus.feature:119](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L119) -- [apiAntivirus/antivirus.feature:141](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L141) -- [apiAntivirus/antivirus.feature:143](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L143) -- [apiAntivirus/antivirus.feature:145](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L145) -- [apiAntivirus/antivirus.feature:169](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L169) -- [apiAntivirus/antivirus.feature:171](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L171) -- [apiAntivirus/antivirus.feature:173](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L173) -- [apiAntivirus/antivirus.feature:199](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L199) -- [apiAntivirus/antivirus.feature:201](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L201) -- [apiAntivirus/antivirus.feature:203](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L203) -- [apiAntivirus/antivirus.feature:228](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L228) -- [apiAntivirus/antivirus.feature:253](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L253) - Note: always have an empty line at the end of this file. The bash script that processes this file requires that the last line has a newline on the end. diff --git a/tests/acceptance/expected-failures-without-remotephp.md b/tests/acceptance/expected-failures-without-remotephp.md index ea669ab2de..b7eb81934b 100644 --- a/tests/acceptance/expected-failures-without-remotephp.md +++ b/tests/acceptance/expected-failures-without-remotephp.md @@ -204,11 +204,17 @@ - [apiLocks/unlockFiles.feature:322](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiLocks/unlockFiles.feature#L322) - [apiLocks/unlockFiles.feature:323](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiLocks/unlockFiles.feature#L323) - [apiAntivirus/antivirus.feature:114](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L114) +- [apiAntivirus/antivirus.feature:115](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L115) - [apiAntivirus/antivirus.feature:116](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L116) +- [apiAntivirus/antivirus.feature:117](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L117) - [apiAntivirus/antivirus.feature:118](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L118) +- [apiAntivirus/antivirus.feature:119](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L119) - [apiAntivirus/antivirus.feature:140](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L140) +- [apiAntivirus/antivirus.feature:141](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L141) - [apiAntivirus/antivirus.feature:142](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L142) +- [apiAntivirus/antivirus.feature:143](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L143) - [apiAntivirus/antivirus.feature:144](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L144) +- [apiAntivirus/antivirus.feature:145](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L145) - [apiAntivirus/antivirus.feature:356](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L356) - [apiAntivirus/antivirus.feature:357](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L357) - [apiAntivirus/antivirus.feature:358](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiAntivirus/antivirus.feature#L358) diff --git a/tests/acceptance/features/apiAntivirus/antivirus.feature b/tests/acceptance/features/apiAntivirus/antivirus.feature index 86ab76278e..6d2b215802 100644 --- a/tests/acceptance/features/apiAntivirus/antivirus.feature +++ b/tests/acceptance/features/apiAntivirus/antivirus.feature @@ -32,17 +32,17 @@ Feature: antivirus # antivirus service can scan files during post-processing. on demand scanning is currently not available 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 . Upload not possible. Virus: Eicar-Signature | + | message | + | | And as "Alice" file "" should not exist Examples: - | dav-path-version | file-name | new-file-name | - | 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 | + | dav-path-version | file-name | new-file-name | message | + | old | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | old | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | new | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | new | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | spaces | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | spaces | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | Scenario Outline: upload a file with virus and a file without virus @@ -53,8 +53,8 @@ Feature: antivirus And user "Alice" uploads file "filesForUpload/textfile.txt" to "/normalfile.txt" using the WebDAV API And the HTTP status code should be "201" And user "Alice" should get a notification with subject "Virus found" and message: - | message | - | Virus found in . Upload not possible. Virus: Eicar-Signature | + | message | + | | And as "Alice" file "" should not exist But as "Alice" file "/normalfile.txt" should exist And the content of file "/normalfile.txt" for user "Alice" should be: @@ -64,13 +64,13 @@ Feature: antivirus Cheers. """ Examples: - | dav-path-version | file-name | new-file-name | - | 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 | + | dav-path-version | file-name | new-file-name | message | + | old | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | old | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | new | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | new | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | spaces | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | spaces | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | Scenario Outline: upload a file with virus in chunks @@ -92,7 +92,7 @@ Feature: antivirus | new | | spaces | - @issue-10331 + @issue-10331 @env-config Scenario Outline: public uploads a file with the virus to a public share Given using DAV path And the config "OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" has been set to "false" @@ -106,17 +106,17 @@ Feature: antivirus When the public uploads file "filesForUpload/filesWithVirus/" to "" inside last link shared folder using the public 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 . Upload not possible. Virus: Eicar-Signature | + | message | + | | And as "Alice" file "/uploadFolder/" should not exist Examples: - | dav-path-version | file-name | new-file-name | - | 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 | + | dav-path-version | file-name | new-file-name | message | + | old | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | old | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | new | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | new | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | spaces | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | spaces | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | @issue-10331 Scenario Outline: public uploads a file with the virus to a password-protected public share @@ -132,17 +132,17 @@ Feature: antivirus When the public uploads file "filesForUpload/filesWithVirus/" to "" inside last link shared folder with password "%public%" using the public 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 . Upload not possible. Virus: Eicar-Signature | + | message | + | | And as "Alice" file "/uploadFolder/" should not exist Examples: - | dav-path-version | file-name | new-file-name | - | 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 | + | dav-path-version | file-name | new-file-name | message | + | old | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | old | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | new | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | new | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | spaces | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | spaces | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | Scenario Outline: upload a file with virus to a user share @@ -159,18 +159,18 @@ Feature: antivirus When user "Brian" uploads file "filesForUpload/filesWithVirus/" to "/Shares/uploadFolder/" using the WebDAV API Then the HTTP status code should be "201" And user "Brian" should get a notification with subject "Virus found" and message: - | message | - | Virus found in . Upload not possible. Virus: Eicar-Signature | + | message | + | | And as "Brian" file "/Shares/uploadFolder/" should not exist And as "Alice" file "/uploadFolder/" should not exist Examples: - | dav-path-version | file-name | new-file-name | - | 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 | + | dav-path-version | file-name | new-file-name | message | + | old | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | old | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | new | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | new | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | spaces | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | spaces | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | Scenario Outline: upload a file with virus to a group share @@ -189,18 +189,18 @@ Feature: antivirus When user "Brian" uploads file "filesForUpload/filesWithVirus/" to "/Shares/uploadFolder/" using the WebDAV API Then the HTTP status code should be "201" And user "Brian" should get a notification with subject "Virus found" and message: - | message | - | Virus found in . Upload not possible. Virus: Eicar-Signature | + | message | + | | And as "Brian" file "/Shares/uploadFolder/" should not exist And as "Alice" file "/uploadFolder/" should not exist Examples: - | dav-path-version | file-name | new-file-name | - | 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.txt | + | dav-path-version | file-name | new-file-name | message | + | old | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | old | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | new | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | new | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | + | spaces | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | spaces | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | Scenario Outline: upload a file with virus to a project space @@ -211,21 +211,21 @@ Feature: antivirus When user "Alice" uploads a file "filesForUpload/filesWithVirus/" to "/uploadFolder/" in space "new-space" using the WebDAV API Then the HTTP status code should be "201" And user "Alice" should get a notification for resource "" with subject "Virus found" and message: - | message | - | Virus found in . Upload not possible. Virus: Eicar-Signature | + | message | + | | And for user "Alice" folder "uploadFolder" of the space "new-space" should not contain these entries: | | When user "Alice" uploads a file "filesForUpload/filesWithVirus/" to "/" in space "new-space" using the WebDAV API Then the HTTP status code should be "201" And user "Alice" should get a notification for resource "" with subject "Virus found" and message: - | message | - | Virus found in . Upload not possible. Virus: Eicar-Signature | + | message | + | | And for user "Alice" the space "new-space" should not contain these entries: | / | Examples: - | file-name | new-file-name | - | eicar.com | virusFile1.txt | - | eicar_com.zip | virusFile2.zip | + | file-name | new-file-name | message | + | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | Scenario Outline: upload a file with virus to a shared project space @@ -241,16 +241,16 @@ Feature: antivirus When user "Brian" uploads a file "/filesForUpload/filesWithVirus/" to "/" in space "new-space" using the WebDAV API Then the HTTP status code should be "201" And user "Brian" should get a notification with subject "Virus found" and message: - | message | - | Virus found in . Upload not possible. Virus: Eicar-Signature | + | message | + | | And for user "Brian" the space "new-space" should not contain these entries: | / | And for user "Alice" the space "new-space" should not contain these entries: | / | Examples: - | file-name | new-file-name | - | eicar.com | virusFile1.txt | - | eicar_com.zip | virusFile2.zip | + | file-name | new-file-name | message | + | eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: Eicar-Signature | + | eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: Win.Test.EICAR_HDB-1 | @env-config @issue-6494 Scenario Outline: upload a file with virus by setting antivirus infected file handling config to continue diff --git a/tests/acceptance/filesForUpload/filesWithVirus/eicar_com.zip b/tests/acceptance/filesForUpload/filesWithVirus/eicar_com.zip index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e7e8cefb257c8d4905538feabae7fe9309d792d1 100644 GIT binary patch literal 184 zcmWIWW@h1H0D%WHc4*j~56o}@vO$;=h*L9@6N~hc^K&Ci{S^aL9UKFqO=1F~B1}y* z0^&5yot-t!YgJr5ogIU8gF_tsTpWX3bRGRdJi|PLLW6ZfT!TY&-8_9<6;(X6J+uP6 m8JR>Fa9aknkAaavf#H86hy}Mgz?+o~BE`sH4rFA5I1B)Pq$ZvK literal 0 HcmV?d00001