From c3d1e5c65ae564450bed700d546b88414ec32e43 Mon Sep 17 00:00:00 2001 From: Anton Mosich Date: Tue, 2 Dec 2025 20:47:02 +0100 Subject: [PATCH] pimsync: extend test to contacts If I had added such a test right away, I would have encountered #8258 myself. I mistakenly believed the contact and calendar modules to be the same. --- tests/modules/programs/pimsync/basic.nix | 16 ++++++++++++++++ tests/modules/programs/pimsync/basic.scfg | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/tests/modules/programs/pimsync/basic.nix b/tests/modules/programs/pimsync/basic.nix index 2b9b7434c..2f9ae61e3 100644 --- a/tests/modules/programs/pimsync/basic.nix +++ b/tests/modules/programs/pimsync/basic.nix @@ -22,6 +22,22 @@ basePath = ".local/state/calendar"; }; + accounts.contact = { + accounts.carddav = { + pimsync.enable = true; + remote = { + passwordCommand = [ + "pass" + "carddav" + ]; + type = "carddav"; + url = "https://carddav.example.com"; + userName = "bob"; + }; + }; + basePath = ".local/state/contact"; + }; + programs.pimsync = { enable = true; settings = [ diff --git a/tests/modules/programs/pimsync/basic.scfg b/tests/modules/programs/pimsync/basic.scfg index e0f6bb22d..a035e7883 100644 --- a/tests/modules/programs/pimsync/basic.scfg +++ b/tests/modules/programs/pimsync/basic.scfg @@ -28,4 +28,21 @@ pair calendar-http { storage_a http-local storage_b http-remote } +storage carddav-local { + fileext .vcf + path /home/hm-user/.local/state/contact/carddav + type vdir/vcard +} +storage carddav-remote { + type carddav + url https://carddav.example.com + username bob + password { + cmd pass carddav + } +} +pair contacts-carddav { + storage_a carddav-local + storage_b carddav-remote +} status_path /test/dir