comparison tests/test-hgweb-auth.py.out @ 37940:31c37e703cee

tests: use stringutil.pprint instead of custom dumper in test-hgweb-auth.py Differential Revision: https://phab.mercurial-scm.org/D3529
author Augie Fackler <augie@google.com>
date Fri, 27 Apr 2018 13:46:54 -0400
parents 0f1311e829c9
children c53f0ead5781
comparison
equal deleted inserted replaced
37939:6eca47f6319d 37940:31c37e703cee
1 1
2 *** Test in-uri schemes 2 *** Test in-uri schemes
3 3
4 CFG: {x.prefix: http://example.org} 4 CFG: {b'x.prefix': b'http://example.org'}
5 URI: http://example.org/foo 5 URI: http://example.org/foo
6 ('x', 'x') 6 ('x', 'x')
7 URI: http://example.org/foo/bar 7 URI: http://example.org/foo/bar
8 ('x', 'x') 8 ('x', 'x')
9 URI: http://example.org/bar 9 URI: http://example.org/bar
16 abort 16 abort
17 URI: https://x@example.org/bar 17 URI: https://x@example.org/bar
18 abort 18 abort
19 URI: https://y@example.org/bar 19 URI: https://y@example.org/bar
20 abort 20 abort
21 CFG: {x.prefix: https://example.org} 21 CFG: {b'x.prefix': b'https://example.org'}
22 URI: http://example.org/foo 22 URI: http://example.org/foo
23 abort 23 abort
24 URI: http://example.org/foo/bar 24 URI: http://example.org/foo/bar
25 abort 25 abort
26 URI: http://example.org/bar 26 URI: http://example.org/bar
33 ('x', 'x') 33 ('x', 'x')
34 URI: https://x@example.org/bar 34 URI: https://x@example.org/bar
35 ('x', 'x') 35 ('x', 'x')
36 URI: https://y@example.org/bar 36 URI: https://y@example.org/bar
37 abort 37 abort
38 CFG: {x.prefix: http://example.org, x.schemes: https} 38 CFG: {b'x.prefix': b'http://example.org', b'x.schemes': b'https'}
39 URI: http://example.org/foo 39 URI: http://example.org/foo
40 ('x', 'x') 40 ('x', 'x')
41 URI: http://example.org/foo/bar 41 URI: http://example.org/foo/bar
42 ('x', 'x') 42 ('x', 'x')
43 URI: http://example.org/bar 43 URI: http://example.org/bar
50 abort 50 abort
51 URI: https://x@example.org/bar 51 URI: https://x@example.org/bar
52 abort 52 abort
53 URI: https://y@example.org/bar 53 URI: https://y@example.org/bar
54 abort 54 abort
55 CFG: {x.prefix: https://example.org, x.schemes: http} 55 CFG: {b'x.prefix': b'https://example.org', b'x.schemes': b'http'}
56 URI: http://example.org/foo 56 URI: http://example.org/foo
57 abort 57 abort
58 URI: http://example.org/foo/bar 58 URI: http://example.org/foo/bar
59 abort 59 abort
60 URI: http://example.org/bar 60 URI: http://example.org/bar
70 URI: https://y@example.org/bar 70 URI: https://y@example.org/bar
71 abort 71 abort
72 72
73 *** Test separately configured schemes 73 *** Test separately configured schemes
74 74
75 CFG: {x.prefix: example.org, x.schemes: http} 75 CFG: {b'x.prefix': b'example.org', b'x.schemes': b'http'}
76 URI: http://example.org/foo 76 URI: http://example.org/foo
77 ('x', 'x') 77 ('x', 'x')
78 URI: http://example.org/foo/bar 78 URI: http://example.org/foo/bar
79 ('x', 'x') 79 ('x', 'x')
80 URI: http://example.org/bar 80 URI: http://example.org/bar
87 abort 87 abort
88 URI: https://x@example.org/bar 88 URI: https://x@example.org/bar
89 abort 89 abort
90 URI: https://y@example.org/bar 90 URI: https://y@example.org/bar
91 abort 91 abort
92 CFG: {x.prefix: example.org, x.schemes: https} 92 CFG: {b'x.prefix': b'example.org', b'x.schemes': b'https'}
93 URI: http://example.org/foo 93 URI: http://example.org/foo
94 abort 94 abort
95 URI: http://example.org/foo/bar 95 URI: http://example.org/foo/bar
96 abort 96 abort
97 URI: http://example.org/bar 97 URI: http://example.org/bar
104 ('x', 'x') 104 ('x', 'x')
105 URI: https://x@example.org/bar 105 URI: https://x@example.org/bar
106 ('x', 'x') 106 ('x', 'x')
107 URI: https://y@example.org/bar 107 URI: https://y@example.org/bar
108 abort 108 abort
109 CFG: {x.prefix: example.org, x.schemes: http https} 109 CFG: {b'x.prefix': b'example.org', b'x.schemes': b'http https'}
110 URI: http://example.org/foo 110 URI: http://example.org/foo
111 ('x', 'x') 111 ('x', 'x')
112 URI: http://example.org/foo/bar 112 URI: http://example.org/foo/bar
113 ('x', 'x') 113 ('x', 'x')
114 URI: http://example.org/bar 114 URI: http://example.org/bar
124 URI: https://y@example.org/bar 124 URI: https://y@example.org/bar
125 abort 125 abort
126 126
127 *** Test prefix matching 127 *** Test prefix matching
128 128
129 CFG: {x.prefix: http://example.org/foo, y.prefix: http://example.org/bar} 129 CFG: {b'x.prefix': b'http://example.org/foo', b'y.prefix': b'http://example.org/bar'}
130 URI: http://example.org/foo 130 URI: http://example.org/foo
131 ('x', 'x') 131 ('x', 'x')
132 URI: http://example.org/foo/bar 132 URI: http://example.org/foo/bar
133 ('x', 'x') 133 ('x', 'x')
134 URI: http://example.org/bar 134 URI: http://example.org/bar
141 abort 141 abort
142 URI: https://x@example.org/bar 142 URI: https://x@example.org/bar
143 abort 143 abort
144 URI: https://y@example.org/bar 144 URI: https://y@example.org/bar
145 abort 145 abort
146 CFG: {x.prefix: http://example.org/foo, y.prefix: http://example.org/foo/bar} 146 CFG: {b'x.prefix': b'http://example.org/foo', b'y.prefix': b'http://example.org/foo/bar'}
147 URI: http://example.org/foo 147 URI: http://example.org/foo
148 ('x', 'x') 148 ('x', 'x')
149 URI: http://example.org/foo/bar 149 URI: http://example.org/foo/bar
150 ('y', 'y') 150 ('y', 'y')
151 URI: http://example.org/bar 151 URI: http://example.org/bar
158 abort 158 abort
159 URI: https://x@example.org/bar 159 URI: https://x@example.org/bar
160 abort 160 abort
161 URI: https://y@example.org/bar 161 URI: https://y@example.org/bar
162 abort 162 abort
163 CFG: {x.prefix: *, y.prefix: https://example.org/bar} 163 CFG: {b'x.prefix': b'*', b'y.prefix': b'https://example.org/bar'}
164 URI: http://example.org/foo 164 URI: http://example.org/foo
165 abort 165 abort
166 URI: http://example.org/foo/bar 166 URI: http://example.org/foo/bar
167 abort 167 abort
168 URI: http://example.org/bar 168 URI: http://example.org/bar
178 URI: https://y@example.org/bar 178 URI: https://y@example.org/bar
179 ('y', 'y') 179 ('y', 'y')
180 180
181 *** Test user matching 181 *** Test user matching
182 182
183 CFG: {x.password: xpassword, x.prefix: http://example.org/foo, x.username: None} 183 CFG: {b'x.password': b'xpassword', b'x.prefix': b'http://example.org/foo', b'x.username': None}
184 URI: http://y@example.org/foo 184 URI: http://y@example.org/foo
185 ('y', 'xpassword') 185 ('y', 'xpassword')
186 CFG: {x.password: xpassword, x.prefix: http://example.org/foo, x.username: None, y.password: ypassword, y.prefix: http://example.org/foo, y.username: y} 186 CFG: {b'x.password': b'xpassword', b'x.prefix': b'http://example.org/foo', b'x.username': None, b'y.password': b'ypassword', b'y.prefix': b'http://example.org/foo', b'y.username': b'y'}
187 URI: http://y@example.org/foo 187 URI: http://y@example.org/foo
188 ('y', 'ypassword') 188 ('y', 'ypassword')
189 CFG: {x.password: xpassword, x.prefix: http://example.org/foo/bar, x.username: None, y.password: ypassword, y.prefix: http://example.org/foo, y.username: y} 189 CFG: {b'x.password': b'xpassword', b'x.prefix': b'http://example.org/foo/bar', b'x.username': None, b'y.password': b'ypassword', b'y.prefix': b'http://example.org/foo', b'y.username': b'y'}
190 URI: http://y@example.org/foo/bar 190 URI: http://y@example.org/foo/bar
191 ('y', 'xpassword') 191 ('y', 'xpassword')
192 192
193 *** Test urllib2 and util.url 193 *** Test urllib2 and util.url
194 194