File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
x-pack/plugin/otel-data/src/yamlRestTest/resources/rest-api-spec/test Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -92,3 +92,28 @@ setup:
9292 fields : ["data_stream.type"]
9393 - length : { hits.hits: 1 }
9494 - match : { hits.hits.0.fields.data_stream\.type: ["traces"] }
95+ ---
96+ Conflicting attribute types :
97+ - do :
98+ bulk :
99+ index : traces-generic.otel-default
100+ refresh : true
101+ body :
102+ - create : {}
103+ - " @timestamp " : 2024-10-04T00:00:00
104+ attributes :
105+ http.status_code : 200
106+ - create : {}
107+ - " @timestamp " : 2024-10-04T01:00:00
108+ attributes :
109+ http.status_code : " foo"
110+ - is_false : errors
111+ - do :
112+ search :
113+ index : traces-generic.otel-default
114+ body :
115+ fields : ["*"]
116+ " sort" : [ "@timestamp" ]
117+ - length : { hits.hits: 2 }
118+ - match : { hits.hits.0.fields.attributes\.http\.status_code: [200] }
119+ - match : { hits.hits.1._ignored: ["attributes.http.status_code"] }
You can’t perform that action at this time.
0 commit comments