Merge pull request elastic/elasticsearch#1017 from rjernst/qa/shield_core_rest
Build: Get shield qa test with core rest tests working Original commit: elastic/x-pack-elasticsearch@0bf9f9ac9f
This commit is contained in:
commit
f3a76118db
|
@ -35,7 +35,7 @@ compileTestJava.options.compilerArgs << '-Xlint:-rawtypes,-unchecked'
|
|||
|
||||
ext.expansions = [
|
||||
'project.version': version,
|
||||
'integ.http.port': integTest.cluster.httpPort
|
||||
'integ.http.port': integTest.cluster.baseHttpPort
|
||||
]
|
||||
|
||||
processResources {
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
apply plugin: 'elasticsearch.rest-test'
|
||||
|
||||
configurations {
|
||||
licensePluginZip
|
||||
shieldPluginZip
|
||||
}
|
||||
|
||||
dependencies {
|
||||
licensePluginZip project(path: ':x-plugins:license:plugin')
|
||||
shieldPluginZip project(path: ':x-plugins:shield')
|
||||
testCompile project(path: ':x-plugins:shield', configuration: 'runtime')
|
||||
}
|
||||
|
||||
integTest {
|
||||
dependsOn configurations.licensePluginZip, configurations.shieldPluginZip
|
||||
includePackaged true
|
||||
systemProperty 'tests.rest.blacklist',
|
||||
['indices.get/10_basic/*allow_no_indices*',
|
||||
'cat.count/10_basic/Test cat count output',
|
||||
'cat.aliases/10_basic/Empty cluster',
|
||||
'indices.segments/10_basic/no segments test',
|
||||
'indices.clear_cache/10_basic/clear_cache test',
|
||||
'indices.status/10_basic/Indices status test',
|
||||
'cat.indices/10_basic/Test cat indices output',
|
||||
'cat.recovery/10_basic/Test cat recovery output',
|
||||
'cat.shards/10_basic/Test cat shards output',
|
||||
'termvector/20_issue7121/*',
|
||||
'index/10_with_id/Index with ID',
|
||||
'indices.get_alias/20_emtpy/*',
|
||||
'cat.segments/10_basic/Test cat segments output',
|
||||
'indices.put_settings/10_basic/Test indices settings allow_no_indices',
|
||||
'indices.put_settings/10_basic/Test indices settings ignore_unavailable',
|
||||
'indices.refresh/10_basic/Indices refresh test no-match wildcard',
|
||||
'indices.stats/10_index/Index - star*',
|
||||
'indices.recovery/10_basic/Indices recovery test*',
|
||||
'indices.shard_stores/10_basic/no indices test',
|
||||
'cat.nodeattrs/10_basic/Test cat nodes attrs output',
|
||||
'bulk/40_fields/Fields'].join(',')
|
||||
|
||||
cluster {
|
||||
plugin 'license', configurations.licensePluginZip
|
||||
plugin 'shield', configurations.shieldPluginZip
|
||||
setupCommand 'setupDummyUser',
|
||||
'bin/shield/esusers', 'useradd', 'test_user', '-p', 'changeme', '-r', 'admin'
|
||||
waitCondition = { node, ant ->
|
||||
File tmpFile = new File(node.cwd, 'wait.success')
|
||||
ant.get(src: "http://localhost:${node.httpPort()}",
|
||||
dest: tmpFile.toString(),
|
||||
username: 'test_user',
|
||||
password: 'changeme',
|
||||
ignoreerrors: true,
|
||||
retries: 10)
|
||||
return tmpFile.exists()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<project name="smoke-test-x-plugins"
|
||||
xmlns:ac="antlib:net.sf.antcontrib">
|
||||
|
||||
<import file="${elasticsearch.integ.antfile.default}"/>
|
||||
<import file="${elasticsearch.tools.directory}/ant/shield-overrides.xml"/>
|
||||
|
||||
</project>
|
|
@ -182,7 +182,7 @@ public class ShieldPlugin extends Plugin {
|
|||
@Override
|
||||
public void onIndexService(IndexService indexService) {
|
||||
if (enabled && clientMode == false) {
|
||||
failIfShieldQueryCacheIsNotActive(settings, false);
|
||||
failIfShieldQueryCacheIsNotActive(indexService.getIndexSettings().getSettings(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue