Bläddra i källkod

Initial revision of lists of SNFMilterConfig tests.


git-svn-id: https://svn.microneil.com/svn/SNFUtility/trunk@11 aa37657e-1934-4a5f-aa6d-2d8eab27ff7c
master
adeniz 12 år sedan
förälder
incheckning
20e06cee84
1 ändrade filer med 73 tillägg och 0 borttagningar
  1. 73
    0
      SNFMilterConfig/SNFMilterConfigTests.txt

+ 73
- 0
SNFMilterConfig/SNFMilterConfigTests.txt Visa fil

@@ -0,0 +1,73 @@
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.


Laddar…
Avbryt
Spara