Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrik-es committed Nov 13, 2024
1 parent 2ceeef1 commit 412293e
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,17 +479,12 @@ override sort field using nested field type:
- is_false: error

---
routing path not allowed in logs mode:
routing path allowed in logs mode:
- requires:
test_runner_features: [ capabilities ]
capabilities:
- method: PUT
path: /{index}
capabilities: [ logsdb_index_mode ]
reason: "Support for 'logsdb' index mode capability required"
cluster_features: [ "routing.logsb_route_on_sort_fields" ]
reason: error message changed

- do:
catch: bad_request
indices.create:
index: test
body:
Expand All @@ -514,9 +509,13 @@ routing path not allowed in logs mode:
message:
type: text

- match: { error.root_cause.0.type: "illegal_argument_exception" }
- match: { error.type: "illegal_argument_exception" }
- match: { error.reason: "[index.routing_path] requires [index.mode=time_series]" }
- do:
indices.get_settings:
index: test

- is_true: test
- match: { test.settings.index.mode: "logsdb" }
- match: { test.settings.index.routing_path: [ "host.name", "agent_id" ] }

---
start time not allowed in logs mode:
Expand Down

0 comments on commit 412293e

Please sign in to comment.