1 import ./make-test-python.nix ({ pkgs, lib, ... }:
3 accessKey = "BKIKJAA5BMMU2RHO6IBB";
4 secretKey = "V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12";
5 secretKeyFile = pkgs.writeText "outline-secret-key" ''
8 rootCredentialsFile = pkgs.writeText "minio-credentials-full" ''
9 MINIO_ROOT_USER=${accessKey}
10 MINIO_ROOT_PASSWORD=${secretKey}
16 meta.maintainers = lib.teams.cyberus.members;
19 outline = { pkgs, config, ... }: {
20 nixpkgs.config.allowUnfree = true;
21 environment.systemPackages = [ pkgs.minio-client ];
26 inherit accessKey secretKeyFile;
27 uploadBucketUrl = "http://localhost:9000";
28 uploadBucketName = "outline";
29 region = config.services.minio.region;
34 inherit rootCredentialsFile;
41 machine.wait_for_unit("minio.service")
42 machine.wait_for_open_port(9000)
44 # Create a test bucket on the server
46 "mc config host add minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4"
48 machine.succeed("mc mb minio/outline")
50 outline.wait_for_unit("outline.service")
51 outline.wait_for_open_port(3000)
52 outline.succeed("curl --fail http://localhost:3000/")