3 Provides unit tests and examples for the <Collectd> lens.
8 let simple = "LoadPlugin contextswitch
11 Include \"/var/lib/puppet/modules/collectd/plugins/*.conf\"
14 (* Test: Collectd.lns *)
15 test Collectd.lns get simple =
16 { "directive" = "LoadPlugin"
17 { "arg" = "contextswitch" }
19 { "directive" = "LoadPlugin"
22 { "directive" = "FQDNLookup"
23 { "arg" = "\"true\"" }
25 { "directive" = "Include"
26 { "arg" = "\"/var/lib/puppet/modules/collectd/plugins/*.conf\"" }
30 (* Variable: filters *)
31 let filters = "<Chain \"PreCache\">
43 (* Test: Collectd.lns *)
44 test Collectd.lns get filters =
46 { "arg" = "\"PreCache\"" }
48 { "arg" = "\"no_fqdn\"" }
50 { "arg" = "\"regex\"" }
51 { "directive" = "Host"
52 { "arg" = "\"^[^\.]*$\"" }
54 { "directive" = "Invert"
58 { "directive" = "Target"
59 { "arg" = "\"stop\"" }