/usr/share/augeas/lenses/dist/tests/test_pythonpaste.aug is in augeas-lenses 1.2.0-0ubuntu1.3.
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 | 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
"
|