Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. SNFMilterConfig Tests
  2. $Id$
  3. SNFUtility revision 9
  4. Help functionality--
  5. HELP-01: SNFMilterConfig without any command options outputs a help
  6. message.
  7. Credentials functionality--
  8. CRED-01: Start with no identity.xml and no getRulebase. Verify that
  9. when the valid credentials are specified on the command line:
  10. 1) getRulebase is created,
  11. 2) The rulebase is downloaded,
  12. 3) The identity.xml file is created.
  13. Repeat with -mta=none, -mta=postfix, and -mta=sendmail.
  14. CRED-02: After the previous test, specify incorrect credentials.
  15. Verify:
  16. 1) getRulebase is not updated,
  17. 2) The rulebase downloaded fails, and an error message is output,
  18. 3) The identity.xml file is not created.
  19. Repeat with -mta=none, -mta=postfix, and -mta=sendmail.
  20. CRED-03: Start with no identity.xml and no getRulebase. Verify that
  21. when no credentials are specified on the command line:
  22. 1) getRulebase is created with the default credentials,
  23. 2) The rulebase is not downloaded,
  24. 3) The identity.xml file is created with the default credentials..
  25. Repeat with -mta=none, -mta=postfix, and -mta=sendmail.
  26. Default config file functionality--
  27. CONF-01: Starting with no configuration (no SNFMilter.xml,
  28. identity.xml, getRulebase, rulebase file (but the default rulebase
  29. file is present), or GBUdbIgnore.txt), run with the following
  30. command-line parameters:
  31. 1) "-mta=none" installs all files with testmode credentials,
  32. downloads rulebase, starts SNFMilter.
  33. 2) "-mta=none -auth=xxx, id=yyy" where xxx/yyy is a valid auth/id
  34. pair, installs all files with xxx/yyy credentials, downloads
  35. rulebase, starts SNFMilter.
  36. 3) "-mta=postfix" installs all files with testmode credentials,
  37. downloads rulebase, starts SNFMilter, restarts postfix.
  38. 4) "-mta=postfix -auth=xxx, id=yyy" where xxx/yyy is a valid auth/id
  39. pair, installs all files with xxx/yyy credentials, downloads
  40. rulebase, starts SNFMilter, restarts postfix.
  41. 5) "-mta=none -config=/etc/snf-milter/test.xml" installs all files
  42. in the default locations except the configuration file is
  43. test.xml, downloads rulebase, starts SNFMilter. Starting
  44. SNFMilter should fail because there is no configuration file
  45. test.xml. Verify that the configuration files are not present.