]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] tests - antivirus - fprot symbols
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Sat, 19 Jan 2019 07:02:51 +0000 (08:02 +0100)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Sat, 19 Jan 2019 07:02:51 +0000 (08:02 +0100)
test/functional/cases/160_antivirus.robot
test/functional/configs/antivirus.conf
test/functional/lib/vars.py

index 8f82abf299adfdb7ff2c9b47a5f3c88633d2a3ca..c34121dfd8b7bb176c35d534acc297021e0f11f1 100644 (file)
@@ -47,14 +47,14 @@ FPROT MISS
 
 FPROT HIT - PATTERN
   Run Dummy Fprot  ${PORT_FPROT}  1
-  Run Dummy Fprot  ${PORT_FPROT_DUPLICATE}  1  /tmp/dummy_fprot_dupe.pid
+  Run Dummy Fprot  ${PORT_FPROT2_DUPLICATE}  1  /tmp/dummy_fprot_dupe.pid
   ${result} =  Scan Message With Rspamc  ${MESSAGE}
   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
-  Should Not Contain  ${result.stdout}  FPROT_VIRUS_DUPLICATE_DEFAULT
-  Should Not Contain  ${result.stdout}  FPROT_VIRUS_DUPLICATE_NOPE
+  Should Contain  ${result.stdout}  FPROT2_VIRUS_DUPLICATE_PATTERN
+  Should Not Contain  ${result.stdout}  FPROT2_VIRUS_DUPLICATE_DEFAULT
+  Should Not Contain  ${result.stdout}  FPROT2_VIRUS_DUPLICATE_NOPE
   Shutdown fport
   Shutdown fport duplicate
 
@@ -63,8 +63,8 @@ FPROT CACHE HIT
   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
-  Should Not Contain  ${result.stdout}  FPROT_VIRUS_DUPLICATE_DEFAULT
+  Should Contain  ${result.stdout}  FPROT2_VIRUS_DUPLICATE_PATTERN
+  Should Not Contain  ${result.stdout}  FPROT2_VIRUS_DUPLICATE_DEFAULT
 
 FPROT CACHE MISS
   ${result} =  Scan Message With Rspamc  ${MESSAGE2}
index 432d9a2de6357d6534bb94336e5e8a5c6c25867a..9aba7bb643d2b09cd02385ed98c9e1bdfced417e 100644 (file)
@@ -20,16 +20,16 @@ antivirus {
   fprot_duplicate {
     prefix = "fp_dupe";
     attachments_only = false;
-    symbol = "FPROT_VIRUS_DUPLICATE_DEFAULT";
+    symbol = "FPROT2_VIRUS_DUPLICATE_DEFAULT";
     type = "fprot";
-    servers = "127.0.0.1:${PORT_FPROT_DUPLICATE}";
+    servers = "127.0.0.1:${PORT_FPROT2_DUPLICATE}";
     patterns = [
-      {FPROT_VIRUS_DUPLICATE_PATTERN = "^E"},
-      {FPROT_VIRUS_DUPLICATE_NOPE1 = "^EI",
-      FPROT_VIRUS_DUPLICATE_NOPE2 = "^EIC",
-      FPROT_VIRUS_DUPLICATE_NOPE3 = "^EICA",
-      FPROT_VIRUS_DUPLICATE_NOPE4 = "^EICAR",
-      FPROT_VIRUS_DUPLICATE_NOPE5 = "^EICAR_"}
+      {FPROT2_VIRUS_DUPLICATE_PATTERN = "^E"},
+      {FPROT2_VIRUS_DUPLICATE_NOPE1 = "^EI",
+      FPROT2_VIRUS_DUPLICATE_NOPE2 = "^EIC",
+      FPROT2_VIRUS_DUPLICATE_NOPE3 = "^EICA",
+      FPROT2_VIRUS_DUPLICATE_NOPE4 = "^EICAR",
+      FPROT2_VIRUS_DUPLICATE_NOPE5 = "^EICAR_"}
     ];
   }
 }
index e707480a84c6c0f57db197b170ec772b04c7ae5f..97b53b2e10c98ebd33ab8cbc763eb623d39ba222 100644 (file)
@@ -14,7 +14,7 @@ PORT_NORMAL_SLAVE = 56794
 PORT_PROXY = 56795
 PORT_CLAM = 56796
 PORT_FPROT = 56797
-PORT_FPROT_DUPLICATE = 56798
+PORT_FPROT2_DUPLICATE = 56798
 REDIS_ADDR = u'127.0.0.1'
 REDIS_PORT = 56379
 NGINX_ADDR = u'127.0.0.1'