/usr/share/augeas/lenses/dist/tests/test_carbon.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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | (*
Module: Test_Carbon
Provides unit tests and examples for the <Carbon> lens.
*)
module Test_Carbon =
let carbon_conf = "[cache]
# Configure carbon directories.
# Specify the user to drop privileges to
# If this is blank carbon runs as the user that invokes it
# This user must have write access to the local data directory
USER =
MAX_CACHE_SIZE = inf # comment at EOL
LINE_RECEIVER_INTERFACE=0.0.0.0
LINE_RECEIVER_PORT = 2003
ENABLE_UDP_LISTENER = False
[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014
"
test Carbon.lns get carbon_conf =
{ "cache"
{ "#comment" = "Configure carbon directories." }
{ }
{ "#comment" = "Specify the user to drop privileges to" }
{ "#comment" = "If this is blank carbon runs as the user that invokes it" }
{ "#comment" = "This user must have write access to the local data directory" }
{ "USER" }
{ }
{ "MAX_CACHE_SIZE" = "inf"
{ "#comment" = "comment at EOL" }
}
{ "LINE_RECEIVER_INTERFACE" = "0.0.0.0" }
{ "LINE_RECEIVER_PORT" = "2003" }
{ "ENABLE_UDP_LISTENER" = "False" }
{ }
}
{ "relay"
{ "LINE_RECEIVER_INTERFACE" = "0.0.0.0" }
{ "LINE_RECEIVER_PORT" = "2013" }
{ "PICKLE_RECEIVER_INTERFACE" = "0.0.0.0" }
{ "PICKLE_RECEIVER_PORT" = "2014" }
}
let relay_rules_conf = "# You must have exactly one section with 'default = true'
# Note that all destinations listed must also exist in carbon.conf
# in the DESTINATIONS setting in the [relay] section
[default]
default = true
destinations = 127.0.0.1:2004:a, 127.0.0.1:2104:b
"
test Carbon.lns get relay_rules_conf =
{ "#comment" = "You must have exactly one section with 'default = true'" }
{ "#comment" = "Note that all destinations listed must also exist in carbon.conf" }
{ "#comment" = "in the DESTINATIONS setting in the [relay] section" }
{ "default"
{ "default" = "true" }
{ "destinations" = "127.0.0.1:2004:a, 127.0.0.1:2104:b" }
}
let storage_aggregation_conf = "# Aggregation methods for whisper files. Entries are scanned in order,
# and first match wins. This file is scanned for changes every 60 seconds
[max]
pattern = \.max$
xFilesFactor = 0.1
aggregationMethod = max
"
test Carbon.lns get storage_aggregation_conf =
{ "#comment" = "Aggregation methods for whisper files. Entries are scanned in order," }
{ "#comment" = "and first match wins. This file is scanned for changes every 60 seconds" }
{ "max"
{ "pattern" = "\.max$" }
{ "xFilesFactor" = "0.1" }
{ "aggregationMethod" = "max" }
}
|