From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5AFC41F8C8 for ; Sat, 18 Sep 2021 20:33:24 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/config: extra test for imap_url with imaps:// Date: Sat, 18 Sep 2021 20:33:24 +0000 Message-Id: <20210918203324.7330-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I configured this for public-inbox.org, but wasn't 100% sure it worked. This test ensures it stays working :> --- t/config.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/config.t b/t/config.t index 2b02f063..7e753cbe 100644 --- a/t/config.t +++ b/t/config.t @@ -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