anchor.diff:          services.dnsmasq.enable = true;
         };
         exporterTest = ''
  -        waitForUnit("prometheus-dnsmasq-exporter.service");
  -        waitForOpenPort(9153);
  -        succeed("curl -sSf http://localhost:9153/metrics | grep -q 'dnsmasq_leases 0'");
  +        wait_for_unit("prometheus-dnsmasq-exporter.service")
  +        wait_for_open_port(9153)
  +        succeed("curl -sSf http://localhost:9153/metrics | grep -q 'dnsmasq_leases 0'")
         '';
       };
   
  
positive.code:  *    };
   *
   *    testScript = ''
   *      $<exporterName>->start();
   *      $<exporterName>->waitForUnit("prometheus-<exporterName>-exporter.service");
   *      $<exporterName>->waitForOpenPort("1234");
   *      $<exporterName>->succeed("curl -sSf 'localhost:1234/metrics'");
   *      $<exporterName>->shutdown();
   *    '';
   */
  
  
negative.code:         systemd.services.prometheus-wireguard-exporter.after = [ "wireguard-wg0.service" ];
        };
        exporterTest = ''
          wait_for_unit("prometheus-wireguard-exporter.service")
          wait_for_open_port(9586)
          wait_until_succeeds(
              "curl -sSf http://localhost:9586/metrics | grep '${snakeoil.peer1.publicKey}'"
          )
        '';
      };
    };
  