Test to enforce response to invalid data stream names (#54663)

This commit is contained in:
Dan Hermann 2020-04-02 15:04:03 -05:00 committed by GitHub
parent cc6468a0cb
commit 547ab849b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -31,3 +31,19 @@
indices.delete_data_stream:
name: simple-data-stream2
- is_true: acknowledged
---
"Create data stream with invalid name":
- skip:
version: " - 7.7.99"
reason: available only in 7.8+
- do:
catch: bad_request
indices.create_data_stream:
name: invalid-data-stream#-name
body:
timestamp_field: "@timestamp"
- match: { status: 400 }
- match: { error.root_cause.0.type: "illegal_argument_exception" }