test-hgweb-auth.py.out
196 lines
| 4.9 KiB
| text/plain
|
TextLexer
/ tests / test-hgweb-auth.py.out
Sune Foldager
|
r8333 | |||
*** Test in-uri schemes | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'http://example.org'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
('x', 'x') | ||||
URI: http://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: http://example.org/bar | ||||
('x', 'x') | ||||
URI: https://example.org/foo | ||||
abort | ||||
URI: https://example.org/foo/bar | ||||
abort | ||||
URI: https://example.org/bar | ||||
abort | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
abort | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'https://example.org'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
abort | ||||
URI: http://example.org/foo/bar | ||||
abort | ||||
URI: http://example.org/bar | ||||
abort | ||||
URI: https://example.org/foo | ||||
('x', 'x') | ||||
URI: https://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: https://example.org/bar | ||||
('x', 'x') | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
('x', 'x') | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'http://example.org', b'x.schemes': b'https'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
('x', 'x') | ||||
URI: http://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: http://example.org/bar | ||||
('x', 'x') | ||||
URI: https://example.org/foo | ||||
abort | ||||
URI: https://example.org/foo/bar | ||||
abort | ||||
URI: https://example.org/bar | ||||
abort | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
abort | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'https://example.org', b'x.schemes': b'http'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
abort | ||||
URI: http://example.org/foo/bar | ||||
abort | ||||
URI: http://example.org/bar | ||||
abort | ||||
URI: https://example.org/foo | ||||
('x', 'x') | ||||
URI: https://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: https://example.org/bar | ||||
('x', 'x') | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
('x', 'x') | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Sune Foldager
|
r8333 | |||
*** Test separately configured schemes | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'example.org', b'x.schemes': b'http'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
('x', 'x') | ||||
URI: http://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: http://example.org/bar | ||||
('x', 'x') | ||||
URI: https://example.org/foo | ||||
abort | ||||
URI: https://example.org/foo/bar | ||||
abort | ||||
URI: https://example.org/bar | ||||
abort | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
abort | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'example.org', b'x.schemes': b'https'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
abort | ||||
URI: http://example.org/foo/bar | ||||
abort | ||||
URI: http://example.org/bar | ||||
abort | ||||
URI: https://example.org/foo | ||||
('x', 'x') | ||||
URI: https://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: https://example.org/bar | ||||
('x', 'x') | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
('x', 'x') | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'example.org', b'x.schemes': b'http https'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
('x', 'x') | ||||
URI: http://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: http://example.org/bar | ||||
('x', 'x') | ||||
URI: https://example.org/foo | ||||
('x', 'x') | ||||
URI: https://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: https://example.org/bar | ||||
('x', 'x') | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
('x', 'x') | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Sune Foldager
|
r8333 | |||
*** Test prefix matching | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'http://example.org/foo', b'y.prefix': b'http://example.org/bar'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
('x', 'x') | ||||
URI: http://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: http://example.org/bar | ||||
('y', 'y') | ||||
URI: https://example.org/foo | ||||
abort | ||||
URI: https://example.org/foo/bar | ||||
abort | ||||
URI: https://example.org/bar | ||||
abort | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
abort | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'http://example.org/foo', b'y.prefix': b'http://example.org/foo/bar'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
('x', 'x') | ||||
URI: http://example.org/foo/bar | ||||
('y', 'y') | ||||
URI: http://example.org/bar | ||||
abort | ||||
URI: https://example.org/foo | ||||
abort | ||||
URI: https://example.org/foo/bar | ||||
abort | ||||
URI: https://example.org/bar | ||||
abort | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
abort | ||||
URI: https://y@example.org/bar | ||||
abort | ||||
Augie Fackler
|
r37959 | CFG: {b'x.prefix': b'*', b'y.prefix': b'https://example.org/bar'} | ||
Sune Foldager
|
r8333 | URI: http://example.org/foo | ||
abort | ||||
URI: http://example.org/foo/bar | ||||
abort | ||||
URI: http://example.org/bar | ||||
abort | ||||
URI: https://example.org/foo | ||||
('x', 'x') | ||||
URI: https://example.org/foo/bar | ||||
('x', 'x') | ||||
URI: https://example.org/bar | ||||
('y', 'y') | ||||
Patrick Mezard
|
r15005 | URI: https://x@example.org/bar | ||
('x', 'x') | ||||
URI: https://y@example.org/bar | ||||
('y', 'y') | ||||
*** Test user matching | ||||
Augie Fackler
|
r37959 | CFG: {b'x.password': b'xpassword', b'x.prefix': b'http://example.org/foo', b'x.username': None} | ||
Patrick Mezard
|
r15005 | URI: http://y@example.org/foo | ||
('y', 'xpassword') | ||||
Augie Fackler
|
r37959 | 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'} | ||
Patrick Mezard
|
r15005 | URI: http://y@example.org/foo | ||
('y', 'ypassword') | ||||
Augie Fackler
|
r37959 | 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'} | ||
Patrick Mezard
|
r15005 | URI: http://y@example.org/foo/bar | ||
('y', 'xpassword') | ||||
Patrick Mezard
|
r15024 | |||
*** Test urllib2 and util.url | ||||
URIs: http://user@example.com:8080/foo http://example.com:8080/foo | ||||
('user', '') | ||||