blob: 9c30e35c09bb2b3ef91f9a205855a489c5894d8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ ... }:
{
name = "bookorbit";
containers.machine = {
services.bookorbit = {
enable = true;
environment = {
JWT_SECRET = "abcdefghijklmnop";
SETUP_BOOTSTRAP_TOKEN = "abcdefgh";
};
};
};
testScript = ''
machine.wait_for_unit('bookorbit.service')
machine.wait_for_open_port(3000)
machine.succeed('curl --fail http://localhost:3000 | grep BookOrbit')
'';
}
|