1 module Test_pythonpaste =
14 test PythonPaste.lns get conf =
16 { "#comment" = "blah blah" }
18 { "pipeline" = "hello" }
22 { "use" = "egg:Paste#urlmap" }
23 { "1" = "/v2.0 = public_api" }
24 { "2" = "/: public_version_api" }
28 test PythonPaste.lns put conf after
29 set "main/pipeline" "goodbye";
30 set "composite:main/3" "/v3: a_new_api_version"
37 use = egg:Paste#urlmap
40 /v3: a_new_api_version
43 (* Paste can define global config in DEFAULT, then override with "set" in sections, RHBZ#1175545 *)
44 test PythonPaste.lns get "[DEFAULT]
46 log_facility = LOG_LOCAL1
50 set log_name = proxy-server\n" =
52 { "log_name" = "swift" }
53 { "log_facility" = "LOG_LOCAL1" }
56 { "use" = "egg:swift#proxy" }
57 { "log_name" = "proxy-server"