Running the sql rest action test inside the server caused a dependency
loop which was failing the build.

Original commit: elastic/x-pack-elasticsearch@43283671d8
This commit is contained in:
Nik Everett 2017-08-01 17:23:07 -04:00 committed by GitHub
parent a9b72019ad
commit 767a43ca44
4 changed files with 31 additions and 33 deletions

View File

@ -53,9 +53,11 @@ case $key in
"-psql" "-psql"
"check" "check"
":x-pack-elasticsearch:plugin:precommit" ":x-pack-elasticsearch:plugin:precommit"
":x-pack-elasticsearch:qa:sql-no-security:check"
":x-pack-elasticsearch:qa:sql-security:check" ":x-pack-elasticsearch:qa:sql-security:check"
"-xforbiddenPatterns" "-xforbiddenPatterns"
"-x:x-pack-elasticsearch:plugin:forbiddenPatterns" "-x:x-pack-elasticsearch:plugin:forbiddenPatterns"
"-x:x-pack-elasticsearch:qa:sql-no-security:forbiddenPatterns"
"-x:x-pack-elasticsearch:qa:sql-security:forbiddenPatterns" "-x:x-pack-elasticsearch:qa:sql-security:forbiddenPatterns"
) )
;; ;;

View File

@ -0,0 +1,28 @@
import org.elasticsearch.gradle.test.RunTask
apply plugin: 'elasticsearch.standalone-rest-test'
apply plugin: 'elasticsearch.rest-test'
integTestCluster {
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
plugin project(':x-pack-elasticsearch:plugin').path
/* Get a "clean" test without the other x-pack features here and check them
* all together later on. */
setting 'xpack.security.enabled', 'false'
setting 'xpack.monitoring.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
setting 'xpack.watcher.enabled', 'false'
setting 'script.max_compilations_per_minute', '1000'
}
task run(type: RunTask) {
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
plugin project(':x-pack-elasticsearch:plugin').path
/* Get a "clean" test without the other x-pack features here and check them
* all together later on. */
setting 'xpack.security.enabled', 'false'
setting 'xpack.monitoring.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
setting 'xpack.watcher.enabled', 'false'
setting 'script.max_compilations_per_minute', '1000'
}

View File

@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License; * or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License. * you may not use this file except in compliance with the Elastic License.
*/ */
package org.elasticsearch.xpack.sql.server; package org.elasticsearch.xpack.sql;
import org.elasticsearch.client.Response; import org.elasticsearch.client.Response;
import org.elasticsearch.client.ResponseException; import org.elasticsearch.client.ResponseException;

View File

@ -26,38 +26,6 @@ dependencyLicenses {
compileJava.options.compilerArgs << "-parameters" compileJava.options.compilerArgs << "-parameters"
compileTestJava.options.compilerArgs << "-parameters" compileTestJava.options.compilerArgs << "-parameters"
// Configure integration tests
apply plugin: 'elasticsearch.rest-test'
integTest.mustRunAfter test
gradle.projectsEvaluated {
// Hack to remove a dependency cycle
project(':x-pack-elasticsearch:plugin').test.mustRunAfter.getDependencies(project(':x-pack-elasticsearch:plugin').test).remove(test)
}
integTestCluster {
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
plugin project(':x-pack-elasticsearch:plugin').path
/* Get a "clean" test without the other x-pack features here and check them
* all together later on. */
setting 'xpack.security.enabled', 'false'
setting 'xpack.monitoring.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
setting 'xpack.watcher.enabled', 'false'
setting 'script.max_compilations_per_minute', '1000'
}
task run(type: RunTask) {
distribution = 'zip' // NOCOMMIT make double sure we want all the modules
plugin project(':x-pack-elasticsearch:plugin').path
/* Get a "clean" test without the other x-pack features here and check them
* all together later on. */
setting 'xpack.security.enabled', 'false'
setting 'xpack.monitoring.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
setting 'xpack.watcher.enabled', 'false'
setting 'script.max_compilations_per_minute', '1000'
}
/********************************************** /**********************************************
* SQL Parser regeneration * * SQL Parser regeneration *
**********************************************/ **********************************************/