diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-27 20:31:44 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-27 21:20:01 +0000 |
commit | 7b5ea579e6a9490a4a38958acac8e078d805eec7 (patch) | |
tree | 28e99dd0ee8c6740ed0f5aaf22837db31ca983cd /t | |
parent | a966564fef08a4f25670778efbff139fbbf47c84 (diff) | |
download | public-inbox-7b5ea579e6a9490a4a38958acac8e078d805eec7.tar.gz |
This will require multiple client invocations, but should reduce load on the server and make it easier for readers to only clone the latest data. Unfortunately, supporting a cloneurl file for externally-hosted repos will be more difficult as we cannot easily know if the clones use v1 or v2 repositories, or how many git partitions they have.
Diffstat (limited to 't')
-rw-r--r-- | t/psgi_v2.t | 5 | ||||
-rw-r--r-- | t/view.t | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 2a798d6f..9964b477 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -165,6 +165,11 @@ test_psgi(sub { $www->call(@_) }, sub { $res = $cb->(GET('/v2test/reuse@mid/t/')); $raw = $res->content; like($raw, qr/\b4\+ messages\b/, 'thread overview shown with /t/'); + + $res = $cb->(GET('/v2test/0/info/refs')); + is($res->code, 200, 'got info refs for dumb clones'); + $res = $cb->(GET('/v2test/info/refs')); + is($res->code, 404, 'unpartitioned git URL fails'); }); done_testing(); @@ -16,6 +16,7 @@ my $ctx = { base_url => sub { 'http://example.com/' }, cloneurl => sub {[]}, nntp_url => sub {[]}, + max_git_part => sub { undef }, description => sub { '' }), }; $ctx->{-inbox}->{-primary_address} = 'test@example.com'; |