@@ -4,7 +4,6 @@ import static org.elasticsearch.gradle.PropertyNormalization.IGNORE_VALUE
44
55apply plugin : ' elasticsearch.standalone-rest-test'
66apply plugin : ' elasticsearch.rest-test'
7- apply plugin : ' elasticsearch.test.fixtures'
87
98final Project fixture = project(' :test:fixtures:s3-fixture' )
109final Project repositoryPlugin = project(' :plugins:repository-s3' )
@@ -33,27 +32,15 @@ if (!s3AccessKey && !s3SecretKey && !s3Bucket && !s3BasePath) {
3332}
3433
3534if (useFixture) {
36- preProcessFixture {
37- dependsOn fixture. jar
38- doLast {
39- file(" ${ testFixturesDir} /shared" ). mkdirs()
40- project. copy {
41- from fixture. jar
42- from fixture. configurations. runtimeClasspath
43- from fixture. projectDir. toPath(). resolve(" Dockerfile" )
44- into " ${ testFixturesDir} /shared"
45- }
46- }
47- }
48-
49- testFixtures. useFixture()
35+ apply plugin : ' elasticsearch.test.fixtures'
36+ testFixtures. useFixture(fixture. path, ' s3-fixture-other' )
5037}
5138
5239integTest {
5340 dependsOn repositoryPlugin. bundlePlugin
5441 runner {
5542 systemProperty ' test.s3.bucket' , s3Bucket
56- systemProperty ' test.s3.base_path' , s3BasePath + " _searchable_snapshots_tests "
43+ systemProperty ' test.s3.base_path' , s3BasePath + " /searchable_snapshots_tests "
5744 }
5845}
5946
@@ -67,13 +54,13 @@ testClusters.integTest {
6754 if (useFixture) {
6855 def fixtureAddress = { fixtureName ->
6956 assert useFixture: ' closure should not be used without a fixture'
70- int ephemeralPort = postProcessFixture. ext. " test.fixtures.${ fixtureName} .tcp.80"
57+ int ephemeralPort = fixture . postProcessFixture. ext. " test.fixtures.${ fixtureName} .tcp.80"
7158 assert ephemeralPort > 0
7259 ' 127.0.0.1:' + ephemeralPort
7360 }
7461
7562 setting ' s3.client.searchable_snapshots.protocol' , ' http'
76- setting ' s3.client.searchable_snapshots.endpoint' , { "${-> fixtureAddress(' s3-fixture-for-searchable-snapshots ' )}" }, IGNORE_VALUE
63+ setting ' s3.client.searchable_snapshots.endpoint' , { "${-> fixtureAddress(' s3-fixture-other ' )}" }, IGNORE_VALUE
7764
7865 } else {
7966 println " Using an external service to test " + project.name
0 commit comments