vscode-extensions.sas.sas-lsp: 1.12.0 -> 1.13.0 (#367941)
[NixPkgs.git] / nixos / tests / web-apps / agorakit.nix
blobe0dd0d13984250245c636c28b3d65c049502d0cd
1 { pkgs, ... }:
3   name = "agorakit";
5   meta.maintainers = with pkgs.lib.maintainers; [ julienmalka ];
7   nodes = {
8     agorakit =
9       { ... }:
10       {
11         services.agorakit = {
12           enable = true;
13           appKeyFile = toString (
14             pkgs.writeText "agorakit-app-key" "uTqGUN5GUmUrh/zSAYmhyzRk62pnpXICyXv9eeITI8k="
15           );
16           hostName = "localhost";
17           database.createLocally = true;
18           mail = {
19             driver = "smtp";
20             encryption = "tls";
21             host = "localhost";
22             port = 1025;
23             fromName = "Agorakit";
24             from = "agorakit@localhost";
25             user = "agorakit@localhost";
26             passwordFile = toString (pkgs.writeText "agorakit-mail-pass" "a-secure-mail-password");
27           };
28         };
29       };
30   };
32   testScript = ''
33     start_all()
35     agorakit.wait_for_unit("nginx.service")
36     agorakit.wait_for_unit("agorakit-setup.service")
38     # Login page should now contain the configured site name
40     agorakit.succeed("curl http://localhost/login | grep Agorakit")
42   '';