2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* The OpenSearch Contributors require contributions made to
|
|
|
|
* this file be licensed under the Apache-2.0 license or a
|
|
|
|
* compatible open source license.
|
|
|
|
*
|
|
|
|
* Modifications Copyright OpenSearch Contributors. See
|
|
|
|
* GitHub history for details.
|
|
|
|
*/
|
|
|
|
|
2019-11-18 05:56:59 -05:00
|
|
|
/*
|
|
|
|
* Licensed to Elasticsearch under one or more contributor
|
|
|
|
* license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright
|
|
|
|
* ownership. Elasticsearch licenses this file to you 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.
|
|
|
|
*/
|
2021-03-18 12:55:22 -04:00
|
|
|
apply plugin: 'opensearch.java'
|
|
|
|
apply plugin: 'opensearch.test.fixtures'
|
2019-11-18 05:56:59 -05:00
|
|
|
|
|
|
|
description = 'Fixture for S3 Storage service'
|
|
|
|
test.enabled = false
|
2021-05-18 16:21:41 -04:00
|
|
|
group = 'fixture.s3'
|
2019-11-18 05:56:59 -05:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(':server')
|
2019-11-18 05:56:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
preProcessFixture {
|
2020-07-13 18:57:24 -04:00
|
|
|
dependsOn jar, configurations.runtimeClasspath
|
2021-12-29 11:26:14 -05:00
|
|
|
// always run the task, otherwise the folders won't be created
|
|
|
|
outputs.upToDateWhen {
|
|
|
|
false
|
|
|
|
}
|
2019-11-18 05:56:59 -05:00
|
|
|
doLast {
|
|
|
|
file("${testFixturesDir}/shared").mkdirs()
|
|
|
|
project.copy {
|
|
|
|
from jar
|
|
|
|
from configurations.runtimeClasspath
|
|
|
|
into "${testFixturesDir}/shared"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|