3 BEGIN { do "$FindBin::Bin/../script/env" or die $@ }
8 repo1 nodescription bare.git opml search
9 fragment/collectionofrepositories
12 ok( request($path)->is_success, "$path should succeed");
15 my $response = request('/DoesNotExist');
16 is $response->code, 404, 'invalid repository 404s';
17 like $response->content, qr/Page not found/, 'invalid repository handled correctly';
20 foreach my $test (map {curry_test_uri($_)} ('fragment/repo1', 'repo1') ) {
26 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
27 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree');
28 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree/dir1');
29 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff');
30 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff/plain');
31 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
32 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
33 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blame/file1');
34 $test->('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blob/file1');
39 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');