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:2445:    // Verify that we cannot create collection or file without the lock.    // Try do delete without lock.    webdav_mkcol(resources[case_], STATUS_LOCKED);    webdav_put(resources[case_], "My content", STATUS_LOCKED);    webdav_ls(resources[case_], ({ }), STATUS_NOT_FOUND);    webdav_delete(resources[case_], ([]), STATUS_NOT_FOUND);       // 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_], ({ ls_name })); +  webdav_ls(this::testcase_dir, ({ this::testcase_dir, ls_name }));       // 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);       string lock_token = locks[resource];    mapping(string:string) lock_header =    make_lock_header(([ resources[case_] : lock_token ]));    // Put using lock.    webdav_put(resources[case_], "New content", STATUS_OK, lock_header);