@@ -14,9 +14,6 @@ let
1414
1515 [storage]
1616 filesystem_folder = /tmp/collections
17−
18− [logging]
19− debug = True
2017 '';
2118 };
2219 # WARNING: DON'T DO THIS IN PRODUCTION!
@@ -49,13 +46,18 @@ in
4946 services.radicale.extraArgs = [
5047 "--export-storage" "/tmp/collections-new"
5148 ];
49+ system.stateVersion = "17.03";
5250 };
5351 radicale2_verify = lib.recursiveUpdate radicale2 {
54− services.radicale.extraArgs = [ "--verify-storage" ];
52+ services.radicale.extraArgs = [ "--debug" "--verify-storage" ];
53+ system.stateVersion = "17.09";
5554 };
5655 radicale2 = lib.recursiveUpdate (common args) {
5756 system.stateVersion = "17.09";
5857 };
58+ radicale3 = lib.recursiveUpdate (common args) {
59+ system.stateVersion = "20.09";
60+ };
5961 };
6062
6163 # This tests whether the web interface is accessible to an authenticated user
@@ -117,6 +119,22 @@ in
117119 retcode == 0 and "VCALENDAR" in output
118120 ), "Could not read calendar from Radicale 2"
119121
120− radicale.succeed("curl --fail http://${user}:${password}@localhost:${port}/.web/")
122+ radicale.succeed("curl --fail http://${user}:${password}@localhost:${port}/.web/")
123+
124+ with subtest("Check Radicale 3 functionality"):
125+ radicale.succeed(
126+ "${switchToConfig "radicale3"} >&2"
127+ )
128+ radicale.wait_for_unit("radicale.service")
129+ radicale.wait_for_open_port(${port})
130+
131+ (retcode, output) = radicale.execute(
132+ "curl --fail http://${user}:${password}@localhost:${port}/someuser/calendar.ics/"
133+ )
134+ assert (
135+ retcode == 0 and "VCALENDAR" in output
136+ ), "Could not read calendar from Radicale 3"
137+
138+ radicale.succeed("curl --fail http://${user}:${password}@localhost:${port}/.web/")
121139 '';
122140})