Skip to content

Commit

Permalink
Build: Fix meta plugin integ test installation (#28286)
Browse files Browse the repository at this point in the history
Integ test clusters should use the plugin method of ClusterConfiguration
to install plugins. Without it, meta plugins install based on the name
of the project directory, rather than the actual configured plugin name.
This commit fixes that, and also corrects the distribution used to be
the default integ-test-zip, to match that of PluginBuildPlugin. This
ensures plugins are tested in isolation by default.
  • Loading branch information
rjernst committed Jan 18, 2018
1 parent e192a11 commit 8da7d59
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class MetaPluginBuildPlugin implements Plugin<Project> {

project.integTestCluster {
dependsOn(project.bundlePlugin)
distribution = 'zip'
setupCommand('installMetaPlugin', 'bin/elasticsearch-plugin', 'install', 'file:' + project.bundlePlugin.archivePath)
plugin(project.path)
}

RunTask run = project.tasks.create('run', RunTask)
Expand Down

0 comments on commit 8da7d59

Please sign in to comment.