Branch: Tag:

2018-04-09

2018-04-09 08:44:48 by Karl Gustav Sterneberg <kg@roxen.com>

Testsuite [WebDAV]: Fixed some bugs in a testcase.

2428:    unicode_method,    true);    string resource = resources->mc; -  string exp_name = make_filenames(this::testcase_dir, +  string ls_name = make_filenames(this::testcase_dir,    filename,    "NFC",    false)->mc;
2452:    // Now lets create a the resources (a file) that we have locked.    webdav_put(resource, "My content", STATUS_CREATED,    make_lock_header(locks)); -  webdav_ls(resources[case_], ({ exp_name })); +  webdav_ls(resources[case_], ({ ls_name }));    -  // Try tp write to the locked file. Try to delete the locked file. +  // Try to write to the locked file. Try to delete the locked file.    webdav_put(resources[case_], "New content", STATUS_LOCKED);    webdav_delete(resources[case_], ([]), STATUS_LOCKED);   
2463:    make_lock_header(([ resources[case_] : lock_token ]));    // Put using lock.    webdav_put(resources[case_], "New content", STATUS_OK, lock_header); +  // The put above should not have changed the filename +  webdav_ls(this::testcase_dir, ({ this::testcase_dir, ls_name })); +     // Delete without the lock. -  webdav_delete(resource, ([]), STATUS_LOCKED); +  webdav_delete(resources[case_], ([]), STATUS_LOCKED);    // Delete using lock. -  webdav_delete(resource, ([]), STATUS_NO_CONTENT, lock_header); +  webdav_delete(resources[case_], ([]), STATUS_NO_CONTENT, lock_header);       // Assert testcase dir is empty before next run.    webdav_ls(this::testcase_dir, ({ this::testcase_dir }));