diff --git a/default.nix b/default.nix index 2acf879..5704124 100644 --- a/default.nix +++ b/default.nix @@ -9,5 +9,5 @@ in { updateIndex = pkgs.callPackage ./updateIndex { }; packagesJSON = pkgs.callPackage ./packagesJSON.nix { nixpkgs = nixpkgsSource; }; optionsJSON = pkgs.callPackage ./optionsJSON.nix { nixpkgs = nixpkgsSource; }; - vmTest = "foo"; + vmTest = pkgs.callPackage ./vmTest.nix { }; } diff --git a/vmTest.nix b/vmTest.nix new file mode 100644 index 0000000..19e4783 --- /dev/null +++ b/vmTest.nix @@ -0,0 +1,21 @@ +{ testers }: testers.runNixOSTest { + name = "search.forkos.org"; + nodes.machine = { + systemd.services.meilisearch.environment.MEILI_HTTP_PAYLOAD_SIZE_LIMIT = "512000000"; + services.meilisearch = { + enable = true; + noAnalytics = true; + + # packages.json is already >250mb + payloadSizeLimit = "512000000"; + environment = "development"; + masterKeyEnvironmentFile = null; + }; + }; + testScript = '' + start_all() + + machine.wait_for_unit("meilisearch") + machine.wait_for_open_port(7700) + ''; +}