Skip to content

Commit

Permalink
fix rest api spec tests
Browse files Browse the repository at this point in the history
Signed-off-by: kkewwei <[email protected]>
  • Loading branch information
kkewwei committed Aug 1, 2024
1 parent 2c18e8a commit 9accb9f
Showing 1 changed file with 26 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
# - Verify document count
# - Search rangeQuery and regexpQuery
# - Delete indices when connection is teardown

"Mappings and Supported queries":
setup:
- skip:
version: " - 2.16.99"
reason: "fixed in 2.17.0"
version: " - 2.15.99"
reason: "fixed in 2.16.0"

# Create indices with constant_keyword field type
- do:
Expand Down Expand Up @@ -63,6 +62,23 @@
indices.refresh:
index: [test, test1]

---
# Delete Index when connection is teardown
teardown:
- skip:
version: " - 2.15.99"
reason: "fixed in 2.16.0"

- do:
indices.delete:
index: test,test1

---
"Mappings":
- skip:
version: " - 2.15.99"
reason: "fixed in 2.16.0"

# Check mapping
- do:
indices.get_mapping:
Expand Down Expand Up @@ -97,6 +113,12 @@
- length: { hits.hits: 1 }
- match: { hits.hits.0._source.genre: "d3efault" }

---
"Queries":
- skip:
version: " - 2.16.99"
reason: "fixed in 2.17.0"

# Test rangeQuery
- do:
search:
Expand Down Expand Up @@ -313,8 +335,3 @@
}

- length: { hits.hits: 0 }

# Delete Index when connection is teardown
- do:
indices.delete:
index: test,test1

0 comments on commit 9accb9f

Please sign in to comment.