Skip to content

Commit 91a0ea1

Browse files
committed
[XPACK] Adds skipped tests to compatibility suite
1 parent 0b1f2c2 commit 91a0ea1

File tree

2 files changed

+92
-1
lines changed

2 files changed

+92
-1
lines changed

elasticsearch-xpack/spec/rest_yaml_tests_helper.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
require "#{File.expand_path(File.dirname('..'), '..')}/api-spec-testing/wipe_cluster_8"
2222
include Elasticsearch::RestAPIYAMLTests
2323

24+
def testing_compatibility?
25+
[1, true, 'true'].include?(ENV['ELASTIC_CLIENT_APIVERSIONING'])
26+
end
27+
2428
PROJECT_PATH = File.join(File.dirname(__FILE__), '..', '..')
2529

2630
TRANSPORT_OPTIONS = if [true, 'true', 1].include? ENV['ELASTIC_CLIENT_APIVERSIONING']
@@ -72,7 +76,7 @@
7276
end
7377
end
7478

75-
tests_dir = [true, 'true'].include?(ENV['ELASTIC_CLIENT_APIVERSIONING']) ? 'compatTest' : 'test'
79+
tests_dir = testing_compatibility? ? 'compatTest' : 'test'
7680
YAML_FILES_DIRECTORY = "#{PROJECT_PATH}/tmp/rest-api-spec/#{tests_dir}/platinum".freeze
7781

7882
SINGLE_TEST = if ENV['SINGLE_TEST'] && !ENV['SINGLE_TEST'].empty?
@@ -91,6 +95,7 @@
9195
# Skipped tests
9296
file = File.expand_path(__dir__ + '/skipped_tests.yml')
9397
skipped_tests = YAML.load_file(file)
98+
skipped_tests.concat YAML.load_file(File.expand_path(__dir__ + '/skipped_tests_8.yml')) if testing_compatibility?
9499

95100
# The directory of rest api YAML files.
96101
REST_API_YAML_FILES = if ENV['RUN_SKIPPED_TESTS'] # only run the skipped tests if true
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# error: "no handler found for uri [/.ds-simple-data-stream1-%2A000001/_freeze] and method [POST]"
2+
-
3+
:file: 'indices.freeze/10_basic.yml'
4+
:description: 'Cannot freeze write index for data stream'
5+
6+
# Expected Length (11) is 12
7+
-
8+
:file: 'license/20_put_license.yml'
9+
:description: 'Installing and getting license works'
10+
-
11+
:file: 'license/20_put_license.yml'
12+
:description: 'Should install a feature type license'
13+
14+
# error: "The [accept_enterprise] parameters may not be false"
15+
-
16+
:file: 'license/30_enterprise_license.yml'
17+
:description: 'Installing enterprise license'
18+
19+
# "estimated_heap_memory_usage_bytes" expected to be true, but field not present in response
20+
-
21+
:file: 'ml/inference_crud.yml'
22+
:description: 'Test put model'
23+
24+
# error: "no handler found for uri [/foo/doc/1] and method [PUT]
25+
-
26+
:file: 'roles/11_idx_arrays.yml'
27+
:description: 'Test put role api using as array of index names'
28+
29+
# error: "[date_histogram] unknown field [interval] did you mean [fixed_interval]?"
30+
-
31+
:file: 'rollup/rollup_search.yml'
32+
:description: 'Search error no matching indices'
33+
34+
# Issues with response type
35+
-
36+
:file: 'security/authz/14_cat_indices.yml'
37+
:description: 'Test empty request while no-authorized index'
38+
-
39+
:file: 'security/authz/14_cat_indices.yml'
40+
:description: 'Test empty request while single authorized index'
41+
-
42+
:file: 'security/authz/14_cat_indices.yml'
43+
:description: 'Test explicit request while multiple authorized indices'
44+
-
45+
:file: 'security/authz/14_cat_indices.yml'
46+
:description: 'Test explicit request while multiple opened/closed authorized indices'
47+
-
48+
:file: 'security/authz/14_cat_indices.yml'
49+
:description: 'Test wildcard request with multiple authorized indices'
50+
51+
# error: "Action/metadata line [1] contains an unknown parameter [_type]"
52+
-
53+
:file: 'sql/sql.yml'
54+
:description: 'Execute some SQL'
55+
-
56+
:file: 'sql/sql.yml'
57+
:description: 'Paging through results'
58+
-
59+
:file: 'sql/sql.yml'
60+
:description: 'Clean cursor'
61+
-
62+
:file: 'sql/sql.yml'
63+
:description: 'Getting textual representation'
64+
-
65+
:file: 'sql/translate.yml'
66+
:description: 'Translate SQL'
67+
68+
# error: request [/test-index] contains unrecognized parameter: [include_type_name]
69+
-
70+
:file: 'vectors/10_dense_vector_basic.yml'
71+
:description: 'Dot Product'
72+
-
73+
:file: 'vectors/10_dense_vector_basic.yml'
74+
:description: 'Cosine Similarity'
75+
-
76+
:file: 'vectors/20_dense_vector_special_cases.yml'
77+
:description: "Indexing of Dense vectors should error when dims don't match defined in the mapping"
78+
-
79+
:file: 'vectors/20_dense_vector_special_cases.yml'
80+
:description: 'Vectors of mixed integers and floats'
81+
-
82+
:file: 'vectors/20_dense_vector_special_cases.yml'
83+
:description: 'Functions with query vectors with dims different from docs vectors should error'
84+
-
85+
:file: 'vectors/20_dense_vector_special_cases.yml'
86+
:description: 'Dense vectors should error with sparse vector functions'

0 commit comments

Comments
 (0)