summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/unbound/config/testdata
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/infinite_rec.conf85
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_glob_include.conf85
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_include.conf85
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob.conf82
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob2.conf80
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob3.conf81
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include.conf82
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include2.conf81
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include3.conf81
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel.conf82
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel2.conf81
-rw-r--r--src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel3.conf81
12 files changed, 986 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/infinite_rec.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/infinite_rec.conf
new file mode 100644
index 000000000..904f75b30
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/infinite_rec.conf
@@ -0,0 +1,85 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include: "testdata/infinite_rec.conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+ statistics-cumulative: yes
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+ # extended-statistics: yes
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ control-enable: yes
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.1
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ control-port: 8953
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+ control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ control-key-file: "/etc/unbound/unbound_control.key"
+
+ # unbound-control certificate file.
+ control-cert-file: "/etc/unbound/unbound_control.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_glob_include.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_glob_include.conf
new file mode 100644
index 000000000..21620f7d5
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_glob_include.conf
@@ -0,0 +1,85 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include: "testdata/__non_existent_glob__*.conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+ statistics-cumulative: yes
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+ # extended-statistics: yes
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ control-enable: yes
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.1
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ control-port: 8953
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+ control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ control-key-file: "/etc/unbound/unbound_control.key"
+
+ # unbound-control certificate file.
+ control-cert-file: "/etc/unbound/unbound_control.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_include.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_include.conf
new file mode 100644
index 000000000..e493e35bb
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/non_existent_include.conf
@@ -0,0 +1,85 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include: "testdata/__non_existent_include__.conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+ statistics-cumulative: yes
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+ # extended-statistics: yes
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ control-enable: yes
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.1
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ control-port: 8953
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+ control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ control-key-file: "/etc/unbound/unbound_control.key"
+
+ # unbound-control certificate file.
+ control-cert-file: "/etc/unbound/unbound_control.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob.conf
new file mode 100644
index 000000000..f020c580a
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob.conf
@@ -0,0 +1,82 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include: "testdata/valid_glob[2-3].conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ statistics-cumulative: yes
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ control-enable: yes
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.1
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ # control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ # control-key-file: "/etc/unbound/unbound_control_2.key"
+
+ # unbound-control certificate file.
+ # control-cert-file: "/etc/unbound/unbound_control_2.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob2.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob2.conf
new file mode 100644
index 000000000..85bd80e0d
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob2.conf
@@ -0,0 +1,80 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ # control-enable: no
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ # control-interface: ::1
+ control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ # control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ control-key-file: "/etc/unbound/unbound_control_2.key"
+
+ # unbound-control certificate file.
+ control-cert-file: "/etc/unbound/unbound_control_2.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob3.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob3.conf
new file mode 100644
index 000000000..f20eacf1a
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_glob3.conf
@@ -0,0 +1,81 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ # control-enable: no
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.3
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ # control-key-file: "/etc/unbound/unbound_control.key"
+
+ # unbound-control certificate file.
+ # control-cert-file: "/etc/unbound/unbound_control.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include.conf
new file mode 100644
index 000000000..1974f6178
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include.conf
@@ -0,0 +1,82 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include: "testdata/valid_include2.conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ statistics-cumulative: yes
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ control-enable: yes
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.1
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ # control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ # control-key-file: "/etc/unbound/unbound_control_2.key"
+
+ # unbound-control certificate file.
+ # control-cert-file: "/etc/unbound/unbound_control_2.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include2.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include2.conf
new file mode 100644
index 000000000..c956d44d5
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include2.conf
@@ -0,0 +1,81 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include: "testdata/valid_include3.conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ # control-enable: no
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ # control-interface: ::1
+ control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ # control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ control-key-file: "/etc/unbound/unbound_control_2.key"
+
+ # unbound-control certificate file.
+ control-cert-file: "/etc/unbound/unbound_control_2.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include3.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include3.conf
new file mode 100644
index 000000000..f20eacf1a
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include3.conf
@@ -0,0 +1,81 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ # statistics-cumulative: no
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+ # Script file to load
+ # python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ # control-enable: no
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.3
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ # control-key-file: "/etc/unbound/unbound_control.key"
+
+ # unbound-control certificate file.
+ # control-cert-file: "/etc/unbound/unbound_control.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel.conf
new file mode 100644
index 000000000..9e5675e10
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel.conf
@@ -0,0 +1,82 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include-toplevel: "testdata/valid_include_toplevel2.conf"
+
+# The server clause sets the main parameters.
+server:
+ # whitespace is not necessary, but looks cleaner.
+
+ # verbosity number, 0 is least verbose. 1 is default.
+ # verbosity: 1
+
+ # print statistics to the log (for every thread) every N seconds.
+ # Set to "" or 0 to disable. Default is disabled.
+ # statistics-interval: 0
+
+ # enable shm for stats, default no. if you enable also enable
+ # statistics-interval, every time it also writes stats to the
+ # shared memory segment keyed with shm-key.
+ # shm-enable: no
+
+ # shm for stats uses this key, and key+1 for the shared mem segment.
+ # shm-key: 11777
+
+ # enable cumulative statistics, without clearing them after printing.
+ statistics-cumulative: yes
+
+ # enable extended statistics (query types, answer codes, status)
+ # printed from unbound-control. default off, because of speed.
+ # extended-statistics: no
+
+ # number of threads to create. 1 disables threading.
+ # num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+# Script file to load
+# python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ control-enable: yes
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.1
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ # control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ # control-key-file: "/etc/unbound/unbound_control_2.key"
+
+ # unbound-control certificate file.
+ # control-cert-file: "/etc/unbound/unbound_control_2.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel2.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel2.conf
new file mode 100644
index 000000000..f3f69470d
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel2.conf
@@ -0,0 +1,81 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+include-toplevel: "testdata/valid_include_toplevel3.conf"
+
+# The server clause sets the main parameters.
+server:
+# whitespace is not necessary, but looks cleaner.
+
+# verbosity number, 0 is least verbose. 1 is default.
+# verbosity: 1
+
+# print statistics to the log (for every thread) every N seconds.
+# Set to "" or 0 to disable. Default is disabled.
+# statistics-interval: 0
+
+# enable shm for stats, default no. if you enable also enable
+# statistics-interval, every time it also writes stats to the
+# shared memory segment keyed with shm-key.
+# shm-enable: no
+
+# shm for stats uses this key, and key+1 for the shared mem segment.
+# shm-key: 11777
+
+# enable cumulative statistics, without clearing them after printing.
+# statistics-cumulative: no
+
+# enable extended statistics (query types, answer codes, status)
+# printed from unbound-control. default off, because of speed.
+# extended-statistics: no
+
+# number of threads to create. 1 disables threading.
+# num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+# Script file to load
+# python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ # control-enable: no
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ # control-interface: ::1
+ control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ # control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ control-key-file: "/etc/unbound/unbound_control_2.key"
+
+ # unbound-control certificate file.
+ control-cert-file: "/etc/unbound/unbound_control_2.pem"
diff --git a/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel3.conf b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel3.conf
new file mode 100644
index 000000000..d30778c01
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/unbound/config/testdata/valid_include_toplevel3.conf
@@ -0,0 +1,81 @@
+#
+# Example configuration file.
+#
+# See unbound.conf(5) man page, version 1.9.4.
+#
+# this is a comment.
+
+#Use this to include other text into the file.
+
+# The server clause sets the main parameters.
+server:
+# whitespace is not necessary, but looks cleaner.
+
+# verbosity number, 0 is least verbose. 1 is default.
+# verbosity: 1
+
+# print statistics to the log (for every thread) every N seconds.
+# Set to "" or 0 to disable. Default is disabled.
+# statistics-interval: 0
+
+# enable shm for stats, default no. if you enable also enable
+# statistics-interval, every time it also writes stats to the
+# shared memory segment keyed with shm-key.
+# shm-enable: no
+
+# shm for stats uses this key, and key+1 for the shared mem segment.
+# shm-key: 11777
+
+# enable cumulative statistics, without clearing them after printing.
+# statistics-cumulative: no
+
+# enable extended statistics (query types, answer codes, status)
+# printed from unbound-control. default off, because of speed.
+# extended-statistics: no
+
+# number of threads to create. 1 disables threading.
+# num-threads: 2
+
+# Python config section. To enable:
+# o use --with-pythonmodule to configure before compiling.
+# o list python in the module-config string (above) to enable.
+# It can be at the start, it gets validated results, or just before
+# the iterator and process before DNSSEC validation.
+# o and give a python-script to run.
+python:
+# Script file to load
+# python-script: "/etc/unbound/ubmodule-tst.py"
+
+# Remote control config section.
+remote-control:
+ # Enable remote control with unbound-control(8) here.
+ # set up the keys and certificates with unbound-control-setup.
+ # control-enable: no
+
+ # what interfaces are listened to for remote control.
+ # give 0.0.0.0 and ::0 to listen to all interfaces.
+ # set to an absolute path to use a unix local name pipe, certificates
+ # are not used for that, so key and cert files need not be present.
+ # control-interface: 127.0.0.1
+ control-interface: 10.0.0.3
+ # control-interface: ::1
+ # control-interface: /var/run/test.sock
+
+ # port number for remote control operations.
+ control-port: 8955
+
+ # for localhost, you can disable use of TLS by setting this to "no"
+ # For local sockets this option is ignored, and TLS is not used.
+ # control-use-cert: "yes"
+
+ # unbound server key file.
+ # server-key-file: "/etc/unbound/unbound_server.key"
+
+ # unbound server certificate file.
+ # server-cert-file: "/etc/unbound/unbound_server.pem"
+
+ # unbound-control key file.
+ # control-key-file: "/etc/unbound/unbound_control.key"
+
+ # unbound-control certificate file.
+ # control-cert-file: "/etc/unbound/unbound_control.pem"