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:1525:    WebDAVResponse res = ASSERT_CALL(webdav_copy, src_dir, dst_dir,    STATUS_MULTI_STATUS);    verify_multistatus_response_when_resource_locked(res, ({ dst_file2 }));    } else {    WebDAVResponse res = ASSERT_CALL(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 copy or move was performed. +  // 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,    dst_file2 }));    ASSERT_CALL_TRUE(filesystem_check_content, dst_file2, "file2 in dir2");   }      private void do_test_copy_col_fails_partly_2(string method)   {    ASSERT_TRUE(method == "COPY" || method == "MOVE");    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");
Roxen.git/server/etc/test/modules/TEST.pmod/http.pmod/WebDAV.pmod/TestBase.pike:1570:    // 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,    dst_dir,    dst_file1 })); +  ASSERT_CALL_TRUE(filesystem_check_content, dst_file1, "file1 in dir1");    } else { // method == "MOVE"    webdav_ls(this::testcase_dir,    ({ this::testcase_dir,    src_dir, -  src_file2, -  dst_dir, -  dst_file1 })); +  src_file1, +  src_file2 }));    }    ASSERT_CALL_FALSE(filesystem_check_exists, dst_file2); -  ASSERT_CALL_TRUE(filesystem_check_content, dst_file1, "file1 in dir1"); +    }      public void test_copy_col_fails_partly_1()   {    do_test_copy_col_fails_partly_1("COPY");   }      public void test_copy_col_fails_partly_2()   {    do_test_copy_col_fails_partly_2("COPY");