-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add elastic search compatibility test
- Loading branch information
Showing
11 changed files
with
76 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
quickwit/rest-api-tests/scenarii/es_field_capabilities/_ctx.elasticsearch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
api_root: http://localhost:9200/ | ||
|
1 change: 1 addition & 0 deletions
1
quickwit/rest-api-tests/scenarii/es_field_capabilities/_ctx.quickwit.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
api_root: "http://localhost:7280/api/v1/_elastic/" |
4 changes: 1 addition & 3 deletions
4
quickwit/rest-api-tests/scenarii/es_field_capabilities/_ctx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
method: GET | ||
engines: ["quickwit"] | ||
api_root: "http://localhost:7280/api/v1/" | ||
method: [GET, POST] | ||
headers: | ||
Content-Type: application/json |
33 changes: 33 additions & 0 deletions
33
quickwit/rest-api-tests/scenarii/es_field_capabilities/_setup.elasticsearch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Delete possibly remaining index | ||
method: DELETE | ||
endpoint: fieldcaps | ||
status_code: null | ||
--- | ||
# Create index 1 | ||
method: PUT | ||
endpoint: fieldcaps | ||
json: { | ||
"mappings": { | ||
"properties": { | ||
"id": { | ||
"type": "text", | ||
"store": true, | ||
"norms": false, | ||
"index_options": "docs" | ||
}, | ||
} | ||
} | ||
} | ||
--- | ||
# Ingest documents in fieldcaps | ||
method: POST | ||
endpoint: _bulk | ||
params: | ||
refresh: "true" | ||
headers: {"Content-Type": "application/json"} | ||
ndjson: | ||
- "index": { "_index": "fieldcaps" } | ||
- {"id": 1, "name": "Fritz", "response": 30, "id": 5, "host": "192.168.0.1", "tags": ["nice", "cool"]} | ||
- "index": { "_index": "fieldcaps" } | ||
- {"id": 2, "nested": {"name": "Fritz", "response": 30}, "date": "2015-01-11T12:10:30Z", "host": "192.168.0.11", "tags": ["nice"]} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
quickwit/rest-api-tests/scenarii/es_field_capabilities/_teardown.elasticsearch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# # Delete index | ||
method: DELETE | ||
endpoint: fieldcaps |
1 change: 1 addition & 0 deletions
1
quickwit/rest-api-tests/scenarii/es_field_capabilities/_teardown.quickwit.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# # Delete index | ||
method: DELETE | ||
api_root: http://localhost:7280/api/v1/ | ||
endpoint: indexes/fieldcaps |