-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* disable tag prunning with negative tag * add regression test for negative tags
- Loading branch information
1 parent
f509e0e
commit 36577e2
Showing
4 changed files
with
84 additions
and
23 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
24 changes: 24 additions & 0 deletions
24
quickwit/rest-api-tests/scenarii/qw_search_api/0002_negative_tags.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,24 @@ | ||
# regression test for https://github.com/quickwit-oss/quickwit/issues/4698 | ||
endpoint: tagged/search | ||
params: | ||
query: "tag:1" | ||
expected: | ||
num_hits: 3 | ||
--- | ||
endpoint: tagged/search | ||
params: | ||
query: "-tag:2" | ||
expected: | ||
num_hits: 4 | ||
--- | ||
endpoint: tagged/search | ||
params: | ||
query: "tag:2" | ||
expected: | ||
num_hits: 1 | ||
--- | ||
endpoint: tagged/search | ||
params: | ||
query: "-tag:1" | ||
expected: | ||
num_hits: 2 |
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/qw_search_api/_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,6 @@ | ||
# Delete index | ||
method: DELETE | ||
endpoint: indexes/simple | ||
--- | ||
method: DELETE | ||
endpoint: indexes/tagged |