-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
When a dict add is performed on an array path the server returns with SUBDOC_PATH_INVALID while the mock responds with SUBDOC_PATH_EXISTS.
@Test
public void shouldReturnPathInvalidOnDictAddForArrayPath() {
String subPath = "sub.array[1]";
ByteBuf fragment = Unpooled.copiedBuffer("\"insertedPath\"", CharsetUtil.UTF_8);
ReferenceCountUtil.releaseLater(fragment);
//mutate
SubDictAddRequest insertRequest = new SubDictAddRequest(testSubKey, subPath, fragment, bucket());
assertFalse(insertRequest.createIntermediaryPath());
SimpleSubdocResponse insertResponse = cluster().<SimpleSubdocResponse>send(insertRequest).toBlocking().single();
ReferenceCountUtil.releaseLater(insertResponse.content());
assertFalse(insertResponse.status().isSuccess());
assertEquals(0, insertResponse.content().readableBytes());
assertEquals(ResponseStatus.SUBDOC_PATH_INVALID, insertResponse.status());
}Metadata
Metadata
Assignees
Labels
No labels