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.

180_milter.robot 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/milter.conf
  11. ${RSPAMD_SCOPE} Suite
  12. ${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
  13. *** Test Cases ***
  14. ACCEPT
  15. Milter Test mt1.lua
  16. REJECT
  17. Milter Test mt2.lua
  18. REWRITE SUBJECT
  19. Milter Test mt3.lua
  20. DEFER
  21. Milter Test mt4.lua
  22. COMBINED TEST
  23. Milter Test combined.lua
  24. *** Keywords ***
  25. Milter Test
  26. [Arguments] ${mtlua}
  27. Skip If not ${HAVE_MILTERTEST} msg=miltertest not installed
  28. ${result} = Run Process miltertest -Dport\=${RSPAMD_PORT_PROXY} -Dhost\=${RSPAMD_LOCAL_ADDR} -s ${RSPAMD_TESTDIR}/lua/miltertest/${mtlua}
  29. ... cwd=${RSPAMD_TESTDIR}/lua/miltertest
  30. Should Match Regexp ${result.stderr} ^$
  31. Log ${result.rc}
  32. Log ${result.stdout}
  33. Should Be Equal As Integers ${result.rc} 0 msg=${result.stdout} values=false