summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-12-04 15:00:19 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-12-04 15:00:19 +0000
commitd78371933afdcbdb420e40a2855b548a4673dc3d (patch)
treea46b383464d7223fcc407a94293f03bbbc1aa00d /test
parent55728a4f2bbb52eb648380b40ebb4e44db590039 (diff)
Give an error for the use of * and *@ with a query-style lookup.
Diffstat (limited to 'test')
-rw-r--r--test/scripts/3200-testdb/32007
-rw-r--r--test/stderr/32001
-rw-r--r--test/stdout/32002
3 files changed, 8 insertions, 2 deletions
diff --git a/test/scripts/3200-testdb/3200 b/test/scripts/3200-testdb/3200
index cd02ab5bc..f5b12972d 100644
--- a/test/scripts/3200-testdb/3200
+++ b/test/scripts/3200-testdb/3200
@@ -1,6 +1,11 @@
# testdb lookups
-
+1
exim -be
match_ip: 12 ${if match_ip{10.11.12.13}{testdb;something}}
match_ip: 13 ${if match_ip{10.11.12.13}{testdb;fail}}
+match_domain: 14 ${if match_domain{a.b.c.d}{testdb*;fail}}
+bad default: ${lookup testdb*{abcd}}
+bad default: ${lookup testdb*@{abcd}}
+bad default: ${lookup testdb*{fail}}
+bad default: ${lookup testdb*@{fail}}
****
diff --git a/test/stderr/3200 b/test/stderr/3200
new file mode 100644
index 000000000..2f416adf5
--- /dev/null
+++ b/test/stderr/3200
@@ -0,0 +1 @@
+1999-03-02 09:44:33 defaults using "*" or "*@" are not permitted for lookup type "testdb*"
diff --git a/test/stdout/3200 b/test/stdout/3200
index 8c3398326..04ff51884 100644
--- a/test/stdout/3200
+++ b/test/stdout/3200
@@ -1,3 +1,3 @@
> match_ip: 12 true
> match_ip: 13
->
+> \ No newline at end of file