From 6d2a5e604d689b33586c653d8a04473e33973ac6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Apr 2014 21:08:50 +0000 Subject: config: support multiple addresses for a inbox This makes it possible to gradually migrate to new address in case of list name changes, and is one step closer to operating in "stealth hijack mode" :) --- t/config.t | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 't') diff --git a/t/config.t b/t/config.t index 44e051f2..cd61fe09 100644 --- a/t/config.t +++ b/t/config.t @@ -34,6 +34,16 @@ my $tmpdir = tempdir(CLEANUP => 1); is($cfg->lookup('blah@example.com'), undef, "non-existent lookup returns undef"); + + my $test = $cfg->lookup('test@public-inbox.org'); + is_deeply($test, { + 'address' => ['try@public-inbox.org', + 'sandbox@public-inbox.org', + 'test@public-inbox.org'], + 'mainrepo' => '/home/pi/test-main.git', + 'description' => 'test/sandbox area, occasionally reset', + 'listname' => 'test', + }, "lookup matches expected output for test"); } done_testing(); -- cgit v1.2.3-24-ge0c7