Skip to content

Commit c645ba5

Browse files
committed
Apply feedback
1 parent 8b362c7 commit c645ba5

File tree

9 files changed

+21
-6
lines changed

9 files changed

+21
-6
lines changed

plugins/repository-s3/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ test {
6464
exclude '**/*CredentialsTests.class'
6565
}
6666

67+
check {
68+
// also execute the QA tests when testing the plugin
69+
dependsOn 'qa:amazon-s3:check'
70+
}
71+
6772
integTestCluster {
6873
keystoreSetting 's3.client.integration_test.access_key', "s3_integration_test_access_key"
6974
keystoreSetting 's3.client.integration_test.secret_key', "s3_integration_test_secret_key"

qa/third-party/amazon-s3/build.gradle renamed to plugins/repository-s3/qa/amazon-s3/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,7 @@ integTestCluster {
7777
dependsOn s3Fixture
7878
/* Use a closure on the string to delay evaluation until tests are executed */
7979
setting 's3.client.integration_test.endpoint', "http://${-> s3Fixture.addressAndPort}"
80+
} else {
81+
println "Using an external service to test the repository-s3 plugin"
8082
}
8183
}
File renamed without changes.

x-pack/qa/smoke-test-plugins-ssl/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import org.elasticsearch.gradle.LoggedExec
22
import org.elasticsearch.gradle.MavenFilteringHack
3+
import org.elasticsearch.gradle.plugin.MetaPluginBuildPlugin
4+
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
35
import org.elasticsearch.gradle.test.NodeInfo
46

57
import javax.net.ssl.HttpsURLConnection
@@ -161,9 +163,11 @@ integTestCluster.dependsOn(importClientCertificateInNodeKeyStore, importNodeCert
161163

162164
ext.pluginsCount = 0
163165
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
164-
// need to get a non-decorated project object, so must re-lookup the project by path
165-
integTestCluster.plugin(subproj.path)
166-
pluginsCount += 1
166+
if (subproj.plugins.hasPlugin(PluginBuildPlugin) || subproj.plugins.hasPlugin(MetaPluginBuildPlugin)) {
167+
// need to get a non-decorated project object, so must re-lookup the project by path
168+
integTestCluster.plugin(subproj.path)
169+
pluginsCount += 1
170+
}
167171
}
168172

169173
integTestCluster {

x-pack/qa/smoke-test-plugins/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import org.elasticsearch.gradle.MavenFilteringHack
2+
import org.elasticsearch.gradle.plugin.MetaPluginBuildPlugin
3+
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
24

35
apply plugin: 'elasticsearch.standalone-rest-test'
46
apply plugin: 'elasticsearch.rest-test'
@@ -9,9 +11,11 @@ dependencies {
911

1012
ext.pluginsCount = 0
1113
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
12-
// need to get a non-decorated project object, so must re-lookup the project by path
13-
integTestCluster.plugin(subproj.path)
14-
pluginsCount += 1
14+
if (subproj.plugins.hasPlugin(PluginBuildPlugin) || subproj.plugins.hasPlugin(MetaPluginBuildPlugin)) {
15+
// need to get a non-decorated project object, so must re-lookup the project by path
16+
integTestCluster.plugin(subproj.path)
17+
pluginsCount += 1
18+
}
1519
}
1620

1721
integTestCluster {

0 commit comments

Comments
 (0)