summaryrefslogtreecommitdiff
path: root/tests/test-hgweb-auth.py.out
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
commita498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch)
treedaf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-hgweb-auth.py.out
downloadmercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz
Tarball conversion
Diffstat (limited to 'tests/test-hgweb-auth.py.out')
-rw-r--r--tests/test-hgweb-auth.py.out196
1 files changed, 196 insertions, 0 deletions
diff --git a/tests/test-hgweb-auth.py.out b/tests/test-hgweb-auth.py.out
new file mode 100644
index 0000000..f82bb3e
--- /dev/null
+++ b/tests/test-hgweb-auth.py.out
@@ -0,0 +1,196 @@
+
+*** Test in-uri schemes
+
+CFG: {x.prefix: http://example.org}
+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
+URI: https://x@example.org/bar
+ abort
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: https://example.org}
+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')
+URI: https://x@example.org/bar
+ ('x', 'x')
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: http://example.org, x.schemes: https}
+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
+URI: https://x@example.org/bar
+ abort
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: https://example.org, x.schemes: http}
+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')
+URI: https://x@example.org/bar
+ ('x', 'x')
+URI: https://y@example.org/bar
+ abort
+
+*** Test separately configured schemes
+
+CFG: {x.prefix: example.org, x.schemes: http}
+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
+URI: https://x@example.org/bar
+ abort
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: example.org, x.schemes: https}
+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')
+URI: https://x@example.org/bar
+ ('x', 'x')
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: example.org, x.schemes: http https}
+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')
+URI: https://x@example.org/bar
+ ('x', 'x')
+URI: https://y@example.org/bar
+ abort
+
+*** Test prefix matching
+
+CFG: {x.prefix: http://example.org/foo, y.prefix: http://example.org/bar}
+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
+URI: https://x@example.org/bar
+ abort
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: http://example.org/foo, y.prefix: http://example.org/foo/bar}
+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
+URI: https://x@example.org/bar
+ abort
+URI: https://y@example.org/bar
+ abort
+CFG: {x.prefix: *, y.prefix: https://example.org/bar}
+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')
+URI: https://x@example.org/bar
+ ('x', 'x')
+URI: https://y@example.org/bar
+ ('y', 'y')
+
+*** Test user matching
+
+CFG: {x.password: xpassword, x.prefix: http://example.org/foo, x.username: None}
+URI: http://y@example.org/foo
+ ('y', 'xpassword')
+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}
+URI: http://y@example.org/foo
+ ('y', 'ypassword')
+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}
+URI: http://y@example.org/foo/bar
+ ('y', 'xpassword')
+
+*** Test urllib2 and util.url
+
+URIs: http://user@example.com:8080/foo http://example.com:8080/foo
+('user', '')