authelia: add target to wait for
This commit is contained in:
parent
dd2fbf9ea8
commit
12721fea39
2 changed files with 14 additions and 1 deletions
|
|
@ -597,5 +597,18 @@ in
|
|||
];
|
||||
}
|
||||
];
|
||||
|
||||
systemd.targets."authelia-${fqdn}" = let
|
||||
services = [
|
||||
"authelia-${fqdn}.service"
|
||||
] ++ lib.optionals cfg.debug [
|
||||
config.shb.mitmdump.instances."authelia-${fqdn}".serviceName
|
||||
];
|
||||
in {
|
||||
after = services;
|
||||
requires = services;
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ in
|
|||
|
||||
def tests():
|
||||
machine.wait_for_unit("lldap.service")
|
||||
machine.wait_for_unit("authelia-authelia.machine.com.service")
|
||||
machine.wait_for_unit("authelia-authelia.machine.com.target")
|
||||
machine.wait_for_open_port(9091)
|
||||
|
||||
endpoints = json.loads(machine.succeed("curl -s http://machine.com/.well-known/openid-configuration"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue