aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorkorgoth1 <vladislav.stakhov@gmail.com>2019-11-18 19:07:42 +0300
committerkorgoth1 <vladislav.stakhov@gmail.com>2019-11-18 19:07:42 +0300
commit63f8d95a3d92d7f613c51a1800d1af542ea198e7 (patch)
tree2fe5cc48ed738df6d23e9d04e2762247536ebc58 /test/functional
parent8f03e5ef523da05a7080e8e5f2617af5162ccab4 (diff)
downloadrspamd-63f8d95a3d92d7f613c51a1800d1af542ea198e7.tar.gz
rspamd-63f8d95a3d92d7f613c51a1800d1af542ea198e7.zip
[Test] P0F fix
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/cases/161_p0f.robot15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/functional/cases/161_p0f.robot b/test/functional/cases/161_p0f.robot
index 9023b639d..edf47da4c 100644
--- a/test/functional/cases/161_p0f.robot
+++ b/test/functional/cases/161_p0f.robot
@@ -19,6 +19,8 @@ p0f MISS
Run Dummy p0f
${result} = Scan Message With Rspamc ${MESSAGE} --ip 1.1.1.1
Check Rspamc ${result} P0F
+ Check Rspamc ${result} Linux 3.11 and newer
+ Check Rspamc ${result} Ethernet or modem
Check Rspamc ${result} WINDOWS inverse=1
Check Rspamc ${result} P0F_FAIL inverse=1
Shutdown p0f
@@ -26,11 +28,11 @@ p0f MISS
p0f HIT
Run Dummy p0f ${P0F_SOCKET} windows
${result} = Scan Message With Rspamc ${MESSAGE} --ip 1.1.1.2
- Check Rspamc ${result} P0F inverse=1
+ Check Rspamc ${result} P0F
Check Rspamc ${result} P0F_FAIL inverse=1
- Check Rspamc ${result} ETHER
- Check Rspamc ${result} DISTGE10
+ Check Rspamc ${result} Ethernet or modem
Check Rspamc ${result} WINDOWS
+ Check Rspamc ${result} Linux 3.11 and newer inverse=1
Shutdown p0f
p0f MISS CACHE
@@ -56,9 +58,10 @@ p0f NO REDIS
Run Dummy p0f
${result} = Scan Message With Rspamc ${MESSAGE} --ip 1.1.1.5
Check Rspamc ${result} P0F
- Check Rspamc ${result} ETHER
- Check Rspamc ${result} DISTGE10
+ Check Rspamc ${result} Linux 3.11 and newer
+ Check Rspamc ${result} Ethernet or modem
Check Rspamc ${result} P0F_FAIL inverse=1
+ Should Contain ${result.stdout} distance=10
Shutdown p0f
p0f NO MATCH
@@ -80,7 +83,7 @@ p0f BAD RESPONSE
Run Dummy p0f ${P0F_SOCKET} windows bad_response
${result} = Scan Message With Rspamc ${MESSAGE} --ip 1.1.1.8
Check Rspamc ${result} P0F_FAIL
- Check Rspamc ${result} Malformed Response
+ Check Rspamc ${result} Error getting result: IO read error: connection terminated
Check Rspamc ${result} WINDOWS inverse=1
Shutdown p0f