mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
44 lines
865 B
Nix
44 lines
865 B
Nix
import ./make-test-python.nix (
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
name = "mealie";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [
|
|
litchipi
|
|
anoa
|
|
];
|
|
};
|
|
|
|
nodes =
|
|
let
|
|
sqlite = {
|
|
services.mealie = {
|
|
enable = true;
|
|
port = 9001;
|
|
};
|
|
};
|
|
postgres = {
|
|
imports = [ sqlite ];
|
|
services.mealie.database.createLocally = true;
|
|
};
|
|
in
|
|
{
|
|
inherit sqlite postgres;
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
def test_mealie(node):
|
|
node.wait_for_unit("mealie.service")
|
|
node.wait_for_open_port(9001)
|
|
node.succeed("curl --fail http://localhost:9001")
|
|
|
|
test_mealie(sqlite)
|
|
simple.send_monitor_command("quit")
|
|
simple.wait_for_shutdown()
|
|
test_mealie(postgres)
|
|
'';
|
|
}
|
|
)
|