cmd: "move testfile newdir0/\n",
match: `(?ms).*Moving .* failed.*`,
},
+ {
+ path: writePath,
+ cmd: "lock newdir0/testfile\n",
+ match: `(?ms).*Locking .* succeeded.*`,
+ },
+ {
+ path: writePath,
+ cmd: "unlock newdir0/testfile\nasdf\n",
+ match: `(?ms).*Unlocking .* succeeded.*`,
+ },
{
path: writePath,
cmd: "ls\n",
cmd: "delete foo\n",
match: `(?ms).*Deleting .* failed:.*405 Method Not Allowed.*`,
},
+ {
+ path: pdhPath,
+ cmd: "lock foo\n",
+ match: `(?ms).*Locking .* failed:.*405 Method Not Allowed.*`,
+ },
} {
c.Logf("%s %+v", "http://"+s.testServer.Addr, trial)
if skip != nil && skip(trial.path) {
writeMethod = map[string]bool{
"COPY": true,
"DELETE": true,
+ "LOCK": true,
"MKCOL": true,
"MOVE": true,
"PUT": true,
"RMCOL": true,
+ "UNLOCK": true,
}
webdavMethod = map[string]bool{
"COPY": true,
"DELETE": true,
+ "LOCK": true,
"MKCOL": true,
"MOVE": true,
"OPTIONS": true,
"PROPFIND": true,
"PUT": true,
"RMCOL": true,
+ "UNLOCK": true,
}
browserMethod = map[string]bool{
"GET": true,