-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for elasticsearch 8 (#3552)
Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: fazil <fazil.c@target.com> Co-authored-by: Adrian Cole <adrian@tetrate.io>
- Loading branch information
1 parent
77869db
commit 781314a
Showing
5 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...asticsearch/src/test/java/zipkin2/elasticsearch/integration/ITElasticsearchStorageV8.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2015-2023 The OpenZipkin Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package zipkin2.elasticsearch.integration; | ||
|
||
import org.junit.jupiter.api.Nested; | ||
import org.junit.jupiter.api.TestInfo; | ||
import org.junit.jupiter.api.TestInstance; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
import zipkin2.elasticsearch.ElasticsearchStorage; | ||
|
||
import static zipkin2.elasticsearch.integration.ElasticsearchExtension.index; | ||
|
||
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | ||
class ITElasticsearchStorageV8 extends ITElasticsearchStorage { | ||
|
||
@RegisterExtension ElasticsearchExtension elasticsearch = new ElasticsearchExtension(8); | ||
|
||
@Override ElasticsearchExtension elasticsearch() { | ||
return elasticsearch; | ||
} | ||
|
||
@Nested | ||
class ITEnsureIndexTemplate extends zipkin2.elasticsearch.integration.ITEnsureIndexTemplate { | ||
@Override protected ElasticsearchStorage.Builder newStorageBuilder(TestInfo testInfo) { | ||
return elasticsearch().computeStorageBuilder().index(index(testInfo)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters