src/server/plugins/postgresql/pgtest.h

branch
webdav
changeset 318
60870dbac94f
parent 316
4090fc1b1c52
child 324
44cf877b3d9f
--- a/src/server/plugins/postgresql/pgtest.h	Tue Apr 26 18:21:25 2022 +0200
+++ b/src/server/plugins/postgresql/pgtest.h	Sat Apr 30 20:44:38 2022 +0200
@@ -59,6 +59,7 @@
 UCX_TEST(test_pg_prepare_tests);
 UCX_TEST(test_pg_webdav_propfind);
 UCX_TEST(test_pg_webdav_propfind_allprop);
+UCX_TEST(test_pg_webdav_proppatch_set);
 
 
 /* --------------------------- PROPFIND --------------------------- */
@@ -96,6 +97,12 @@
             <D:allprop/> \
         </D:propfind>"
 
+#define PG_TEST_PROPPATCH1 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
+        <D:propertyupdate xmlns:D=\"DAV:\" xmlns:X=\"http://example.com/\"> \
+            <D:set> \
+                <D:prop><X:test>test</X:test><X:author>name</X:author></D:prop> \
+            </D:set> \
+        </D:propertyupdate>"
 
 #ifdef __cplusplus
 }

mercurial