diff options
| author | Paul Lathrop <paul@tertiusfamily.net> | 2009-01-15 09:35:47 -0800 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-01-22 10:45:22 +1100 |
| commit | 234a035b97287d8910ca00a58b70a06775818693 (patch) | |
| tree | cc835eb913c05aed05048a761f2233f47667e9f1 /test/data/providers/mailalias/aliases | |
| parent | fb8f8cd14f2a4958505f27910ad1d2a368bb0967 (diff) | |
| download | puppet-234a035b97287d8910ca00a58b70a06775818693.tar.gz puppet-234a035b97287d8910ca00a58b70a06775818693.tar.xz puppet-234a035b97287d8910ca00a58b70a06775818693.zip | |
Fix #1560
Adds an rspec test which demonstrates #1560 and a custom 'process'
method for the aliases provider to fix it.
The default processing uses split() to break the line into records on
the separator, which breaks if records can contain the separator. The
custom method I've added uses a 'limited' split() to break the line on
the first separator only.
This commit fixes #1560
Signed-off-by: Paul Lathrop <paul@tertiusfamily.net>
Diffstat (limited to 'test/data/providers/mailalias/aliases')
| -rw-r--r-- | test/data/providers/mailalias/aliases/test1 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/data/providers/mailalias/aliases/test1 b/test/data/providers/mailalias/aliases/test1 new file mode 100644 index 000000000..20f90989f --- /dev/null +++ b/test/data/providers/mailalias/aliases/test1 @@ -0,0 +1,28 @@ +# Basic system aliases -- these MUST be present +MAILER-DAEMON: postmaster +postmaster: root + +# General redirections for pseudo accounts +bin: root +daemon: root +named: root +nobody: root +uucp: root +www: root +ftp-bugs: root +postfix: root + +# Put your local aliases here. + +# Well-known aliases +manager: root +dumper: root +operator: root +abuse: postmaster + +# trap decode to catch security attacks +decode: root + +# Other tests +anothertest: "|/path/to/rt-mailgate --queue 'another test' --action correspond --url http://my.com/" +test: "|/path/to/rt-mailgate --queue 'test' --action correspond --url http://my.com/" |
