Skip to content

Commit

Permalink
Un-mute and fix BuildExamplePluginsIT (#38899)
Browse files Browse the repository at this point in the history
* Un-mute and fix BuildExamplePluginsIT

There doesn't seem to be anything wrong with the test iteself.
I think the failure were CI performance related, but while it was muted,
some failures managed to sneak in.

Closes #38784

* PR review
  • Loading branch information
alpar-t committed Mar 4, 2019
1 parent 3aa24b1 commit 6c4dcb3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ allprojects {
"org.elasticsearch.plugin:rank-eval-client:${version}": ':modules:rank-eval',
// for security example plugins
"org.elasticsearch.plugin:x-pack-core:${version}": ':x-pack:plugin:core',
"org.elasticsearch.client.x-pack-transport:${version}": ':x-pack:transport-client'
"org.elasticsearch.client:x-pack-transport:${version}": ':x-pack:transport-client'
]

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class ClusterFormationTasks {
classifier = "" // for bwc, before we had classifiers
}
// group does not matter as it is not used when we pull from the ivy repo that points to the download service
dependency = "dnm:${artifactName}:${elasticsearchVersion}${classifier}@${packaging}"
dependency = "dnm:${artifactName}:${elasticsearchVersion}-${classifier}@${packaging}"
}
project.dependencies.add(configuration.name, dependency)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.elasticsearch.gradle.test.GradleIntegrationTestCase;
import org.gradle.testkit.runner.GradleRunner;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.rules.TemporaryFolder;

Expand All @@ -39,7 +38,6 @@
import java.util.Objects;
import java.util.stream.Collectors;

@Ignore // Awaiting a fix in https://github.com/elastic/elasticsearch/issues/37889.
public class BuildExamplePluginsIT extends GradleIntegrationTestCase {

private static final List<File> EXAMPLE_PLUGINS = Collections.unmodifiableList(
Expand Down Expand Up @@ -78,11 +76,6 @@ public static Iterable<Object[]> parameters() {

public void testCurrentExamplePlugin() throws IOException {
FileUtils.copyDirectory(examplePlugin, tmpDir.getRoot());
// just get rid of deprecation warnings
Files.write(
getTempPath("settings.gradle"),
"enableFeaturePreview('STABLE_PUBLISHING')\n".getBytes(StandardCharsets.UTF_8)
);

adaptBuildScriptForTest();

Expand Down
4 changes: 1 addition & 3 deletions libs/ssl-config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/

apply plugin: 'nebula.maven-base-publish'
apply plugin: 'nebula.maven-scm'
apply plugin: "nebula.maven-scm"

dependencies {
compile "org.elasticsearch:elasticsearch-core:${version}"
Expand Down
8 changes: 6 additions & 2 deletions plugins/examples/security-authorization-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ esplugin {
description 'An example spi extension plugin for security that implements an Authorization Engine'
classname 'org.elasticsearch.example.AuthorizationEnginePlugin'
extendedPlugins = ['x-pack-security']
licenseFile rootProject.file('licenses/APACHE-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
}

dependencies {
compileOnly "org.elasticsearch.plugin:x-pack-core:${version}"
testCompile "org.elasticsearch.client.x-pack-transport:${version}"
compileOnly "org.elasticsearch.plugin:x-pack-core:${versions.elasticsearch}"
testCompile "org.elasticsearch.client:x-pack-transport:${versions.elasticsearch}"
}


Expand All @@ -19,6 +21,8 @@ integTestRunner {

integTestCluster {
dependsOn buildZip
distribution = 'default'

setting 'xpack.security.enabled', 'true'
setting 'xpack.ilm.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
Expand Down
1 change: 1 addition & 0 deletions plugins/transport-nio/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
apply plugin: "nebula.maven-scm"

esplugin {
description 'The nio transport.'
Expand Down

0 comments on commit 6c4dcb3

Please sign in to comment.