nixpkgs/nixos/tests/etesync-dav.nix
Wolfgang Walther 1c6af9ba0a
treewide: remove unused with
Auto-fixed by nixf-diagnose.

(cherry picked from commit c283f32d29)
2025-10-05 12:38:28 +02:00

29 lines
660 B
Nix

import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "etesync-dav";
meta = {
maintainers = [ ];
};
nodes.machine =
{ config, pkgs, ... }:
{
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 &")
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/")
'';
}
)