/usr/share/augeas/lenses/dist/tests/test_pythonpaste.aug is in augeas-lenses 1.4.0-0ubuntu1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | module Test_pythonpaste =
let conf = "
#blah blah
[main]
pipeline = hello
[composite:main]
use = egg:Paste#urlmap
/v2.0 = public_api
/: public_version_api
"
test PythonPaste.lns get conf =
{ }
{ "#comment" = "blah blah" }
{ "main"
{ "pipeline" = "hello" }
{ }
}
{ "composite:main"
{ "use" = "egg:Paste#urlmap" }
{ "1" = "/v2.0 = public_api" }
{ "2" = "/: public_version_api" }
}
test PythonPaste.lns put conf after
set "main/pipeline" "goodbye";
set "composite:main/3" "/v3: a_new_api_version"
= "
#blah blah
[main]
pipeline = goodbye
[composite:main]
use = egg:Paste#urlmap
/v2.0 = public_api
/: public_version_api
/v3: a_new_api_version
"
(* Paste can define global config in DEFAULT, then override with "set" in sections, RHBZ#1175545 *)
test PythonPaste.lns get "[DEFAULT]
log_name = swift
log_facility = LOG_LOCAL1
[app:proxy-server]
use = egg:swift#proxy
set log_name = proxy-server\n" =
{ "DEFAULT"
{ "log_name" = "swift" }
{ "log_facility" = "LOG_LOCAL1" }
{ } }
{ "app:proxy-server"
{ "use" = "egg:swift#proxy" }
{ "log_name" = "proxy-server"
{ "@set" } } }
|