1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/tests/etesync-dav.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
632 B
Nix
Raw Normal View History

2020-11-30 21:10:07 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
name = "etesync-dav";
meta = with pkgs.lib.maintainers; {
2020-11-30 21:10:07 +00:00
maintainers = [ _3699n ];
};
2022-03-20 23:15:30 +00:00
nodes.machine = { config, pkgs, ... }: {
2020-11-30 21:10:07 +00:00
environment.systemPackages = [ pkgs.curl pkgs.etesync-dav ];
};
testScript =
''
machine.wait_for_unit("multi-user.target")
machine.succeed("etesync-dav --version")
machine.execute("etesync-dav >&2 &")
2020-11-30 21:10:07 +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/")
'';
})