diff --git a/src/test/java/io/jenkins/plugins/opentelemetry/backend/elastic/ElasticsearchRetrieverIT.java b/src/test/java/io/jenkins/plugins/opentelemetry/backend/elastic/ElasticsearchRetrieverIT.java index 34d1c7d7e..e78f758c8 100644 --- a/src/test/java/io/jenkins/plugins/opentelemetry/backend/elastic/ElasticsearchRetrieverIT.java +++ b/src/test/java/io/jenkins/plugins/opentelemetry/backend/elastic/ElasticsearchRetrieverIT.java @@ -118,8 +118,8 @@ public void testGetIndexTemplate() throws IOException { .build(); RestClientTransport elasticsearchTransport = new RestClientTransport(restClient, new JacksonJsonpMapper()); ElasticsearchClient elasticsearchClient = new ElasticsearchClient(elasticsearchTransport); - ElasticsearchIndicesClient indices = elasticsearchClient.indices(); - GetIndexTemplateResponse indexTemplatesResponse = indices.getIndexTemplate(b -> b.name("logs-apm.app")); + ElasticsearchIndicesClient elasticsearchIndicesClient = elasticsearchClient.indices(); + GetIndexTemplateResponse indexTemplatesResponse = elasticsearchIndicesClient.getIndexTemplate(b -> b.name("logs-apm.app")); // TODO the rest }