mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
nixosTests.firefly-iii-data-importer: init
This commit is contained in:
parent
3ce5da914b
commit
7e729ac34d
@ -326,6 +326,7 @@ in {
|
|||||||
filesender = handleTest ./filesender.nix {};
|
filesender = handleTest ./filesender.nix {};
|
||||||
filesystems-overlayfs = runTest ./filesystems-overlayfs.nix;
|
filesystems-overlayfs = runTest ./filesystems-overlayfs.nix;
|
||||||
firefly-iii = handleTest ./firefly-iii.nix {};
|
firefly-iii = handleTest ./firefly-iii.nix {};
|
||||||
|
firefly-iii-data-importer = handleTest ./firefly-iii-data-importer.nix {};
|
||||||
firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; };
|
firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; };
|
||||||
firefox-beta = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-beta; };
|
firefox-beta = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-beta; };
|
||||||
firefox-devedition = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-devedition; };
|
firefox-devedition = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-devedition; };
|
||||||
|
27
nixos/tests/firefly-iii-data-importer.nix
Normal file
27
nixos/tests/firefly-iii-data-importer.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import ./make-test-python.nix (
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "firefly-iii-data-importer";
|
||||||
|
meta.maintainers = [ lib.maintainers.savyajha ];
|
||||||
|
|
||||||
|
nodes.dataImporter =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.firefly-iii-data-importer = {
|
||||||
|
enable = true;
|
||||||
|
enableNginx = true;
|
||||||
|
settings = {
|
||||||
|
LOG_CHANNEL = "stdout";
|
||||||
|
USE_CACHE = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
dataImporter.wait_for_unit("phpfpm-firefly-iii-data-importer.service")
|
||||||
|
dataImporter.wait_for_unit("nginx.service")
|
||||||
|
dataImporter.succeed("curl -fvvv -Ls http://localhost/token | grep 'Firefly III Data Import Tool'")
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user