Skip to content

Commit d5e9e86

Browse files
committed
Update binary format in 20_ignored_source yaml test
1 parent d042cab commit d5e9e86

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/20_ignored_source.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ setup:
7979
stored_fields: [ _ignored_source ]
8080

8181
- match: { hits.total.value: 1 }
82-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
82+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
8383

8484
---
8585
"fetch fields by name":
@@ -96,7 +96,7 @@ setup:
9696
fields: [ _ignored_source ]
9797

9898
- match: { hits.total.value: 1 }
99-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
99+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
100100

101101
---
102102
"fields and stored fields combination":
@@ -113,11 +113,11 @@ setup:
113113
stored_fields: [ _ignored_source ]
114114
fields: [ _ignored_source ]
115115
query:
116-
match_all: {}
116+
match_all: { }
117117

118118
- match: { hits.total.value: 1 }
119119
- match: { hits.hits.0.fields.object: null }
120-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
120+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
121121

122122
---
123123
"wildcard fields and stored fields combination":
@@ -151,7 +151,7 @@ setup:
151151
fields: [ object ]
152152

153153
- match: { hits.total.value: 1 }
154-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
154+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
155155
- match: { hits.hits.0.fields: null }
156156

157157
---
@@ -170,7 +170,7 @@ setup:
170170
fields: [ _ignored_source ]
171171

172172
- match: { hits.total.value: 1 }
173-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
173+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
174174

175175
---
176176
"ignored source via fields and wildcard stored fields":
@@ -188,7 +188,7 @@ setup:
188188
fields: [ _ignored_source ]
189189

190190
- match: { hits.total.value: 1 }
191-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
191+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
192192

193193
---
194194
"wildcard fields and ignored source via stored fields":
@@ -206,12 +206,12 @@ setup:
206206
fields: [ "*" ]
207207

208208
- match: { hits.total.value: 1 }
209-
- match: { hits.hits.0._ignored_source.0: !!binary "BgAAAG9iamVjdHktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
209+
- match: { hits.hits.0._ignored_source.0: !!binary "AQZvYmplY3QAG3ktLS0KbmFtZTogImZvbyIKdmFsdWU6IDEwCg==" }
210210

211211
---
212212
ignored source array via fields:
213213
- requires:
214-
cluster_features: [mapper.ignored_source_as_top_level_metadata_array_field]
214+
cluster_features: [ mapper.ignored_source_as_top_level_metadata_array_field ]
215215
reason: requires returning the _ignored_source field as a top level array metadata field
216216

217217
- do:
@@ -248,21 +248,21 @@ ignored source array via fields:
248248
body:
249249
fields: [ "_ignored_source" ]
250250
query:
251-
match_all: {}
251+
match_all: { }
252252

253253
- match: { hits.total.value: 1 }
254254
- match: { hits.hits.0._source.name: "foo" }
255255
- match: { hits.hits.0._source.value: 1 }
256256
- match: { hits.hits.0._source.id: "f5t7-66gt" }
257-
- match: { hits.hits.0._ignored: [ "id", "value" ]}
257+
- match: { hits.hits.0._ignored: [ "id", "value" ] }
258258
- length: { hits.hits.0._ignored_source: 2 }
259-
- match: { hits.hits.0._ignored_source.0: !!binary "AgAAAGlkU2Y1dDctNjZndA==" } # `id` field
260-
- match: { hits.hits.0._ignored_source.1: !!binary "BQAAAHZhbHVlSQEAAAA=" } # `value` field
259+
- match: { hits.hits.0._ignored_source.0: !!binary "AQJpZAAKU2Y1dDctNjZndA==" } # `id` field
260+
- match: { hits.hits.0._ignored_source.1: !!binary "AQV2YWx1ZQAFSQEAAAA=" } # `value` field
261261

262262
---
263263
ignored source array via stored_fields:
264264
- requires:
265-
cluster_features: [mapper.ignored_source_as_top_level_metadata_array_field]
265+
cluster_features: [ mapper.ignored_source_as_top_level_metadata_array_field ]
266266
reason: requires returning the _ignored_source field as a top level array metadata field
267267

268268
- do:
@@ -301,13 +301,13 @@ ignored source array via stored_fields:
301301
# a wildcard request would not include it.
302302
stored_fields: [ "_ignored_source", "_source" ]
303303
query:
304-
match_all: {}
304+
match_all: { }
305305

306306
- match: { hits.total.value: 1 }
307307
- match: { hits.hits.0._source.name: "foo" }
308308
- match: { hits.hits.0._source.value: 1 }
309309
- match: { hits.hits.0._source.id: "f5t7-66gt" }
310-
- match: { hits.hits.0._ignored: [ "id", "value" ]}
310+
- match: { hits.hits.0._ignored: [ "id", "value" ] }
311311
- length: { hits.hits.0._ignored_source: 2 }
312-
- match: { hits.hits.0._ignored_source.0: !!binary "AgAAAGlkU2Y1dDctNjZndA==" } # `id` field
313-
- match: { hits.hits.0._ignored_source.1: !!binary "BQAAAHZhbHVlSQEAAAA=" } # `value` field
312+
- match: { hits.hits.0._ignored_source.0: !!binary "AQJpZAAKU2Y1dDctNjZndA==" } # `id` field
313+
- match: { hits.hits.0._ignored_source.1: !!binary "AQV2YWx1ZQAFSQEAAAA=" } # `value` field

0 commit comments

Comments
 (0)