瀏覽代碼

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 年之前
父節點
當前提交
20e06cee84
共有 1 個檔案被更改,包括 73 行新增0 行删除
  1. 73
    0
      SNFMilterConfig/SNFMilterConfigTests.txt

+ 73
- 0
SNFMilterConfig/SNFMilterConfigTests.txt 查看文件

@@ -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.


Loading…
取消
儲存