842 |
842 |
843 testutil_destroy_session(sn); |
843 testutil_destroy_session(sn); |
844 test_multistatus_destroy(ms); |
844 test_multistatus_destroy(ms); |
845 testutil_iostream_destroy(st); |
845 testutil_iostream_destroy(st); |
846 |
846 |
847 |
847 // Test 2: xml property value |
848 UCX_TEST_END; |
848 init_test_webdav_method(&sn, &rq, &st, &pb, "PROPPATCH", "/proppatch/pp1", PG_TEST_PROPPATCH2); |
849 } |
849 rq->davCollection = create_test_pgdav(sn, rq); |
|
850 |
|
851 ret = webdav_proppatch(pb, sn, rq); |
|
852 UCX_TEST_ASSERT(ret == REQ_PROCEED, "proppatch2 failed"); |
|
853 |
|
854 //printf("\n\n%.*s\n", (int)st->buf->size, st->buf->space); |
|
855 |
|
856 ms = test_parse_multistatus(st->buf->space, st->buf->size); |
|
857 UCX_TEST_ASSERT(ms, "proppatch2 response is not valid xml"); |
|
858 |
|
859 testutil_destroy_session(sn); |
|
860 test_multistatus_destroy(ms); |
|
861 testutil_iostream_destroy(st); |
|
862 |
|
863 |
|
864 UCX_TEST_END; |
|
865 } |