add modules check to plugins smoke test

This commit is contained in:
Ryan Ernst 2015-12-03 22:48:51 -08:00
parent 699b140d69
commit 7245d34f51
2 changed files with 23 additions and 12 deletions

View File

@ -21,21 +21,31 @@ import org.elasticsearch.gradle.MavenFilteringHack
apply plugin: 'elasticsearch.rest-test' apply plugin: 'elasticsearch.rest-test'
ext.pluginCount = 0 ext.modulesCount = 0
for (Project subproj : project.rootProject.subprojects) { project.rootProject.subprojects.findAll { it.path.startsWith(':modules:') }.each { subproj ->
if (subproj.path.startsWith(':plugins:')) { integTest {
integTest { cluster {
cluster { // need to get a non-decorated project object, so must re-lookup the project by path
// need to get a non-decorated project object, so must re-lookup the project by path module project(subproj.path)
plugin subproj.name, project(subproj.path)
}
} }
pluginCount += 1
} }
} modulesCount += 1
}
ext.pluginsCount = 0
project.rootProject.subprojects.findAll { it.path.startsWith(':projects:') }.each { subproj ->
integTest {
cluster {
// need to get a non-decorated project object, so must re-lookup the project by path
plugin subproj.name, project(subproj.path)
}
}
pluginCount += 1
}
ext.expansions = [ ext.expansions = [
'expected.plugin.count': pluginCount 'expected.modules.count': modulesCount,
'expected.plugins.count': pluginsCount
] ]
processTestResources { processTestResources {

View File

@ -10,4 +10,5 @@
- do: - do:
nodes.info: {} nodes.info: {}
- length: { nodes.$master.plugins: ${expected.plugin.count} } - length: { nodes.$master.modules: ${expected.modules.count} }
- length: { nodes.$master.plugins: ${expected.plugins.count} }