Branch: Tag:

2018-04-03

2018-04-03 13:12:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [WebDAV]: Fixed several delete of locks tests.

933:    webdav_lock(path, locks, STATUS_OK);    webdav_put(path, "New content", STATUS_LOCKED);    -  current_locks = locks; +  current_locks = locks + ([]);    webdav_delete(path, locks, STATUS_NO_CONTENT); -  +  +  webdav_put(path, "New content", STATUS_PRECONDITION_FAILED);    current_locks = ([ ]);       webdav_put(path, "New content", STATUS_CREATED);
953:    current_locks = locks + ([]);    webdav_delete(dir, locks, STATUS_NO_CONTENT);    +  webdav_mkcol(dir, STATUS_PRECONDITION_FAILED); +  +  current_locks = locks + ([]);    webdav_mkcol(dir, STATUS_CREATED);    webdav_mkcol(subdir, STATUS_CREATED);   }
971:       current_locks = locks + ([]);    webdav_delete(dir, locks, STATUS_NO_CONTENT); -  webdav_ls(this::testcase_dir, ({ this::testcase_dir })); +     -  +  // NB: The PROPFIND and MKCOL don't submit the old lock token, +  // as it is on a sub-path, and such locks should +  // typically not exist for MKCOL... +  webdav_ls(this::testcase_dir, ({ this::testcase_dir }));    webdav_mkcol(dir, STATUS_CREATED); -  +  +  webdav_put(file, "New content", STATUS_PRECONDITION_FAILED); +  current_locks = locks + ([]);    webdav_put(file, "New content", STATUS_CREATED);   }