wip: vmTest

This commit is contained in:
Janik Haag 2024-07-26 01:08:51 +02:00
parent 5bf7d0ef20
commit 62217c30f6
No known key found for this signature in database
2 changed files with 22 additions and 1 deletions

View file

@ -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 { };
}

21
vmTest.nix Normal file
View file

@ -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)
'';
}