7 repo1 nodescription bare.git opml search
8 fragment/collectionofrepositories
11 ok( request($path)->is_success, "$path should succeed");
14 my $response = request('/DoesNotExist');
15 is $response->code, 404, 'invalid repository 404s';
16 like $response->content, qr/Page not found/, 'invalid repository handled correctly';
19 foreach my $test (map {curry_test_uri($_)} ('fragment/repo1', 'repo1') ) {
25 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
26 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree');
27 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree/dir1');
28 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff');
29 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff/plain');
30 #test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/shortlog/dir1');
31 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
32 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blame/file1');
33 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blob/file1');
38 local *test = curry_test_uri('repo1');
42 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patch');
43 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/1');
44 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/2');
45 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/raw/file1');
48 local $TODO = "FIXME";
49 test('search', 'type=commit&text=added');
51 # FIXME - What's the difference here?
52 #test('patch', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e');
53 #test('patch', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e;hp=3bc0634310b9c62222bb0e724c11ffdfb297b4ac');
54 #test('patches', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e');
55 #test('patches', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e;hp=3bc0634310b9c62222bb0e724c11ffdfb297b4ac');