src/server/plugins/postgresql/pgtest.h

Sun, 24 Apr 2022 18:35:44 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 24 Apr 2022 18:35:44 +0200
branch
webdav
changeset 306
e03737cea6e2
parent 296
78e92337fa4e
child 311
e676ed461b5b
permissions
-rw-r--r--

add semi functional pg propfind handler

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   pgtest.h
 * Author: olaf
 *
 * Created on 16. April 2022, 14:37
 */

#ifndef PGTEST_H
#define PGTEST_H

#include <ucx/test.h>

#ifdef __cplusplus
extern "C" {
#endif

UCX_TEST(test_pg_conn);

UCX_TEST(test_pg_vfs_open);
UCX_TEST(test_pg_vfs_io);
UCX_TEST(test_pg_vfs_stat);
UCX_TEST(test_pg_vfs_mkdir);
UCX_TEST(test_pg_vfs_unlink);
UCX_TEST(test_pg_vfs_rmdir);

UCX_TEST(test_pg_webdav_create_from_resdata);
UCX_TEST(test_pg_prepare_tests);
UCX_TEST(test_pg_webdav_propfind);


/* --------------------------- PROPFIND --------------------------- */

#define PG_TEST_PROPFIND1 "<?xml version=\"1.0\" encoding=\"utf-8\" ?> \
        <D:propfind xmlns:D=\"DAV:\"> \
            <D:prop> \
                <D:displayname/> \
                <D:getcontentlength/> \
                <D:getcontenttype/> \
                <D:getlastmodified/> \
                <D:resourcetype/> \
                <D:getetag/> \
            </D:prop> \
        </D:propfind>"


#ifdef __cplusplus
}
#endif

#endif /* PGTEST_H */

mercurial