about summary refs log tree commit diff
path: root/nixos/tests/cloudlog.nix
diff options
context:
space:
mode:
authorMatt Melling <mattmelling@fastmail.com>2023-01-01 23:19:37 +0000
committerMatt Melling <mattmelling@fastmail.com>2023-01-23 22:41:07 +0000
commitc281dd3e05b0266721c0fe707d7259d88095db7a (patch)
tree7f60603171d9279854fb7eed3e01b1673901c67c /nixos/tests/cloudlog.nix
parent31e3844aea6550150924cc24a00faf3d04e5a3b2 (diff)
nixos/cloudlog: init
Diffstat (limited to 'nixos/tests/cloudlog.nix')
-rw-r--r--nixos/tests/cloudlog.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/cloudlog.nix b/nixos/tests/cloudlog.nix
new file mode 100644
index 0000000000000..c99951c1b22c2
--- /dev/null
+++ b/nixos/tests/cloudlog.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+  name = "cloudlog";
+  meta = {
+    maintainers = with pkgs.lib.maintainers; [ melling ];
+  };
+  nodes = {
+    machine = {
+      services.mysql.package = pkgs.mariadb;
+      services.cloudlog.enable = true;
+    };
+  };
+  testScript = ''
+    start_all()
+    machine.wait_for_unit("phpfpm-cloudlog")
+    machine.wait_for_open_port(80);
+    machine.wait_until_succeeds("curl -s -L --fail http://localhost | grep 'Login - Cloudlog'")
+  '';
+})