12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- SNFMilterConfig Tests
-
- $Id$
-
- SNFUtility revision 9
-
- Help functionality--
-
- HELP-01: SNFMilterConfig without any command options outputs a help
- message.
-
- Credentials functionality--
-
- CRED-01: Start with no identity.xml and no getRulebase. Verify that
- when the valid credentials are specified on the command line:
-
- 1) getRulebase is created,
-
- 2) The rulebase is downloaded,
-
- 3) The identity.xml file is created.
-
- Repeat with -mta=none, -mta=postfix, and -mta=sendmail.
-
- CRED-02: After the previous test, specify incorrect credentials.
- Verify:
-
- 1) getRulebase is not updated,
-
- 2) The rulebase downloaded fails, and an error message is output,
-
- 3) The identity.xml file is not created.
-
- Repeat with -mta=none, -mta=postfix, and -mta=sendmail.
-
- CRED-03: Start with no identity.xml and no getRulebase. Verify that
- when no credentials are specified on the command line:
-
- 1) getRulebase is created with the default credentials,
-
- 2) The rulebase is not downloaded,
-
- 3) The identity.xml file is created with the default credentials..
-
- Repeat with -mta=none, -mta=postfix, and -mta=sendmail.
-
- Default config file functionality--
-
- CONF-01: Starting with no configuration (no SNFMilter.xml,
- identity.xml, getRulebase, rulebase file (but the default rulebase
- file is present), or GBUdbIgnore.txt), run with the following
- command-line parameters:
-
- 1) "-mta=none" installs all files with testmode credentials,
- downloads rulebase, starts SNFMilter.
-
- 2) "-mta=none -auth=xxx, id=yyy" where xxx/yyy is a valid auth/id
- pair, installs all files with xxx/yyy credentials, downloads
- rulebase, starts SNFMilter.
-
- 3) "-mta=postfix" installs all files with testmode credentials,
- downloads rulebase, starts SNFMilter, restarts postfix.
-
- 4) "-mta=postfix -auth=xxx, id=yyy" where xxx/yyy is a valid auth/id
- pair, installs all files with xxx/yyy credentials, downloads
- rulebase, starts SNFMilter, restarts postfix.
-
- 5) "-mta=none -config=/etc/snf-milter/test.xml" installs all files
- in the default locations except the configuration file is
- test.xml, downloads rulebase, starts SNFMilter. Starting
- SNFMilter should fail because there is no configuration file
- test.xml. Verify that the configuration files are not present.
|