2021-08-10 13:04:07 +02:00
|
|
|
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "cryptpad";
|
|
|
|
meta.maintainers = with maintainers; [ davhau ];
|
|
|
|
|
|
|
|
nodes.machine =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{ services.cryptpad.enable = true; };
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("cryptpad.service")
|
2022-06-11 14:22:53 +02:00
|
|
|
machine.wait_for_open_port(3000)
|
2021-08-10 13:04:07 +02:00
|
|
|
machine.succeed("curl -L --fail http://localhost:3000/sheet")
|
|
|
|
'';
|
|
|
|
})
|