depot/packages/checks/keycloak-custom-jre.nix

20 lines
476 B
Nix
Raw Normal View History

{ nixosTest, keycloak }:
2022-08-28 17:05:18 +03:00
nixosTest {
name = "keycloak";
nodes.machine.services.keycloak = {
enable = true;
package = keycloak;
2022-08-28 17:05:18 +03:00
database.passwordFile = builtins.toFile "keycloak-test-password" "kcnixostest1234";
settings = {
proxy = "edge";
hostname = "keycloak.local";
};
};
testScript = ''
machine.wait_for_unit("keycloak.service")
machine.wait_for_open_port(80)
2022-08-28 17:05:18 +03:00
machine.succeed("curl --fail http://127.0.0.1:80")
'';
}