mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
19 lines
390 B
Nix
19 lines
390 B
Nix
|
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")
|
||
|
machine.wait_for_open_port("3000")
|
||
|
machine.succeed("curl -L --fail http://localhost:3000/sheet")
|
||
|
'';
|
||
|
})
|