[tests-only]Add test for ANTIVIRUS_INFECTED_FILE_HANDLING (#6498)

* Corrected the issues in scenerio

* rebase current branch
This commit is contained in:
Sabin Panta
2023-06-22 13:23:30 +05:45
committed by GitHub
parent 20252409ba
commit edc00ebd12

View File

@@ -266,6 +266,19 @@ Feature: antivirus
| eicar.com | virusFile1.txt |
| eicar_com.zip | virusFile2.zip |
@env-config @issue-6494
Scenario Outline: upload a file with virus by setting antivirus infected file handling config to continue
Given the config "ANTIVIRUS_INFECTED_FILE_HANDLING" has been set to "continue"
And using <dav-path-version> DAV path
When user "Alice" uploads file "filesForUpload/filesWithVirus/eicar.com" to "/aFileWithVirus.txt" using the WebDAV API
Then the HTTP status code should be "201"
And as "Alice" file "/aFileWithVirus.txt" should exist
Examples:
| dav-path-version |
| old |
| new |
| spaces |
@env-config
Scenario Outline: upload a file with virus smaller than the upload threshold
Given the config "ANTIVIRUS_MAX_SCAN_SIZE" has been set to "100"
@@ -295,7 +308,7 @@ Feature: antivirus
| new |
| spaces |
@issue-enterprise-5706
@issue-enterprise-5706
Scenario Outline: upload a file with virus and get notification in different languages
Given user "Alice" has switched the system language to "<language>"
And using <dav-path-version> DAV path
@@ -313,7 +326,7 @@ Feature: antivirus
| old | de | Virus gefunden | In aFileWithVirus.txt wurde potenziell schädlicher Code gefunden. Das Hochladen wurde abgebrochen. Grund: Win.Test.EICAR_HDB-1 |
| new | de | Virus gefunden | In aFileWithVirus.txt wurde potenziell schädlicher Code gefunden. Das Hochladen wurde abgebrochen. Grund: Win.Test.EICAR_HDB-1 |
| spaces | de | Virus gefunden | In aFileWithVirus.txt wurde potenziell schädlicher Code gefunden. Das Hochladen wurde abgebrochen. Grund: Win.Test.EICAR_HDB-1 |
@issue-enterprise-5709
Scenario Outline: try to create a version of file by uploading virus content
Given using <dav-path-version> DAV path