mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
19 lines
431 B
Nix
19 lines
431 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "opensearch";
|
|
meta.maintainers = with pkgs.lib.maintainers; [ shyim ];
|
|
|
|
nodes.machine = {
|
|
virtualisation.memorySize = 2048;
|
|
services.opensearch.enable = true;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_unit("opensearch.service")
|
|
machine.wait_for_open_port(9200)
|
|
|
|
machine.succeed(
|
|
"curl --fail localhost:9200"
|
|
)
|
|
'';
|
|
})
|