[7.x] Lazy test cluster module and plugins (#54852) (#55087)

This change converts the module and plugin parameters
for testClusters to be lazy. Meaning that the values
are not resolved until they are actually used. This
removes the requirement to use project.afterEvaluate to
be able to resolve the bundle artifact.

Note - this does not completely remove the need for afterEvaluate
since it is still needed for the custom resource extension.
This commit is contained in:
Jake Landis 2020-04-13 10:53:35 -05:00 committed by GitHub
parent 57d6493e29
commit a2fafa6af4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 120 additions and 68 deletions

View file

@ -79,7 +79,7 @@ integTest.enabled = false
testClusters."integTest${action}" {
numberOfNodes = ec2NumberOfNodes
plugin file(project(':plugins:discovery-ec2').bundlePlugin.archiveFile)
plugin project(':plugins:discovery-ec2').bundlePlugin.archiveFile
setting 'discovery.seed_providers', 'ec2'
setting 'network.host', '_ec2_'