Skip to content

Commit

Permalink
fix the integ tests skip version
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Maurya <[email protected]>
  • Loading branch information
rishabhmaurya committed Dec 5, 2023
1 parent e31ff06 commit 7227f7b
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# integration tests for queries with specific analysis chains

"match query with stacked stems":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
# Tests the match query stemmed tokens are "stacked" on top of the unstemmed
# versions in the same position.
- do:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"ngram search":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down Expand Up @@ -41,6 +44,9 @@

---
"testNGramCopyField":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"ngram highlighting":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
"Test query string with snowball":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
"Test default search analyzer is applied":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
"Test common terms query with stacked tokens":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- skip:
features: "allowed_warnings"

Expand Down Expand Up @@ -244,6 +247,9 @@

---
"Test match query with synonyms - see #3881 for extensive description of the issue":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
setup:
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# integration tests for intervals queries using analyzers
setup:
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand All @@ -23,8 +26,8 @@ setup:
---
"Test use_field":
- skip:
version: " - 7.1.99"
reason: "Implemented in 7.2"
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
catch: bad_request
search:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for the phrase suggester with a few analyzers

setup:
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down Expand Up @@ -118,6 +121,9 @@ setup:

---
"breaks ties by sorting terms":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
# This runs the suggester without bigrams so we can be sure of the sort order
- do:
search:
Expand Down Expand Up @@ -174,6 +180,9 @@ setup:

---
"doesn't fail when asked to run on a field without unigrams when force_unigrams=false":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
search:
rest_total_hits_as_int: true
Expand Down Expand Up @@ -203,6 +212,9 @@ setup:

---
"reverse suggestions":
- skip:
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
search:
rest_total_hits_as_int: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
version: " - 2.11.99"
reason: "match_only_text field was introduced in 2.12.0"
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"validate_query with query_string parameters":
- skip:
version: " - 2.11.99"
reason: "match_only_text field was introduced in 2.12.0"
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Default index":
- skip:
version: " - 2.11.99"
reason: "match_only_text field was introduced in 2.12.0"
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: goodbad
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
"Default index":
- skip:
version: " - 2.11.99"
reason: "match_only_text field was introduced in 2.12.0"
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: goodbad
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setup:
- skip:
version: " - 2.11.99"
reason: "match_only_text field was introduced in 2.12.0"
version: " - 2.99.99"
reason: "match_only_text was added in 3.0"
- do:
indices.create:
index: test
Expand Down Expand Up @@ -89,9 +89,6 @@ setup:

---
"Unified highlighter with stored fields and disabled source":
- skip:
version: "- 7.10.1"
reason: "bug fix introduced in 7.10.2"
- do:
indices.create:
index: disabled_source
Expand Down

0 comments on commit 7227f7b

Please sign in to comment.