|
| 1 | +/* |
| 2 | + * Copyright 2022 the original author or authors. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | +package org.springframework.data.elasticsearch.core; |
| 17 | + |
| 18 | +import org.junit.jupiter.api.Disabled; |
| 19 | +import org.springframework.context.annotation.Bean; |
| 20 | +import org.springframework.context.annotation.Configuration; |
| 21 | +import org.springframework.context.annotation.Import; |
| 22 | +import org.springframework.data.elasticsearch.junit.jupiter.ReactiveElasticsearchRestTemplateConfiguration; |
| 23 | +import org.springframework.data.elasticsearch.utils.IndexNameProvider; |
| 24 | +import org.springframework.test.context.ContextConfiguration; |
| 25 | + |
| 26 | +/** |
| 27 | + * This test class is disabled on purpose. PIT will be introduced in Spring Data Elasticsearch 5.0 where the old |
| 28 | + * RestHighLevelClient and the {@link org.springframework.data.elasticsearch.client.erhlc.ElasticsearchRestTemplate} are |
| 29 | + * deprecated. We therefore do not add new features to this implementation anymore. Furthermore we cannot copy the |
| 30 | + * necessary code for the reactive implementation like we did before, as point in time was introduced in Elasticsearch |
| 31 | + * 7.12 after the license change. |
| 32 | + * |
| 33 | + * @author Peter-Josef Meisch |
| 34 | + */ |
| 35 | +@Disabled |
| 36 | +@ContextConfiguration(classes = ReactivePointInTimeERHLCIntegrationTests.Config.class) |
| 37 | +public class ReactivePointInTimeERHLCIntegrationTests extends ReactivePointInTimeIntegrationTests { |
| 38 | + |
| 39 | + @Configuration |
| 40 | + @Import({ ReactiveElasticsearchRestTemplateConfiguration.class }) |
| 41 | + static class Config { |
| 42 | + @Bean |
| 43 | + IndexNameProvider indexNameProvider() { |
| 44 | + return new IndexNameProvider("reactive-point-in-time-es7"); |
| 45 | + } |
| 46 | + } |
| 47 | +} |
0 commit comments