mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
nixos/mealie: init tests
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
parent
ba9431edf8
commit
aeb79caaf6
@ -516,6 +516,7 @@ in {
|
||||
matrix-synapse = handleTest ./matrix/synapse.nix {};
|
||||
matrix-synapse-workers = handleTest ./matrix/synapse-workers.nix {};
|
||||
mattermost = handleTest ./mattermost.nix {};
|
||||
mealie = handleTest ./mealie.nix {};
|
||||
mediamtx = handleTest ./mediamtx.nix {};
|
||||
mediatomb = handleTest ./mediatomb.nix {};
|
||||
mediawiki = handleTest ./mediawiki.nix {};
|
||||
|
24
nixos/tests/mealie.nix
Normal file
24
nixos/tests/mealie.nix
Normal file
@ -0,0 +1,24 @@
|
||||
import ./make-test-python.nix ({ pkgs, ...} :
|
||||
|
||||
{
|
||||
name = "mealie";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ litchipi ];
|
||||
};
|
||||
|
||||
nodes = {
|
||||
server = {
|
||||
services.mealie = {
|
||||
enable = true;
|
||||
port = 9001;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
server.wait_for_unit("mealie.service")
|
||||
server.wait_for_open_port(9001)
|
||||
server.succeed("curl --fail http://localhost:9001")
|
||||
'';
|
||||
})
|
@ -3,6 +3,7 @@
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, makeWrapper
|
||||
, nixosTests
|
||||
, python3Packages
|
||||
, stdenv
|
||||
, writeShellScript
|
||||
@ -144,6 +145,10 @@ in pythonpkgs.buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) mealie;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A self hosted recipe manager and meal planner";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user