1 import ./make-test-python.nix ({ pkgs, ...} :
8 meta = with pkgs.lib.maintainers; {
9 maintainers = [ rnhmjoj ];
12 nodes.machine = { ... }: {
13 imports = [ ../modules/profiles/minimal.nix ];
15 networking.firewall.allowedTCPPorts = [ 9000 ];
17 services.magnetico = {
21 web.credentials.user = "$2y$12$P88ZF6soFthiiAeXnz64aOWDsY3Dw7Yw8fZ6GtiqFNjknD70zDmNe";
28 machine.wait_for_unit("magneticod")
29 machine.wait_for_unit("magneticow")
30 machine.wait_for_open_port(${toString port})
32 "${pkgs.curl}/bin/curl --fail "
33 + "-u user:password http://localhost:${toString port}"
36 "${pkgs.curl}/bin/curl --fail "
37 + "-u user:wrongpwd http://localhost:${toString port}"