Fix failing test introduced in #59601
This commit is contained in:
parent
b8d73a1e7e
commit
67e7c3f60e
|
@ -117,6 +117,7 @@ public class RestoreSnapshotRequestTests extends AbstractWireSerializingTestCase
|
|||
|
||||
public void testSource() throws IOException {
|
||||
RestoreSnapshotRequest original = createTestInstance();
|
||||
original.snapshotUuid(null); // cannot be set via the REST API
|
||||
XContentBuilder builder = original.toXContent(XContentFactory.jsonBuilder(), new ToXContent.MapParams(Collections.emptyMap()));
|
||||
XContentParser parser = XContentType.JSON.xContent().createParser(
|
||||
NamedXContentRegistry.EMPTY, null, BytesReference.bytes(builder).streamInput());
|
||||
|
|
Loading…
Reference in New Issue