/usr/share/augeas/lenses/dist/tests/test_collectd.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 59 60 61 62 | (*
Module: Test_Collectd
Provides unit tests and examples for the <Collectd> lens.
*)
module Test_Collectd =
(* Variable: simple *)
let simple = "LoadPlugin contextswitch
LoadPlugin cpu
FQDNLookup \"true\"
Include \"/var/lib/puppet/modules/collectd/plugins/*.conf\"
"
(* Test: Collectd.lns *)
test Collectd.lns get simple =
{ "directive" = "LoadPlugin"
{ "arg" = "contextswitch" }
}
{ "directive" = "LoadPlugin"
{ "arg" = "cpu" }
}
{ "directive" = "FQDNLookup"
{ "arg" = "\"true\"" }
}
{ "directive" = "Include"
{ "arg" = "\"/var/lib/puppet/modules/collectd/plugins/*.conf\"" }
}
(* Variable: filters *)
let filters = "<Chain \"PreCache\">
<Rule \"no_fqdn\">
<Match \"regex\">
Host \"^[^\.]*$\"
Invert false
</Match>
Target \"stop\"
</Rule>
</Chain>
"
(* Test: Collectd.lns *)
test Collectd.lns get filters =
{ "Chain"
{ "arg" = "\"PreCache\"" }
{ "Rule"
{ "arg" = "\"no_fqdn\"" }
{ "Match"
{ "arg" = "\"regex\"" }
{ "directive" = "Host"
{ "arg" = "\"^[^\.]*$\"" }
}
{ "directive" = "Invert"
{ "arg" = "false" }
}
}
{ "directive" = "Target"
{ "arg" = "\"stop\"" }
}
}
}
|