wip: vmTest
This commit is contained in:
parent
5bf7d0ef20
commit
62217c30f6
2 changed files with 22 additions and 1 deletions
|
@ -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
21
vmTest.nix
Normal 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)
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue