diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-02-09 16:48:08 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-02-11 00:15:39 +0000 |
commit | ffc92d69bf2618aca35f2c523abde0a76657e3a2 (patch) | |
tree | 07651643a7aa35b4375a081e56c8245c8eefdeef /test/scripts | |
parent | b53c265b5c7825d7fb6bb672547c44d080459d71 (diff) |
JSON lookup
(cherry picked from commits 854bd65fa7, 11b31159ac, 19cb5e2f14, 9669c6e06f, 6db8b72c86)
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/2750-json/2750 | 22 | ||||
-rw-r--r-- | test/scripts/2750-json/REQUIRES | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/scripts/2750-json/2750 b/test/scripts/2750-json/2750 new file mode 100644 index 000000000..f01414b4c --- /dev/null +++ b/test/scripts/2750-json/2750 @@ -0,0 +1,22 @@ +# lookup json +# +exim -be +policy-aliases:google:mode +${lookup {policy-aliases:google:mode} json {DIR/aux-fixed/policy.json}} + +policies:hotmail.com +${lookup {policies:hotmail.com} json {DIR/aux-fixed/policy.json}} + +policy-aliases:outlook +${lookup {policy-aliases:outlook} json {DIR/aux-fixed/policy.json}} + +policy-aliases:outlook:mxs +${lookup {policy-aliases:outlook:mxs} json {DIR/aux-fixed/policy.json}} + +policy-aliases:outlook:mxs:1 +${lookup {policy-aliases : outlook : mxs : 1} json {DIR/aux-fixed/policy.json}} + +aggregate output vs. json extract +${extract json {mxs} \ + {${lookup {policy-aliases:outlook} json {DIR/aux-fixed/policy.json}}}} +**** diff --git a/test/scripts/2750-json/REQUIRES b/test/scripts/2750-json/REQUIRES new file mode 100644 index 000000000..34b00031f --- /dev/null +++ b/test/scripts/2750-json/REQUIRES @@ -0,0 +1 @@ +lookup json |