Browse Source

[Test] Fix tests relying on the broken behaviour

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
bd59acda6a

+ 1
- 1
lualib/rspamadm/mime.lua View File

@@ -765,7 +765,7 @@ local function modify_handler(opts)
end

-- End of headers
local eoh_pos = #out
--local eoh_pos = #out
out[#out + 1] = ''

local boundaries = {}

+ 6
- 5
test/functional/cases/102_multimap.robot View File

@@ -280,11 +280,12 @@ MAP - RECEIVED - IP MINMAX POS - ONE
Check Rspamc ${result} RCVD_TEST_01
Check Rspamc ${result} RCVD_TEST_02 inverse=1

MAP - RECEIVED - IP MINMAX POS - TWO / RCVD_AUTHED_ONE HIT
${result} = Scan Message With Rspamc ${RCVD2}
Check Rspamc ${result} RCVD_TEST_02
Should Not Contain ${result.stdout} RCVD_TEST_01
Should Contain ${result.stdout} RCVD_AUTHED_ONE
# Relies on parsing of shitty received
#MAP - RECEIVED - IP MINMAX POS - TWO / RCVD_AUTHED_ONE HIT
# ${result} = Scan Message With Rspamc ${RCVD2}
# Check Rspamc ${result} RCVD_TEST_02
# Should Not Contain ${result.stdout} RCVD_TEST_01
# Should Contain ${result.stdout} RCVD_AUTHED_ONE

MAP - RECEIVED - REDIS
Redis HSET RCVD_TEST 2a01:7c8:aab6:26d:5054:ff:fed1:1da2 ${EMPTY}

+ 1
- 1
test/functional/configs/multimap.conf View File

@@ -139,7 +139,7 @@ multimap {
}
RCVD_TEST_02 {
type = "received";
min_pos = -2;
min_pos = -1;
map = "${TESTDIR}/configs/maps/rcvd.list";
}
RCVD_TEST_REDIS_01 {

Loading…
Cancel
Save