123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- apply plugin: 'elasticsearch.internal-yaml-rest-test'
- import org.elasticsearch.gradle.util.GradleUtils
- dependencies {
- testImplementation project(':x-pack:qa')
- testImplementation project(':x-pack:qa:multi-project:yaml-test-framework')
- clusterModules project(':modules:mapper-extras')
- clusterModules project(':modules:rank-eval')
- clusterModules project(':modules:ingest-common')
- clusterModules project(':modules:reindex')
- clusterModules project(':modules:analysis-common')
- clusterModules project(':modules:health-shards-availability')
- clusterModules project(':modules:data-streams')
- clusterModules project(':modules:multi-project')
- clusterModules project(xpackModule('stack'))
- clusterModules project(xpackModule('ilm'))
- clusterModules project(xpackModule('mapper-constant-keyword'))
- clusterModules project(xpackModule('wildcard'))
- }
- // let the yamlRestTests see the classpath of test
- GradleUtils.extendSourceSet(project, "test", "yamlRestTest", tasks.named("yamlRestTest"))
- restResources {
- restTests {
- includeCore '*'
- }
- }
- tasks.named("yamlRestTest").configure {
- ArrayList<String> blacklist = [
- /* These tests don't work on multi-project yet - we need to go through each of them and make them work */
- '^bulk/*/*',
- '^cat.aliases/*/*',
- '^cat.fielddata/10_basic/*',
- '^cat.indices/*/*',
- '^cat.recovery/*/*',
- '^cat.segments/*/*',
- '^cat.snapshots/*/*',
- '^cluster.allocation_explain/10_basic/Cluster shard allocation explanation test with a closed index', // closed index
- '^cluster.desired_balance/10_basic/*',
- '^cluster.desired_nodes/*/*',
- '^cluster.health/10_basic/cluster health with closed index', // closed index
- '^cluster.health/30_indices_options/cluster health with expand_wildcards', // closed index
- '^cluster.prevalidate_node_removal/*/*',
- '^cluster.state/20_filtering/*',
- '^cluster.state/30_expand_wildcards/*',
- '^cluster.stats/*/*',
- '^explain/*/*',
- '^field_caps/*/*',
- '^health/*/*',
- '^indices.analyze/*/*',
- '^indices.blocks/*/*',
- '^indices.clear_cache/*/*',
- '^indices.clone/*/*',
- '^indices.delete_alias/*/*',
- '^indices.exists/20_read_only_index/*',
- '^indices.exists_alias/*/*',
- '^indices.exists_template/*/*',
- '^indices.forcemerge/*/*',
- '^indices.get/*/*',
- '^indices.get_alias/10_basic/Get alias against closed indices',
- '^indices.get_field_mapping/*/*',
- '^indices.get_mapping/40_aliases/Getting mapping for aliases should return the real index as key', // aliases do not work
- '^indices.get_mapping/50_wildcard_expansion/*', // index close does not work
- '^indices.get_settings/20_aliases/Getting settings for aliases should return the real index as key', // aliases do not work
- '^indices.open/*/*',
- '^indices.open/*/*/*',
- '^indices.put_alias/*/*',
- // This test is blocked on the ability to add ingest pipelines in multiple projects.
- '^indices.put_index_template/15_composition/Using deprecated component templates and pipelines in index template',
- '^indices.put_settings/*/*',
- '^indices.recovery/*/*',
- '^indices.resolve_cluster/*/*',
- '^indices.resolve_cluster/*/*/*',
- '^indices.resolve_index/*/*',
- '^indices.rollover/*/*',
- '^indices.segments/*/*',
- '^indices.shard_stores/*/*',
- '^indices.shrink/*/*',
- '^indices.simulate_index_template/*/*',
- '^indices.simulate_template/*/*',
- '^indices.sort/*/*',
- '^indices.split/*/*',
- '^indices.stats/*/*',
- '^indices.update_aliases/*/*',
- '^logsdb/*/*',
- '^mget/*/*',
- '^mget/*/*/*',
- '^migration/*/*',
- '^mlt/*/*',
- '^msearch/*/*',
- '^mtermvectors/*/*',
- '^nodes.info/*/*',
- '^nodes.reload_secure_settings/*/*',
- '^nodes.stats/*/*',
- '^range/*/*',
- '^scripts/*/*',
- '^scroll/*/*',
- '^search/10_source_filtering/*',
- '^search/20_default_values/*',
- '^search/30_limits/*',
- '^search/40_indices_boost/*',
- '^search/40_indices_boost/*/*',
- '^search/60_query_string/*',
- '^search/70_response_filtering/*',
- '^search/80_indices_options/Closed index',
- '^search/90_search_after/Format sort values',
- '^search/90_search_after/search with search_after parameter',
- '^search/100_stored_fields/Stored fields',
- '^search/110_field_collapsing/*',
- '^search/120_batch_reduce_size/batched_reduce_size 2 with 5 shards',
- '^search/140_pre_filter_search_shards/*',
- '^search/150_rewrite_on_coordinator/*',
- '^search/160_exists_query*/*',
- '^search/161_exists_query_within_nested_query/*',
- '^search/190_index_prefix_search/*',
- '^search/200_ignore_malformed/*',
- '^search/200_index_phrase_search/*',
- '^search/220_total_hits_object/*',
- '^search/240_date_nanos/*',
- '^search/300_sequence_numbers/*',
- '^search/310_match_bool_prefix/*',
- '^search/330_fetch_fields/Test basic field retrieval',
- '^search/330_fetch_fields/Test date formatting',
- '^search/330_fetch_fields/Test disable source',
- '^search/330_fetch_fields/Test ignore malformed',
- '^search/330_fetch_fields/Test search rewrite',
- '^search/330_fetch_fields/error includes field name',
- '^search/350_point_in_time/*',
- '^search/380_sort_segments_on_timestamp/Test that index segments are NOT sorted on timestamp field when @timestamp field is dynamically added',
- '^search/390_doc_values_search/*',
- '^search/390_lookup_fields/*',
- '^search/400_synthetic_source/_doc_count',
- '^search/410_named_queries/*',
- '^search/520_fetch_fields/fetch fields with none stored_fields',
- '^search/issue4895/Test with _local preference placed in query body - should fail',
- '^search.highlight/*/*',
- '^search.inner_hits/*/*',
- '^search.retrievers/*/*',
- '^search.vectors/*/*',
- '^simulate.ingest/*/*',
- '^snapshot.clone/*/*',
- '^snapshot.create/*/*',
- '^snapshot.delete/*/*',
- '^snapshot.get/*/*',
- '^snapshot.get_repository/*/*',
- '^snapshot.restore/*/*',
- '^snapshot.status/*/*',
- '^suggest/*/*',
- '^synonyms/*/*',
- '^termvectors/*/*',
- '^tsdb/*/*'
- ];
- if (buildParams.isSnapshotBuild() == false) {
- blacklist += [];
- }
- systemProperty 'tests.rest.blacklist', blacklist.join(',')
- }
|