Skip to content

Commit 6098583

Browse files
committed
Handle deprecation header-AbstractUpgradeTestCase
1 parent 82d23a6 commit 6098583

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/AbstractUpgradeTestCase.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ public void setupForTests() throws Exception {
8686
boolean success = true;
8787
for (String template : templatesToWaitFor()) {
8888
try {
89+
final Request headRequest = new Request("HEAD", "_template/" + template);
90+
headRequest.setOptions(allowTypeRemovalWarnings());
8991
final boolean exists = adminClient()
90-
.performRequest(new Request("HEAD", "_template/" + template))
92+
.performRequest(headRequest)
9193
.getStatusLine().getStatusCode() == 200;
9294
success &= exists;
9395
logger.debug("template [{}] exists [{}]", template, exists);

0 commit comments

Comments
 (0)