/usr/share/augeas/lenses/dist/tests/test_cgrules.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 | module Test_cgrules =
let conf="#cgrules test configuration file
poooeter cpu test1/
% memory test2/
@somegroup cpu toto/
% devices toto1/
% memory toto3/
"
test Cgrules.lns get conf =
{ "#comment" = "cgrules test configuration file" }
{ "user" = "poooeter"
{ "cpu" = "test1/" }
{ "memory" = "test2/" } }
{ "group" = "somegroup"
{ "cpu" = "toto/" }
{ "devices" = "toto1/" }
{ "memory" = "toto3/" } }
test Cgrules.lns put conf after
set "user/cpu" "test3/";
rm "user/memory";
rm "group";
insa "devices" "user/*[last()]";
set "user/devices" "newtest/";
insb "memory" "user/devices";
set "user/memory" "memtest/"
= "#cgrules test configuration file
poooeter cpu test3/
% memory memtest/
% devices newtest/
"
|