add modules check to plugins smoke test
This commit is contained in:
parent
699b140d69
commit
7245d34f51
|
@ -21,21 +21,31 @@ import org.elasticsearch.gradle.MavenFilteringHack
|
|||
|
||||
apply plugin: 'elasticsearch.rest-test'
|
||||
|
||||
ext.pluginCount = 0
|
||||
for (Project subproj : project.rootProject.subprojects) {
|
||||
if (subproj.path.startsWith(':plugins:')) {
|
||||
integTest {
|
||||
cluster {
|
||||
// need to get a non-decorated project object, so must re-lookup the project by path
|
||||
plugin subproj.name, project(subproj.path)
|
||||
}
|
||||
ext.modulesCount = 0
|
||||
project.rootProject.subprojects.findAll { it.path.startsWith(':modules:') }.each { subproj ->
|
||||
integTest {
|
||||
cluster {
|
||||
// need to get a non-decorated project object, so must re-lookup the project by path
|
||||
module 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 = [
|
||||
'expected.plugin.count': pluginCount
|
||||
'expected.modules.count': modulesCount,
|
||||
'expected.plugins.count': pluginsCount
|
||||
]
|
||||
|
||||
processTestResources {
|
||||
|
|
|
@ -10,4 +10,5 @@
|
|||
- do:
|
||||
nodes.info: {}
|
||||
|
||||
- length: { nodes.$master.plugins: ${expected.plugin.count} }
|
||||
- length: { nodes.$master.modules: ${expected.modules.count} }
|
||||
- length: { nodes.$master.plugins: ${expected.plugins.count} }
|
||||
|
|
Loading…
Reference in New Issue