File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
test/fixtures/azure-fixture/src/main/java/fixture/azure Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,14 @@ public void handle(final HttpExchange exchange) throws IOException {
355355 throw new IllegalStateException ("Got multiple deletes in a single request?" );
356356 }
357357 toDelete = blobName ;
358+ } else if (Regex .simpleMatch ("DELETE /" + account + "/" + container + "/*" , line )) {
359+ // possible alternative DELETE url, depending on which method is used in the batch client
360+ String path = RestUtils .decodeComponent (line .split ("(\\ s|\\ ?)" )[1 ]);
361+ String blobName = path .split (account )[1 ];
362+ if (toDelete != null ) {
363+ throw new IllegalStateException ("Got multiple deletes in a single request?" );
364+ }
365+ toDelete = blobName ;
358366 }
359367 }
360368 response .append ("--" ).append (responseBoundary ).append ("--\r \n 0\r \n " );
You can’t perform that action at this time.
0 commit comments