import org.elasticsearch.gradle.test.RunTask description = 'Integration tests for SQL' apply plugin: 'elasticsearch.build' archivesBaseName = 'qa-sql' group = "org.elasticsearch.x-pack.qa.sql" dependencies { compile "org.elasticsearch.test:framework:${version}" // JDBC testing dependencies compile project(path: xpackModule('sql:jdbc'), configuration: 'nodeps') compile project(path: xpackModule('sql:sql-action')) compile "net.sourceforge.csvjdbc:csvjdbc:1.0.34" // CLI testing dependencies compile project(path: xpackModule('sql:sql-cli'), configuration: 'nodeps') compile "org.jline:jline:3.8.2" } /* disable unit tests because these are all integration tests used * other qa projects. */ unitTest.enabled = false dependencyLicenses.enabled = false dependenciesInfo.enabled = false // the main files are actually test files, so use the appropriate forbidden api sigs forbiddenApisMain { replaceSignatureFiles 'es-all-signatures', 'es-test-signatures' } thirdPartyAudit.ignoreMissingClasses ( // jLine's optional dependencies 'org.apache.sshd.client.SshClient', 'org.apache.sshd.client.auth.keyboard.UserInteraction', 'org.apache.sshd.client.channel.ChannelShell', 'org.apache.sshd.client.channel.ClientChannel', 'org.apache.sshd.client.channel.ClientChannelEvent', 'org.apache.sshd.client.future.AuthFuture', 'org.apache.sshd.client.future.ConnectFuture', 'org.apache.sshd.client.future.OpenFuture', 'org.apache.sshd.client.session.ClientSession', 'org.apache.sshd.common.Factory', 'org.apache.sshd.common.channel.PtyMode', 'org.apache.sshd.common.config.keys.FilePasswordProvider', 'org.apache.sshd.common.util.io.NoCloseInputStream', 'org.apache.sshd.common.util.io.NoCloseOutputStream', 'org.apache.sshd.server.Command', 'org.apache.sshd.server.Environment', 'org.apache.sshd.server.ExitCallback', 'org.apache.sshd.server.SessionAware', 'org.apache.sshd.server.Signal', 'org.apache.sshd.server.SshServer', 'org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider', 'org.apache.sshd.server.scp.ScpCommandFactory$Builder', 'org.apache.sshd.server.session.ServerSession', 'org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory$Builder', 'org.fusesource.jansi.Ansi', 'org.fusesource.jansi.internal.CLibrary$Termios', 'org.fusesource.jansi.internal.CLibrary$WinSize', 'org.fusesource.jansi.internal.CLibrary', 'org.fusesource.jansi.internal.Kernel32$CHAR_INFO', 'org.fusesource.jansi.internal.Kernel32$CONSOLE_SCREEN_BUFFER_INFO', 'org.fusesource.jansi.internal.Kernel32$COORD', 'org.fusesource.jansi.internal.Kernel32$FOCUS_EVENT_RECORD', 'org.fusesource.jansi.internal.Kernel32$INPUT_RECORD', 'org.fusesource.jansi.internal.Kernel32$KEY_EVENT_RECORD', 'org.fusesource.jansi.internal.Kernel32$MOUSE_EVENT_RECORD', 'org.fusesource.jansi.internal.Kernel32$SMALL_RECT', 'org.fusesource.jansi.internal.Kernel32', 'org.fusesource.jansi.internal.WindowsSupport', 'org.mozilla.universalchardet.UniversalDetector', ) subprojects { apply plugin: 'elasticsearch.standalone-rest-test' dependencies { /* Since we're a standalone rest test we actually get transitive * dependencies but we don't really want them because they cause * all kinds of trouble with the jar hell checks. So we suppress * them explicitly for non-es projects. */ testCompile(xpackProject('plugin:sql:qa')) { transitive = false } testCompile "org.elasticsearch.test:framework:${version}" // JDBC testing dependencies testRuntime "net.sourceforge.csvjdbc:csvjdbc:1.0.34" testRuntime "com.h2database:h2:1.4.197" testRuntime project(path: xpackModule('sql:jdbc'), configuration: 'nodeps') testRuntime xpackProject('plugin:sql:sql-client') // TODO check if needed testRuntime("org.antlr:antlr4-runtime:4.5.3") { transitive = false } // CLI testing dependencies testRuntime project(path: xpackModule('sql:sql-cli'), configuration: 'nodeps') testRuntime (xpackProject('plugin:sql:sql-action')) { transitive = false } testRuntime "org.jline:jline:3.8.2" } if (project.name != 'security') { // The security project just configures its subprojects apply plugin: 'elasticsearch.rest-test' integTestCluster { setting 'xpack.monitoring.enabled', 'false' setting 'xpack.ml.enabled', 'false' setting 'xpack.watcher.enabled', 'false' setting 'script.max_compilations_rate', '1000/1m' } task runqa(type: RunTask) { setting 'xpack.monitoring.enabled', 'false' setting 'xpack.ml.enabled', 'false' setting 'xpack.watcher.enabled', 'false' setting 'script.max_compilations_rate', '1000/1m' } } }