1 import ./make-test-python.nix ({ pkgs, ...} :
8 meta = with pkgs.stdenv.lib.maintainers; {
9 maintainers = [ rnhmjoj ];
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")
31 "${pkgs.curl}/bin/curl "
32 + "-u user:password http://localhost:${toString port}"
34 assert "Unauthorised." in machine.succeed(
35 "${pkgs.curl}/bin/curl "
36 + "-u user:wrongpwd http://localhost:${toString port}"