1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ cransom ];
11 networking.domain = "example.com"; # FQDN: sm.example.com
12 services.smokeping = {
15 mailHost = "127.0.0.2";
18 binary = /run/wrappers/bin/fping
27 sm.wait_for_unit("smokeping")
28 sm.wait_for_unit("thttpd")
29 sm.wait_for_file("/var/lib/smokeping/data/Local/LocalMachine.rrd")
30 sm.succeed("curl -s -f localhost:8081/smokeping.fcgi?target=Local")
31 # Check that there's a helpful page without explicit path as well.
32 sm.succeed("curl -s -f localhost:8081")
33 sm.succeed("ls /var/lib/smokeping/cache/Local/LocalMachine_mini.png")
34 sm.succeed("ls /var/lib/smokeping/cache/index.html")