]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/solver_git.t
www_coderepo: support /$REPO/tags.atom endpoint
[public-inbox.git] / t / solver_git.t
index 7743913b92b8c9681af427af4d68e24125526f3a..0090bc06d6165c9fd44ca57745c26b3413cc33e0 100644 (file)
@@ -403,6 +403,14 @@ EOF
                is($res->code, 404, 'got 404 for non-existent ref README');
                $res = $cb->(GET('/public-inbox/tree/Documentation?h=no-dir'));
                is($res->code, 404, 'got 404 for non-existent ref directory');
+
+               $res = $cb->(GET('/public-inbox/tags.atom'));
+               is($res->code, 200, 'Atom feed');
+               SKIP: {
+                       require_mods('XML::TreePP', 1);
+                       my $t = XML::TreePP->new->parse($res->content);
+                       ok(scalar @{$t->{feed}->{entry}}, 'got tag entries');
+               }
        };
        test_psgi(sub { $www->call(@_) }, $client);
        my $env = { PI_CONFIG => $cfgpath, TMPDIR => $tmpdir };