[Minor] Fix test cases

This commit is contained in:
Vsevolod Stakhov 2018-09-23 18:34:04 +01:00
parent 7609401bd5
commit 549b34b197
2 changed files with 5 additions and 5 deletions

View File

@ -17,17 +17,17 @@ ${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
TEST SIGNED
${result} = Scan Message With Rspamc ${MESSAGE} -u bob@cacophony.za.org
Check Rspamc ${result} DKIM-Signature:
Should Contain ${result.stdout} DKIM_SIGNED (1.00)
Should Contain ${result.stdout} DKIM_SIGNED
TEST NOT SIGNED - USERNAME WRONG DOMAIN
${result} = Scan Message With Rspamc ${MESSAGE} -u bob@example.tk
Check Rspamc ${result} DKIM-Signature: inverse=1
Should Not Contain ${result.stdout} DKIM_SIGNED (1.00)
Should Not Contain ${result.stdout} DKIM_SIGNED
TEST NOT SIGNED - USERNAME WRONG PUBKEY
${result} = Scan Message With Rspamc ${MESSAGE_FAIL} -u bob@invalid.za.org
Check Rspamc ${result} DKIM-Signature: inverse=1
Should Not Contain ${result.stdout} DKIM_SIGNED (1.00)
Should Not Contain ${result.stdout} DKIM_SIGNED
*** Keywords ***
DKIM Signing Setup

View File

@ -16,12 +16,12 @@ ${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
TEST SIGNED
${result} = Scan Message With Rspamc ${MESSAGE} -u bob@cacophony.za.org
Check Rspamc ${result} DKIM-Signature:
Should Contain ${result.stdout} DKIM_SIGNED (1.00)
Should Contain ${result.stdout} DKIM_SIGNED
TEST NOT SIGNED - USERNAME WRONG DOMAIN
${result} = Scan Message With Rspamc ${MESSAGE} -u bob@example.tk
Check Rspamc ${result} DKIM-Signature: inverse=1
Should Not Contain ${result.stdout} DKIM_SIGNED (1.00)
Should Not Contain ${result.stdout} DKIM_SIGNED
*** Keywords ***
DKIM Signing Setup