File tree 2 files changed +10
-5
lines changed
src/test/java/org/springframework/data/elasticsearch/blockhound
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 23
23
<log4j >2.17.0</log4j >
24
24
<netty >4.1.65.Final</netty >
25
25
<springdata .commons>2.7.0-SNAPSHOT</springdata .commons>
26
- <testcontainers >1.15.3 </testcontainers >
26
+ <testcontainers >1.16.2 </testcontainers >
27
27
<blockhound-junit >1.0.6.RELEASE</blockhound-junit >
28
28
<java-module-name >spring.data.elasticsearch</java-module-name >
29
29
163
163
<dependency >
164
164
<groupId >org.apache.geronimo.specs</groupId >
165
165
<artifactId >geronimo-jcdi_2.0_spec</artifactId >
166
- <version >1.0.1 </version >
166
+ <version >1.3 </version >
167
167
<scope >test</scope >
168
168
</dependency >
169
169
229
229
<dependency >
230
230
<groupId >org.projectlombok</groupId >
231
231
<artifactId >lombok</artifactId >
232
+ <!-- suppress MavenPackageUpdate -->
232
233
<version >999999</version >
233
234
<scope >test</scope >
234
235
</dependency >
243
244
<dependency >
244
245
<groupId >com.github.tomakehurst</groupId >
245
246
<artifactId >wiremock-jre8</artifactId >
246
- <version >2.26.3 </version >
247
+ <version >2.32.0 </version >
247
248
<scope >test</scope >
248
249
<exclusions >
249
250
<!-- these exclusions are needed because of Elasticsearch JarHell-->
261
262
<dependency >
262
263
<groupId >io.specto</groupId >
263
264
<artifactId >hoverfly-java-junit5</artifactId >
264
- <version >0.13 .1</version >
265
+ <version >0.14 .1</version >
265
266
<scope >test</scope >
266
267
</dependency >
267
268
Original file line number Diff line number Diff line change @@ -27,10 +27,14 @@ public class BlockHoundIntegrationCustomizer implements BlockHoundIntegration {
27
27
@ Override
28
28
public void applyTo (BlockHound .Builder builder ) {
29
29
// Elasticsearch classes reading from the classpath on initialization, needed for parsing Elasticsearch responses
30
- builder .allowBlockingCallsInside ("org.elasticsearch.common.xcontent.XContentBuilder" , "<clinit>" )
30
+ builder //
31
+ .allowBlockingCallsInside ("org.elasticsearch.common.xcontent.XContentBuilder" , "<clinit>" ) // pre 7.16
32
+ .allowBlockingCallsInside ("org.elasticsearch.common.XContentBuilder" , "<clinit>" ) // from 7.16 on
33
+ .allowBlockingCallsInside ("org.elasticsearch.xcontent.json.JsonXContent" , "contentBuilder" ) // from 7.16 on
31
34
.allowBlockingCallsInside ("org.elasticsearch.Build" , "<clinit>" );
32
35
33
36
builder .blockingMethodCallback (it -> {
37
+ new Error (it .toString ()).printStackTrace ();
34
38
throw new BlockingOperationError (it );
35
39
});
36
40
You can’t perform that action at this time.
0 commit comments