1import ./make-test.nix ({ pkgs, ...} : {
2 name = "hydra-init-localdb";
3 meta = with pkgs.stdenv.lib.maintainers; {
4 maintainers = [ pstn ];
5 };
6
7 machine =
8 { config, pkgs, ... }:
9
10 {
11 services.hydra = {
12 enable = true;
13
14 #Hydra needs those settings to start up, so we add something not harmfull.
15 hydraURL = "example.com";
16 notificationSender = "example@example.com";
17 };
18 };
19
20 testScript =
21 ''
22 # let the system boot up
23 $machine->waitForUnit("multi-user.target");
24 # test whether the database is running
25 $machine->succeed("systemctl status postgresql.service");
26 # test whether the actual hydra daemons are running
27 $machine->succeed("systemctl status hydra-queue-runner.service");
28 $machine->succeed("systemctl status hydra-init.service");
29 $machine->succeed("systemctl status hydra-evaluator.service");
30 $machine->succeed("systemctl status hydra-send-stats.service");
31 '';
32})