summary refs log tree commit diff
path: root/nixos/tests/etesync-dav.nix
diff options
context:
space:
mode:
authorNicholas von Klitzing <nicholas.v.klitzing@gmail.com>2020-11-30 22:10:07 +0100
committerNicholas von Klitzing <nicholas.v.klitzing@gmail.com>2020-12-07 14:09:50 +0100
commit231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c (patch)
tree354959cf5d3908c5739d0835ccfedf46c21523d6 /nixos/tests/etesync-dav.nix
parent5fb387e91f22457583825183d7b5e2f77fe5641b (diff)
downloadnixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.tar
nixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.tar.gz
nixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.tar.bz2
nixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.tar.lz
nixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.tar.xz
nixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.tar.zst
nixpkgs-231ca64ed9d1b7cdde6dbcfe05c0c696b4bc873c.zip
etesync-dav: 0.20.0 -> 0.30.6
Diffstat (limited to 'nixos/tests/etesync-dav.nix')
-rw-r--r--nixos/tests/etesync-dav.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/etesync-dav.nix b/nixos/tests/etesync-dav.nix
new file mode 100644
index 00000000000..286f919aa8c
--- /dev/null
+++ b/nixos/tests/etesync-dav.nix
@@ -0,0 +1,21 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+
+  name = "etesync-dav";
+  meta = with pkgs.stdenv.lib.maintainers; {
+    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")
+      machine.execute("etesync-dav &")
+      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/")
+    '';
+})