]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix AV tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Sep 2018 16:26:14 +0000 (17:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Sep 2018 16:26:14 +0000 (17:26 +0100)
test/functional/cases/160_antivirus.robot

index 86c2e51b03c3498bdceebb5f94a985c3b3296d7a..bdbd7456f269e6719fcf180000465e3749bc09b9 100644 (file)
@@ -24,13 +24,13 @@ CLAMAV MISS
 CLAMAV HIT
   Run Dummy Clam  ${PORT_CLAM}  1
   ${result} =  Scan Message With Rspamc  ${MESSAGE2}
-  Check Rspamc  ${result}  CLAM_VIRUS (1.00)[Eicar-Test-Signature]
+  Check Rspamc  ${result}  CLAM_VIRUS
   Should Not Contain  ${result.stdout}  CLAMAV_FAIL
   Shutdown clamav
 
 CLAMAV CACHE HIT
   ${result} =  Scan Message With Rspamc  ${MESSAGE2}
-  Check Rspamc  ${result}  CLAM_VIRUS (1.00)[Eicar-Test-Signature]
+  Check Rspamc  ${result}  CLAM_VIRUS
   Should Not Contain  ${result.stdout}  CLAMAV_FAIL
 
 CLAMAV CACHE MISS
@@ -49,7 +49,7 @@ FPROT HIT - PATTERN
   Run Dummy Fprot  ${PORT_FPROT}  1
   Run Dummy Fprot  ${PORT_FPROT_DUPLICATE}  1  /tmp/dummy_fprot_dupe.pid
   ${result} =  Scan Message With Rspamc  ${MESSAGE}
-  Check Rspamc  ${result}  FPROT_EICAR (1.00)[EICAR_Test_File]
+  Check Rspamc  ${result}  FPROT_EICAR
   Should Not Contain  ${result.stdout}  CLAMAV_VIRUS
   # Also check ordered pattern match
   Should Contain  ${result.stdout}  FPROT_VIRUS_DUPLICATE_PATTERN
@@ -60,7 +60,7 @@ FPROT HIT - PATTERN
 
 FPROT CACHE HIT
   ${result} =  Scan Message With Rspamc  ${MESSAGE}
-  Check Rspamc  ${result}  FPROT_EICAR (1.00)[EICAR_Test_File]
+  Check Rspamc  ${result}  FPROT_EICAR
   Should Not Contain  ${result.stdout}  CLAMAV_VIRUS
   # Also check ordered pattern match
   Should Contain  ${result.stdout}  FPROT_VIRUS_DUPLICATE_PATTERN