From 63f8d95a3d92d7f613c51a1800d1af542ea198e7 Mon Sep 17 00:00:00 2001 From: korgoth1 Date: Mon, 18 Nov 2019 19:07:42 +0300 Subject: [PATCH] [Test] P0F fix --- test/functional/cases/161_p0f.robot | 15 +++++++++------ 1 file 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 -- 2.39.5