From 8073392362ad5688ce0180e3de24c7a906b453f9 Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Fri, 19 Sep 2025 20:53:15 +0200 Subject: [PATCH] nixos/tests/outline: drop minio to simplify test; increase memorySize do to OOM error --- nixos/tests/outline.nix | 49 +++++++++-------------------------------- 1 file changed, 10 insertions(+), 39 deletions(-) diff --git a/nixos/tests/outline.nix b/nixos/tests/outline.nix index 58c751d66f78..9dc6bab39ecc 100644 --- a/nixos/tests/outline.nix +++ b/nixos/tests/outline.nix @@ -1,15 +1,4 @@ -{ pkgs, lib, ... }: -let - accessKey = "BKIKJAA5BMMU2RHO6IBB"; - secretKey = "V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12"; - secretKeyFile = pkgs.writeText "outline-secret-key" '' - ${secretKey} - ''; - rootCredentialsFile = pkgs.writeText "minio-credentials-full" '' - MINIO_ROOT_USER=${accessKey} - MINIO_ROOT_PASSWORD=${secretKey} - ''; -in +{ lib, ... }: { name = "outline"; @@ -17,37 +6,19 @@ in node.pkgsReadOnly = false; - nodes.outline = - { pkgs, config, ... }: - { - nixpkgs.config.allowUnfree = true; - environment.systemPackages = [ pkgs.minio-client ]; - services.outline = { - enable = true; - forceHttps = false; - storage = { - inherit accessKey secretKeyFile; - uploadBucketUrl = "http://localhost:9000"; - uploadBucketName = "outline"; - region = config.services.minio.region; - }; - }; - services.minio = { - enable = true; - inherit rootCredentialsFile; + nodes.outline = { + virtualisation.memorySize = 2 * 1024; + nixpkgs.config.allowUnfree = true; + services.outline = { + enable = true; + forceHttps = false; + storage = { + storageType = "local"; }; }; + }; testScript = '' - machine.wait_for_unit("minio.service") - machine.wait_for_open_port(9000) - - # Create a test bucket on the server - machine.succeed( - "mc alias set minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4" - ) - machine.succeed("mc mb minio/outline") - outline.wait_for_unit("outline.service") outline.wait_for_open_port(3000) outline.succeed("curl --fail http://localhost:3000/")