You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

006_milter.robot 1.0KB

12345678910111213141516171819202122232425262728293031
  1. *** Settings ***
  2. Suite Setup Rspamd Setup
  3. Suite Teardown Rspamd Teardown
  4. Test Tags miltertest
  5. Library Process
  6. Library ${RSPAMD_TESTDIR}/lib/rspamd.py
  7. Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot
  8. Variables ${RSPAMD_TESTDIR}/lib/vars.py
  9. *** Variables ***
  10. ${CONFIG} ${RSPAMD_TESTDIR}/configs/dkim_signing/milter.conf
  11. ${RSPAMD_SCOPE} Suite
  12. ${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
  13. *** Test Cases ***
  14. SINGLE SIGNATURE
  15. Milter Test dkim_one.lua
  16. MULTIPLE SIGNATURES
  17. Milter Test dkim_many.lua
  18. *** Keywords ***
  19. Milter Test
  20. [Arguments] ${mtlua}
  21. Skip If not ${HAVE_MILTERTEST} msg=miltertest not installed
  22. ${result} = Run Process miltertest -Dport\=${RSPAMD_PORT_PROXY} -Dhost\=${RSPAMD_LOCAL_ADDR} -s ${RSPAMD_TESTDIR}/lua/miltertest/${mtlua}
  23. ... cwd=${RSPAMD_TESTDIR}/lua/miltertest
  24. Should Match Regexp ${result.stderr} ^$
  25. Log ${result.rc}
  26. Log ${result.stdout}
  27. Should Be Equal As Integers ${result.rc} 0 msg=${result.stdout} values=false