2021-03-08 13:06:46 -05:00
|
|
|
import org.opensearch.gradle.test.RestIntegTestTask
|
2017-04-04 03:02:58 -04:00
|
|
|
|
2015-10-29 14:40:19 -04: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-08 13:06:46 -05:00
|
|
|
apply plugin: 'opensearch.standalone-rest-test'
|
|
|
|
apply plugin: 'opensearch.rest-test'
|
2015-10-29 14:40:19 -04:00
|
|
|
|
|
|
|
// TODO: this test works, but it isn't really a rest test...should we have another plugin for "non rest test that just needs N clusters?"
|
2016-07-12 05:08:59 -04:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
testImplementation project(':client:transport') // randomly swapped in as a transport
|
2017-01-03 15:39:36 -05:00
|
|
|
}
|
2017-04-04 03:02:58 -04:00
|
|
|
|
|
|
|
task singleNodeIntegTest(type: RestIntegTestTask) {
|
2019-11-14 06:01:23 -05:00
|
|
|
mustRunAfter(precommit)
|
2017-04-04 03:02:58 -04:00
|
|
|
}
|
|
|
|
|
2019-10-07 04:43:57 -04:00
|
|
|
testClusters.singleNodeIntegTest {
|
2019-11-14 06:01:23 -05:00
|
|
|
setting 'discovery.type', 'single-node'
|
2017-04-04 03:02:58 -04:00
|
|
|
}
|
|
|
|
|
2019-10-07 04:43:57 -04:00
|
|
|
integTest {
|
2019-11-14 06:01:23 -05:00
|
|
|
dependsOn singleNodeIntegTest
|
2019-10-07 04:43:57 -04:00
|
|
|
}
|
2017-04-04 03:02:58 -04:00
|
|
|
|
|
|
|
check.dependsOn(integTest)
|
2019-01-08 06:39:03 -05:00
|
|
|
|
|
|
|
|
|
|
|
testingConventions {
|
2019-11-14 06:01:23 -05:00
|
|
|
naming.clear()
|
|
|
|
naming {
|
|
|
|
IT {
|
2021-03-08 13:06:46 -05:00
|
|
|
baseClass 'org.opensearch.smoketest.ESSmokeClientTestCase'
|
2019-01-08 06:39:03 -05:00
|
|
|
}
|
2019-11-14 06:01:23 -05:00
|
|
|
}
|
2019-10-07 04:43:57 -04:00
|
|
|
}
|