about summary refs log tree commit homepage
path: root/t/www_listing.t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2019-06-09 04:31:05 +0000
committerEric Wong <e@80x24.org>2019-06-09 04:32:31 +0000
commit0886c264b24b8bc7626e5a7eb59598b0229f066d (patch)
tree0091b2a341c4ff824cb564687c2533f8980b5a86 /t/www_listing.t
parent279a47f3f64fc7a414247922b870e58a0b334b0f (diff)
downloadpublic-inbox-0886c264b24b8bc7626e5a7eb59598b0229f066d.tar.gz
And use it in manifest.js.

To ease maintaining mirrors with grokmirror(1), we can accept
a "git/" directory prefix before the epoch, and ".git" suffix
after the epoch number.

We maintain compatibility with "$INBOX/$EPOCH" cloning, of
course, and it's still easier-to-type on the command-line.
Diffstat (limited to 't/www_listing.t')
-rw-r--r--t/www_listing.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/www_listing.t b/t/www_listing.t
index 546c2f8f..2741e1b8 100644
--- a/t/www_listing.t
+++ b/t/www_listing.t
@@ -111,7 +111,7 @@ SKIP: {
         is(HTTP::Date::time2str($bare->{modified}), $h{'Last-Modified'},
                 'modified field and Last-Modified header match');
 
-        ok($manifest->{'/v2/0'}, 'v2 epoch appeared');
+        ok($manifest->{'/v2/git/0.git'}, 'v2 epoch appeared');
 
         skip 'skipping grok-pull integration test', 2 if !which('grok-pull');
 
@@ -130,7 +130,7 @@ mymanifest = $tmpdir/local-manifest.js.gz
 
         system(qw(grok-pull -c), "$tmpdir/repos.conf");
         is($? >> 8, 127, 'grok-pull exit code as expected');
-        for (qw(alt bare v2/0 v2/1 v2/2)) {
+        for (qw(alt bare v2/git/0.git v2/git/1.git v2/git/2.git)) {
                 ok(-d "$tmpdir/mirror/$_", "grok-pull created $_");
         }
 
@@ -150,7 +150,7 @@ mymanifest = $tmpdir/per-inbox-manifest.js.gz
         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)) {
+        for (qw(v2/git/0.git v2/git/1.git v2/git/2.git)) {
                 ok(-d "$tmpdir/per-inbox/$_", "grok-pull created $_");
         }
 }