diff options
Diffstat (limited to 'test/config')
21 files changed, 567 insertions, 0 deletions
diff --git a/test/config/authentication.ini b/test/config/authentication.ini new file mode 100644 index 0000000..6852ece --- /dev/null +++ b/test/config/authentication.ini @@ -0,0 +1,3 @@ +[icingaweb2] +backend = "db" +resource = "icingaweb_db" diff --git a/test/config/config.ini b/test/config/config.ini new file mode 100644 index 0000000..8fc8330 --- /dev/null +++ b/test/config/config.ini @@ -0,0 +1,7 @@ +[global] +show_stacktraces = "1" +config_backend = "db" +config_resource = "icingaweb_db" + +[logging] +log = "none" diff --git a/test/config/enabledModules/doc b/test/config/enabledModules/doc new file mode 120000 index 0000000..a9d790e --- /dev/null +++ b/test/config/enabledModules/doc @@ -0,0 +1 @@ +/usr/share/icingaweb2/modules/doc
\ No newline at end of file diff --git a/test/config/enabledModules/monitoring b/test/config/enabledModules/monitoring new file mode 120000 index 0000000..c201d00 --- /dev/null +++ b/test/config/enabledModules/monitoring @@ -0,0 +1 @@ +/usr/share/icingaweb2/modules/monitoring
\ No newline at end of file diff --git a/test/config/enabledModules/toplevelview b/test/config/enabledModules/toplevelview new file mode 120000 index 0000000..71aae1d --- /dev/null +++ b/test/config/enabledModules/toplevelview @@ -0,0 +1 @@ +/usr/share/icingaweb2/modules/toplevelview
\ No newline at end of file diff --git a/test/config/enabledModules/translation b/test/config/enabledModules/translation new file mode 120000 index 0000000..45b66cf --- /dev/null +++ b/test/config/enabledModules/translation @@ -0,0 +1 @@ +/usr/share/icingaweb2/modules/translation
\ No newline at end of file diff --git a/test/config/groups.ini b/test/config/groups.ini new file mode 100644 index 0000000..6852ece --- /dev/null +++ b/test/config/groups.ini @@ -0,0 +1,3 @@ +[icingaweb2] +backend = "db" +resource = "icingaweb_db" diff --git a/test/config/icingaweb2/authentication.ini b/test/config/icingaweb2/authentication.ini new file mode 100644 index 0000000..6852ece --- /dev/null +++ b/test/config/icingaweb2/authentication.ini @@ -0,0 +1,3 @@ +[icingaweb2] +backend = "db" +resource = "icingaweb_db" diff --git a/test/config/icingaweb2/config.ini b/test/config/icingaweb2/config.ini new file mode 100644 index 0000000..8fc8330 --- /dev/null +++ b/test/config/icingaweb2/config.ini @@ -0,0 +1,7 @@ +[global] +show_stacktraces = "1" +config_backend = "db" +config_resource = "icingaweb_db" + +[logging] +log = "none" diff --git a/test/config/icingaweb2/enabledModules/monitoring b/test/config/icingaweb2/enabledModules/monitoring new file mode 120000 index 0000000..c201d00 --- /dev/null +++ b/test/config/icingaweb2/enabledModules/monitoring @@ -0,0 +1 @@ +/usr/share/icingaweb2/modules/monitoring
\ No newline at end of file diff --git a/test/config/icingaweb2/enabledModules/toplevelview b/test/config/icingaweb2/enabledModules/toplevelview new file mode 120000 index 0000000..71aae1d --- /dev/null +++ b/test/config/icingaweb2/enabledModules/toplevelview @@ -0,0 +1 @@ +/usr/share/icingaweb2/modules/toplevelview
\ No newline at end of file diff --git a/test/config/icingaweb2/groups.ini b/test/config/icingaweb2/groups.ini new file mode 100644 index 0000000..6852ece --- /dev/null +++ b/test/config/icingaweb2/groups.ini @@ -0,0 +1,3 @@ +[icingaweb2] +backend = "db" +resource = "icingaweb_db" diff --git a/test/config/icingaweb2/modules/monitoring/backends.ini b/test/config/icingaweb2/modules/monitoring/backends.ini new file mode 100644 index 0000000..eed9a90 --- /dev/null +++ b/test/config/icingaweb2/modules/monitoring/backends.ini @@ -0,0 +1,3 @@ +[ido] +type = "ido" +resource = "icinga_db" diff --git a/test/config/icingaweb2/resources.ini b/test/config/icingaweb2/resources.ini new file mode 100644 index 0000000..7dd53ee --- /dev/null +++ b/test/config/icingaweb2/resources.ini @@ -0,0 +1,19 @@ +[icingaweb_db] +type = "db" +db = "mysql" +host = "db" +port = "" +dbname = "icingaweb2" +username = "icingaweb2" +password = "rosebud" +charset = "" +persistent = "0" +use_ssl = "0" + +[icinga_db] +type = "db" +db = "mysql" +host = "db" +dbname = "icinga" +username = "icingaweb2" +password = "rosebud" diff --git a/test/config/icingaweb2/roles.ini b/test/config/icingaweb2/roles.ini new file mode 100644 index 0000000..44f14d5 --- /dev/null +++ b/test/config/icingaweb2/roles.ini @@ -0,0 +1,4 @@ +[Administratoren] +users = "icingaadmin" +permissions = "*" +groups = "Administratoren" diff --git a/test/config/modules/monitoring/backends.ini b/test/config/modules/monitoring/backends.ini new file mode 100644 index 0000000..2611429 --- /dev/null +++ b/test/config/modules/monitoring/backends.ini @@ -0,0 +1,8 @@ +[icinga] +type = "ido" +resource = "icinga_db" + +[legacy] +type = "ido" +resource = "icinga_legacy_db" +;disabled = "1" diff --git a/test/config/modules/toplevelview/views/.gitignore b/test/config/modules/toplevelview/views/.gitignore new file mode 100644 index 0000000..355164c --- /dev/null +++ b/test/config/modules/toplevelview/views/.gitignore @@ -0,0 +1 @@ +*/ diff --git a/test/config/modules/toplevelview/views/mass.yml b/test/config/modules/toplevelview/views/mass.yml new file mode 100644 index 0000000..5bf1ad8 --- /dev/null +++ b/test/config/modules/toplevelview/views/mass.yml @@ -0,0 +1,394 @@ +---
+name: More Tiles
+children:
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_down
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_down
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_down
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+- name: Section
+ children:
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
+ - name: Tile
+ children:
+ - host: host_ok
diff --git a/test/config/modules/toplevelview/views/test.yml b/test/config/modules/toplevelview/views/test.yml new file mode 100644 index 0000000..789de94 --- /dev/null +++ b/test/config/modules/toplevelview/views/test.yml @@ -0,0 +1,75 @@ +---
+name: Test
+children:
+- name: Single Objects
+ children:
+ - name: OK
+ children:
+ - host: host_ok
+ - host: host_ok
+ service: s_ok
+ - host: host_s_soft
+ - host: host_s_soft
+ service: s_critical_soft
+ - name: DOWN
+ children:
+ - host: host_down
+ - host: host_down
+ service: s_critical
+ - name: CRITICAL
+ children:
+ - host: host_s_critical
+ - host: host_s_critical
+ service: s_critical
+ - name: WARNING
+ children:
+ - host: host_s_warning
+ - host: host_s_warning
+ service: s_warning
+- name: Single Objects Handled
+ children:
+ - name: CRITICAL handled
+ children:
+ - host: host_s_critical_handled
+ - host: host_s_critical_handled
+ service: s_critical_handled
+ - name: WARNING handled
+ children:
+ - host: host_s_warning_handled
+ - host: host_s_warning_handled
+ service: s_warning_handled
+- name: Hostgroups
+ children:
+ - name: OK
+ children:
+ - hostgroup: HG_OK
+ - hostgroup: HG_SOFT
+ - name: DOWN
+ children:
+ - hostgroup: HG_DOWN
+ - name: CRITICAL
+ children:
+ - hostgroup: HG_CRITICAL
+ - name: WARNING
+ children:
+ - hostgroup: HG_WARNING
+- name: TLV Missing
+ children:
+ - name: Partially missing
+ children:
+ - host: host_ok
+ - name: missing
+ - name: Missing with problems
+ children:
+ - host: host_down
+ - name: missing
+ - name: Missing with handled
+ children:
+ - host: host_down_handled
+ - name: missing
+ - name: Empty
+ children:
+ - name: nothing here
+ - name: Notexisting Object
+ children:
+ - host: notexisting
\ No newline at end of file diff --git a/test/config/resources.ini b/test/config/resources.ini new file mode 100644 index 0000000..2c0c221 --- /dev/null +++ b/test/config/resources.ini @@ -0,0 +1,27 @@ +[icingaweb_db] +type = "db" +db = "mysql" +host = "db" +port = "" +dbname = "icingaweb2" +username = "icingaweb2" +password = "rosebud" +charset = "" +persistent = "0" +use_ssl = "0" + +[icinga_db] +type = "db" +db = "mysql" +host = "db" +dbname = "icinga" +username = "icingaweb2" +password = "rosebud" + +[icinga_legacy_db] +type = "db" +db = "mysql" +host = "db" +dbname = "icinga_legacy" +username = "icingaweb2" +password = "rosebud" diff --git a/test/config/roles.ini b/test/config/roles.ini new file mode 100644 index 0000000..44f14d5 --- /dev/null +++ b/test/config/roles.ini @@ -0,0 +1,4 @@ +[Administratoren] +users = "icingaadmin" +permissions = "*" +groups = "Administratoren" |