Skip to content

Commit fca2161

Browse files
committed
Add x-goog-generation header to test
1 parent 89b926a commit fca2161

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageRetryingInputStreamTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public LowLevelHttpResponse execute() throws IOException {
170170
result.setContent(content);
171171
result.setContentLength(contentLength);
172172
result.setContentType("application/octet-stream");
173+
result.addHeader("x-goog-generation", String.valueOf(randomIntBetween(0, Integer.MAX_VALUE)));
173174
result.setStatusCode(RestStatus.OK.getStatus());
174175
return result;
175176
}

0 commit comments

Comments
 (0)