]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/config: extra test for imap_url with imaps://
authorEric Wong <e@80x24.org>
Sat, 18 Sep 2021 20:33:24 +0000 (20:33 +0000)
committerEric Wong <e@80x24.org>
Sun, 19 Sep 2021 00:04:10 +0000 (00:04 +0000)
I configured this for public-inbox.org, but wasn't 100% sure it
worked.  This test ensures it stays working :>

t/config.t

index 2b02f06372e21e059cc943d5a3808568c5733171..7e753cbe1bf2d5ad7a7afaf7389c040a4a73da5f 100644 (file)
@@ -112,12 +112,16 @@ $pfx.inboxdir=/path/to/non/existent
 $pfx.newsgroup=inbox.test
 $pfx.nntpserver=news.alt.example.com
 publicinbox.nntpserver=news.example.com
+publicinbox.imapserver=imaps://mail.example.com
 EOF
        $cfg = PublicInbox::Config->new(\$str);
        $ibx = $cfg->lookup_name('test');
        is_deeply($ibx->nntp_url({ www => { pi_cfg => $cfg }}),
                [ 'nntp://news.alt.example.com/inbox.test' ],
                'nntp_url uses per-inbox NNTP server');
+       is_deeply($ibx->imap_url({ www => { pi_cfg => $cfg }}),
+               [ 'imaps://mail.example.com/inbox.test' ],
+               'nntp_url uses per-inbox NNTP server');
 }
 
 # no obfuscate domains