From 67e7c3f60ee357a21b519b215671473b87f1fedf Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 15 Jul 2020 17:43:33 +0100 Subject: [PATCH] Fix failing test introduced in #59601 --- .../cluster/snapshots/restore/RestoreSnapshotRequestTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/test/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotRequestTests.java b/server/src/test/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotRequestTests.java index 1be84193499..f78607061df 100644 --- a/server/src/test/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotRequestTests.java +++ b/server/src/test/java/org/elasticsearch/action/admin/cluster/snapshots/restore/RestoreSnapshotRequestTests.java @@ -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());