comparison tests/test-hgweb-auth.py.out @ 8333:89c80c3dc584

allow http authentication information to be specified in the configuration
author Sune Foldager <cryo@cyanite.org>
date Mon, 04 May 2009 20:26:27 +0200
parents
children 4a43e23b8c55
comparison
equal deleted inserted replaced
8332:3e544c074459 8333:89c80c3dc584
1
2 *** Test in-uri schemes
3
4 CFG: {x.prefix: http://example.org}
5 URI: http://example.org/foo
6 ('x', 'x')
7 URI: http://example.org/foo/bar
8 ('x', 'x')
9 URI: http://example.org/bar
10 ('x', 'x')
11 URI: https://example.org/foo
12 abort
13 URI: https://example.org/foo/bar
14 abort
15 URI: https://example.org/bar
16 abort
17 CFG: {x.prefix: https://example.org}
18 URI: http://example.org/foo
19 abort
20 URI: http://example.org/foo/bar
21 abort
22 URI: http://example.org/bar
23 abort
24 URI: https://example.org/foo
25 ('x', 'x')
26 URI: https://example.org/foo/bar
27 ('x', 'x')
28 URI: https://example.org/bar
29 ('x', 'x')
30 CFG: {x.prefix: http://example.org, x.schemes: https}
31 URI: http://example.org/foo
32 ('x', 'x')
33 URI: http://example.org/foo/bar
34 ('x', 'x')
35 URI: http://example.org/bar
36 ('x', 'x')
37 URI: https://example.org/foo
38 abort
39 URI: https://example.org/foo/bar
40 abort
41 URI: https://example.org/bar
42 abort
43 CFG: {x.prefix: https://example.org, x.schemes: http}
44 URI: http://example.org/foo
45 abort
46 URI: http://example.org/foo/bar
47 abort
48 URI: http://example.org/bar
49 abort
50 URI: https://example.org/foo
51 ('x', 'x')
52 URI: https://example.org/foo/bar
53 ('x', 'x')
54 URI: https://example.org/bar
55 ('x', 'x')
56
57 *** Test separately configured schemes
58
59 CFG: {x.prefix: example.org, x.schemes: http}
60 URI: http://example.org/foo
61 ('x', 'x')
62 URI: http://example.org/foo/bar
63 ('x', 'x')
64 URI: http://example.org/bar
65 ('x', 'x')
66 URI: https://example.org/foo
67 abort
68 URI: https://example.org/foo/bar
69 abort
70 URI: https://example.org/bar
71 abort
72 CFG: {x.prefix: example.org, x.schemes: https}
73 URI: http://example.org/foo
74 abort
75 URI: http://example.org/foo/bar
76 abort
77 URI: http://example.org/bar
78 abort
79 URI: https://example.org/foo
80 ('x', 'x')
81 URI: https://example.org/foo/bar
82 ('x', 'x')
83 URI: https://example.org/bar
84 ('x', 'x')
85 CFG: {x.prefix: example.org, x.schemes: http https}
86 URI: http://example.org/foo
87 ('x', 'x')
88 URI: http://example.org/foo/bar
89 ('x', 'x')
90 URI: http://example.org/bar
91 ('x', 'x')
92 URI: https://example.org/foo
93 ('x', 'x')
94 URI: https://example.org/foo/bar
95 ('x', 'x')
96 URI: https://example.org/bar
97 ('x', 'x')
98
99 *** Test prefix matching
100
101 CFG: {x.prefix: http://example.org/foo, y.prefix: http://example.org/bar}
102 URI: http://example.org/foo
103 ('x', 'x')
104 URI: http://example.org/foo/bar
105 ('x', 'x')
106 URI: http://example.org/bar
107 ('y', 'y')
108 URI: https://example.org/foo
109 abort
110 URI: https://example.org/foo/bar
111 abort
112 URI: https://example.org/bar
113 abort
114 CFG: {x.prefix: http://example.org/foo, y.prefix: http://example.org/foo/bar}
115 URI: http://example.org/foo
116 ('x', 'x')
117 URI: http://example.org/foo/bar
118 ('y', 'y')
119 URI: http://example.org/bar
120 abort
121 URI: https://example.org/foo
122 abort
123 URI: https://example.org/foo/bar
124 abort
125 URI: https://example.org/bar
126 abort
127 CFG: {x.prefix: *, y.prefix: https://example.org/bar}
128 URI: http://example.org/foo
129 abort
130 URI: http://example.org/foo/bar
131 abort
132 URI: http://example.org/bar
133 abort
134 URI: https://example.org/foo
135 ('x', 'x')
136 URI: https://example.org/foo/bar
137 ('x', 'x')
138 URI: https://example.org/bar
139 ('y', 'y')