vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / nixos / tests / firefly-iii-data-importer.nix
blobaba41576d7974b8f05cb0c5558bb199bfa8cf1f0
1 import ./make-test-python.nix (
2   { lib, ... }:
4   {
5     name = "firefly-iii-data-importer";
6     meta.maintainers = [ lib.maintainers.savyajha ];
8     nodes.dataImporter =
9       { ... }:
10       {
11         services.firefly-iii-data-importer = {
12           enable = true;
13           enableNginx = true;
14           settings = {
15             LOG_CHANNEL = "stdout";
16             USE_CACHE = true;
17           };
18         };
19       };
21     testScript = ''
22       dataImporter.wait_for_unit("phpfpm-firefly-iii-data-importer.service")
23       dataImporter.wait_for_unit("nginx.service")
24       dataImporter.succeed("curl -fvvv -Ls http://localhost/token | grep 'Firefly III Data Import Tool'")
25     '';
26   }