diff options
author | Eric Wong <e@80x24.org> | 2023-01-28 11:02:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-28 18:52:31 +0000 |
commit | d3c6f8e57b15e8d3de0431c8419bdd0497ec3d32 (patch) | |
tree | 86b82828b036c7e795415942b6c073f1c4ddd4ce /t/solver_git.t | |
parent | a74c0a16c07e4c8a3ae03af13854f190ddb3bd8a (diff) | |
download | public-inbox-d3c6f8e57b15e8d3de0431c8419bdd0497ec3d32.tar.gz |
Providing an Atom feed for tags can be a nice way for users to subscribe to new releases without excessive noise.
Diffstat (limited to 't/solver_git.t')
-rw-r--r-- | t/solver_git.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/solver_git.t b/t/solver_git.t index 7743913b..0090bc06 100644 --- a/t/solver_git.t +++ b/t/solver_git.t @@ -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 }; |