2020-12-09 12:39:15 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
|
|
|
|
name = "etesync-dav";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-12-09 12:39:15 +00:00
|
|
|
maintainers = [ _3699n ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine = { config, pkgs, ... }: {
|
|
|
|
environment.systemPackages = [ pkgs.curl pkgs.etesync-dav ];
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
machine.succeed("etesync-dav --version")
|
2021-12-06 16:07:01 +00:00
|
|
|
machine.execute("etesync-dav >&2 &")
|
2020-12-09 12:39:15 +00:00
|
|
|
machine.wait_for_open_port(37358)
|
|
|
|
with subtest("Check that the web interface is accessible"):
|
|
|
|
assert "Add User" in machine.succeed("curl -s http://localhost:37358/.web/add/")
|
|
|
|
'';
|
|
|
|
})
|