Skip to content

Commit 8f6672f

Browse files
committed
YAML test cleanups
1 parent 42bc77d commit 8f6672f

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

x-pack/plugin/ml/qa/multi-cluster-tests-with-security/src/test/resources/rest-api-spec/test/multi_cluster/50_sparse_vector.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ teardown:
226226
pruning_config:
227227
tokens_freq_ratio_threshold: 1.0
228228
tokens_weight_threshold: 0.4
229-
embeddings:
230-
type: sparse_vector
231229

232230
- match: { acknowledged: true }
233231

@@ -241,7 +239,6 @@ teardown:
241239
- match: { sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options.prune: true }
242240
- match: { sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options.pruning_config.tokens_freq_ratio_threshold: 1.0 }
243241
- match: { sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options.pruning_config.tokens_weight_threshold: 0.4 }
244-
- not_exists: sparse_vector_pruning_test.mappings.properties.embeddings.index_options
245242

246243
---
247244
"Check sparse_vector token pruning index_options mappings defaults":
@@ -265,8 +262,6 @@ teardown:
265262
type: text
266263
ml.tokens:
267264
type: sparse_vector
268-
embeddings:
269-
type: sparse_vector
270265

271266
- match: { acknowledged: true }
272267

x-pack/plugin/ml/qa/multi-cluster-tests-with-security/src/test/resources/rest-api-spec/test/remote_cluster/50_sparse_vector.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ teardown:
225225
pruning_config:
226226
tokens_freq_ratio_threshold: 1.0
227227
tokens_weight_threshold: 0.4
228-
embeddings:
229-
type: sparse_vector
230228

231229
- match: { acknowledged: true }
232230

@@ -240,7 +238,6 @@ teardown:
240238
- match: { sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options.prune: true }
241239
- match: { sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options.pruning_config.tokens_freq_ratio_threshold: 1.0 }
242240
- match: { sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options.pruning_config.tokens_weight_threshold: 0.4 }
243-
- not_exists: sparse_vector_pruning_test.mappings.properties.embeddings.index_options
244241

245242
---
246243
"Check sparse_vector token pruning index_options mappings defaults":
@@ -264,8 +261,6 @@ teardown:
264261
type: text
265262
ml.tokens:
266263
type: sparse_vector
267-
embeddings:
268-
type: sparse_vector
269264

270265
- match: { acknowledged: true }
271266

@@ -277,7 +272,6 @@ teardown:
277272
index: sparse_vector_pruning_test
278273

279274
- not_exists: sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options
280-
- not_exists: sparse_vector_pruning_test.mappings.properties.embeddings.index_options
281275

282276
---
283277
"Check sparse_vector token pruning index_options prune missing do not allow config":

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,6 @@ teardown:
556556
pruning_config:
557557
tokens_freq_ratio_threshold: 1.0
558558
tokens_weight_threshold: 0.4
559-
embeddings:
560-
type: sparse_vector
561559

562560
- match: { acknowledged: true }
563561

@@ -594,8 +592,6 @@ teardown:
594592
type: text
595593
ml.tokens:
596594
type: sparse_vector
597-
embeddings:
598-
type: sparse_vector
599595

600596
- match: { acknowledged: true }
601597

@@ -607,7 +603,6 @@ teardown:
607603
index: sparse_vector_pruning_test
608604

609605
- not_exists: sparse_vector_pruning_test.mappings.properties.ml.properties.tokens.index_options
610-
- not_exists: sparse_vector_pruning_test.mappings.properties.embeddings.index_options
611606

612607
---
613608
"Check sparse_vector token pruning index_options prune missing do not allow config":
@@ -636,8 +631,6 @@ teardown:
636631
pruning_config:
637632
tokens_freq_ratio_threshold: 1.0
638633
tokens_weight_threshold: 0.4
639-
embeddings:
640-
type: sparse_vector
641634

642635
- match: { status: 400 }
643636

@@ -669,8 +662,6 @@ teardown:
669662
pruning_config:
670663
tokens_freq_ratio_threshold: 1.0
671664
tokens_weight_threshold: 0.4
672-
embeddings:
673-
type: sparse_vector
674665

675666
- match: { status: 400 }
676667

@@ -702,8 +693,6 @@ teardown:
702693
pruning_config:
703694
tokens_freq_ratio_threshold: 101.0
704695
tokens_weight_threshold: 0.4
705-
embeddings:
706-
type: sparse_vector
707696

708697
- match: { status: 400 }
709698

@@ -735,8 +724,6 @@ teardown:
735724
pruning_config:
736725
tokens_freq_ratio_threshold: 5.0
737726
tokens_weight_threshold: 3.5
738-
embeddings:
739-
type: sparse_vector
740727

741728
- match: { status: 400 }
742729

0 commit comments

Comments
 (0)