mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 19:05:06 +00:00
Fix S3 3rd Party Tests (#50983)
Only load fixtures plugin in snapshot-tool tests if we're actually going to use a fixture because otherwise configuration fails. Closes #50971
This commit is contained in:
parent
6e8ea7aaa2
commit
1fe2d76a91
@ -4,7 +4,6 @@
|
|||||||
* you may not use this file except in compliance with the Elastic License.
|
* you may not use this file except in compliance with the Elastic License.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'elasticsearch.build'
|
apply plugin: 'elasticsearch.build'
|
||||||
apply plugin: 'elasticsearch.test.fixtures'
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":plugins:repository-s3")
|
compile project(":plugins:repository-s3")
|
||||||
@ -49,6 +48,7 @@ task thirdPartyTest(type: Test) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (useS3Fixture) {
|
if (useS3Fixture) {
|
||||||
|
apply plugin: 'elasticsearch.test.fixtures'
|
||||||
testingConventions.enabled = false;
|
testingConventions.enabled = false;
|
||||||
testFixtures.useFixture(':test:fixtures:minio-fixture', "minio-fixture-for-snapshot-tool")
|
testFixtures.useFixture(':test:fixtures:minio-fixture', "minio-fixture-for-snapshot-tool")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user