Roxen.git / server / etc / test / modules / TEST.pmod / http.pmod / WebDAV.pmod / TestBase.pike

version» Context lines:

Roxen.git/server/etc/test/modules/TEST.pmod/http.pmod/WebDAV.pmod/TestBase.pike:1534:    string src_file2 = Stdio.append_path(src_dir, "file2.txt");    string dst_file1 = Stdio.append_path(dst_dir, "file1.txt");    string dst_file2 = Stdio.append_path(dst_dir, "file2.txt");    webdav_mkcol(src_dir, STATUS_CREATED);    webdav_mkcol(dst_dir, STATUS_CREATED);    webdav_put(src_file1, "file1 in dir1", STATUS_CREATED);    webdav_put(src_file2, "file2 in dir1", STATUS_CREATED);    webdav_put(dst_file1, "file1 in dir2", STATUS_CREATED);    webdav_put(dst_file2, "file2 in dir2", STATUS_CREATED);    webdav_lock(dst_file2, ([]), STATUS_OK); +  WebDAVResponse res;    if (method == "COPY") { -  WebDAVResponse res = webdav_copy(src_dir, dst_dir, -  STATUS_MULTI_STATUS); -  verify_multistatus_response_when_resource_locked(res, ({ dst_file2 })); +  res = webdav_copy(src_dir, dst_dir, STATUS_MULTI_STATUS);    } else { -  WebDAVResponse res = webdav_move(src_dir, dst_dir, -  ([]), STATUS_MULTI_STATUS); -  verify_multistatus_response_when_resource_locked(res, ({ dst_file2 })); +  res = webdav_move(src_dir, dst_dir, ([]), STATUS_MULTI_STATUS);    } -  +  verify_multistatus_response_when_resource_locked(res, ({ dst_file2 }));    // The destination directory has been wiped, except for dst_file2,    // which was locked.    // No actual delete, copy or move was performed.    webdav_ls(this::testcase_dir,    ({ this::testcase_dir,    src_dir,    src_file1,    src_file2,    dst_dir,    dst_file1,
Roxen.git/server/etc/test/modules/TEST.pmod/http.pmod/WebDAV.pmod/TestBase.pike:1570:    string src_dir = Stdio.append_path(this::testcase_dir, "A");    string dst_dir = Stdio.append_path(this::testcase_dir, "B");    string src_file1 = Stdio.append_path(src_dir, "file1.txt");    string src_file2 = Stdio.append_path(src_dir, "file2.txt");    string dst_file1 = Stdio.append_path(dst_dir, "file1.txt");    string dst_file2 = Stdio.append_path(dst_dir, "file2.txt");    webdav_mkcol(src_dir, STATUS_CREATED);    webdav_put(src_file1, "file1 in dir1", STATUS_CREATED);    webdav_put(src_file2, "file2 in dir1", STATUS_CREATED);    webdav_lock(dst_file2, ([]), STATUS_OK); +  WebDAVResponse res;    if (method == "COPY") { -  WebDAVResponse res = webdav_copy(src_dir, dst_dir, -  STATUS_MULTI_STATUS); -  verify_multistatus_response_when_resource_locked(res, ({ dst_file2 })); +  res = webdav_copy(src_dir, dst_dir, STATUS_MULTI_STATUS);    } else { -  WebDAVResponse res = webdav_move(src_dir, dst_dir, -  ([]), STATUS_MULTI_STATUS); -  verify_multistatus_response_when_resource_locked(res, ({ dst_file2 })); +  res = webdav_move(src_dir, dst_dir, ([]), STATUS_MULTI_STATUS);    } -  +  verify_multistatus_response_when_resource_locked(res, ({ dst_file2 }));    // dst_file1 should have been overwritten by src_file1.    // the path dst_file2 was locked so it should not have been copied.    // src_file2 with same as dst_file2 should not have been moved if this was a    // move.    if (method == "COPY") {    webdav_ls(this::testcase_dir,    ({ this::testcase_dir,    src_dir,    src_file1,    src_file2,