diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2019-06-09 04:31:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-09 04:32:31 +0000 |
commit | 279a47f3f64fc7a414247922b870e58a0b334b0f (patch) | |
tree | 0e461194ea2542dacf34b51ab8bdf376e64e0ec0 /t/www_listing.t | |
parent | 0b3e19584c90d958a723ac2d3dec3f84f5513688 (diff) | |
download | public-inbox-279a47f3f64fc7a414247922b870e58a0b334b0f.tar.gz |
I can imagine myself just wanting to clone a single v2 inbox and all its epochs without thinking about include/exclude rules in a grokmirror config file.
Diffstat (limited to 't/www_listing.t')
-rw-r--r-- | t/www_listing.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/www_listing.t b/t/www_listing.t index f9d543e5..546c2f8f 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -133,6 +133,26 @@ mymanifest = $tmpdir/local-manifest.js.gz for (qw(alt bare v2/0 v2/1 v2/2)) { ok(-d "$tmpdir/mirror/$_", "grok-pull created $_"); } + + # support per-inbox manifests, handy for v2: + # /$INBOX/v2/manifest.js.gz + open $fh, '>', "$tmpdir/per-inbox.conf" or die; + print $fh <<"" or die; +# You can pull from multiple grok mirrors, just create +# a separate section for each mirror. The name can be anything. +[v2] +site = http://$host:$port +manifest = http://$host:$port/v2/manifest.js.gz +toplevel = $tmpdir/per-inbox +mymanifest = $tmpdir/per-inbox-manifest.js.gz + + close $fh or die; + ok(mkdir("$tmpdir/per-inbox"), 'prepare single-v2-inbox mirror'); + system(qw(grok-pull -c), "$tmpdir/per-inbox.conf"); + is($? >> 8, 127, 'grok-pull exit code as expected'); + for (qw(v2/0 v2/1 v2/2)) { + ok(-d "$tmpdir/per-inbox/$_", "grok-pull created $_"); + } } done_testing(); |