From bf483949f57d8970ab976aa775e65780480a57ac Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 19 Jul 2026 22:54:07 +0200 Subject: tests/monitoring: Re-name to “basic” MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/by-name/mo/monitoring-basic/test.nix | 75 +++++++++++++++++++++++++++++ tests/by-name/mo/monitoring/test.nix | 76 ------------------------------ 2 files changed, 75 insertions(+), 76 deletions(-) create mode 100644 tests/by-name/mo/monitoring-basic/test.nix delete mode 100644 tests/by-name/mo/monitoring/test.nix (limited to 'tests/by-name/mo') diff --git a/tests/by-name/mo/monitoring-basic/test.nix b/tests/by-name/mo/monitoring-basic/test.nix new file mode 100644 index 0000000..a00331f --- /dev/null +++ b/tests/by-name/mo/monitoring-basic/test.nix @@ -0,0 +1,75 @@ +{ + extraModules, + vhack, + ... +}: let + grafanaDomain = "grafana.server.org"; + scrutinyDomain = "scrutiny.server.org"; +in + vhack.runTest { + name = "monitoring"; + + serverDomains = [ + {server = grafanaDomain;} + {server = scrutinyDomain;} + ]; + + nodes = { + client = {}; + + server = {config, ...}: { + imports = + extraModules + ++ [ + ../../../../modules + ]; + + # there are no SMART available disk in the VM, so this service always fails. + systemd.services."smartd".enable = false; + + age.identityPaths = ["${../../../common/email/hostKey}"]; + + vhack = { + monitoring = { + grafana = { + enable = true; + contactPoints = ["me@example.com"]; + fqdn = grafanaDomain; + + adminPassword = ../../../common/email/dkim/alice.com/private.age; + secretKey = ../../../common/email/dkim/bob.com/private.age; + + # TODO: Add a test for that <2026-07-19> + smtp = null; + }; + + loki = { + enable = true; + }; + + prometheus = { + enable = true; + }; + + scrutiny = { + enable = true; + fqdn = scrutinyDomain; + }; + }; + }; + }; + }; + + services = [ + {server = "grafana.service";} + {server = "fluent-bit.service";} + {server = "loki.service";} + {server = "netdata.service";} + ]; + + testScript = {...}: + # Python + '' + # TODO: We should probably query some of the prometheus metrics here? <2026-07-19> + ''; + } diff --git a/tests/by-name/mo/monitoring/test.nix b/tests/by-name/mo/monitoring/test.nix deleted file mode 100644 index 0b2ed1c..0000000 --- a/tests/by-name/mo/monitoring/test.nix +++ /dev/null @@ -1,76 +0,0 @@ -{ - extraModules, - pkgs, - vhack, - ... -}: let - grafanaDomain = "grafana.server.org"; - scrutinyDomain = "scrutiny.server.org"; -in - vhack.runTest { - name = "monitoring"; - - serverDomains = [ - {server = grafanaDomain;} - {server = scrutinyDomain;} - ]; - - nodes = { - client = {}; - - server = {config, ...}: { - imports = - extraModules - ++ [ - ../../../../modules - ]; - - # there are no SMART available disk in the VM, so this service always fails. - systemd.services."smartd".enable = false; - - age.identityPaths = ["${../../../common/email/hostKey}"]; - - vhack = { - monitoring = { - grafana = { - enable = true; - contactPoints = ["me@example.com"]; - fqdn = grafanaDomain; - - adminPassword = ../../../common/email/dkim/alice.com/private.age; - secretKey = ../../../common/email/dkim/bob.com/private.age; - - # TODO: Add a test for that <2026-07-19> - smtp = null; - }; - - loki = { - enable = true; - }; - - prometheus = { - enable = true; - }; - - scrutiny = { - enable = true; - fqdn = scrutinyDomain; - }; - }; - }; - }; - }; - - services = [ - {server = "grafana.service";} - {server = "fluent-bit.service";} - {server = "loki.service";} - {server = "netdata.service";} - ]; - - testScript = {...}: - # Python - '' - # TODO: We should probably query some of the prometheus metrics here? <2026-07-19> - ''; - } -- cgit v1.3.1