python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / tests / icingaweb2.nix
blobe631e667bd504c7fcc512e7a56960b534f64c45e
1 import ./make-test-python.nix ({ pkgs, ... }: {
2   name = "icingaweb2";
3   meta = with pkgs.lib.maintainers; {
4     maintainers = [ das_j ];
5   };
7   nodes = {
8     icingaweb2 = { config, pkgs, ... }: {
9       services.icingaweb2 = {
10         enable = true;
12         modulePackages = with pkgs.icingaweb2Modules; {
13           particles = theme-particles;
14           spring = theme-spring;
15         };
17         modules = {
18           doc.enable = true;
19           migrate.enable =  true;
20           setup.enable = true;
21           test.enable = true;
22           translation.enable = true;
23         };
25         generalConfig = {
26           global = {
27             module_path = "${pkgs.icingaweb2}/modules";
28           };
29         };
31         authentications = {
32           icingaweb = {
33             backend = "external";
34           };
35         };
37         groupBackends = {
38           icingaweb = {
39             backend = "db";
40             resource = "icingaweb_db";
41           };
42         };
44         resources = {
45           # Not used, so no DB server needed
46           icingaweb_db = {
47             type = "db";
48             db = "mysql";
49             host = "localhost";
50             username = "icingaweb2";
51             password = "icingaweb2";
52             dbname = "icingaweb2";
53           };
54         };
56         roles = {
57           Administrators = {
58             users = "*";
59             permissions = "*";
60           };
61         };
62       };
63     };
64   };
66   testScript = ''
67     start_all()
68     icingaweb2.wait_for_unit("multi-user.target")
69     icingaweb2.succeed("curl -sSf http://icingaweb2/authentication/login")
70   '';