Skip to content

Commit 6b11af3

Browse files
authored
Fix new synthetic source copy_to tests to pass on serverless (#113320)
1 parent 413b23a commit 6b11af3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.create/20_synthetic_source.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,8 @@ synthetic_source with copy_to pointing at dynamic field:
18151815
_source:
18161816
mode: synthetic
18171817
properties:
1818+
name:
1819+
type: keyword
18181820
k:
18191821
type: keyword
18201822
copy_to: c.copy
@@ -1829,6 +1831,7 @@ synthetic_source with copy_to pointing at dynamic field:
18291831
id: 1
18301832
refresh: true
18311833
body:
1834+
name: "A"
18321835
k: "hello"
18331836

18341837
- do:
@@ -1837,6 +1840,7 @@ synthetic_source with copy_to pointing at dynamic field:
18371840
id: 2
18381841
refresh: true
18391842
body:
1843+
name: "B"
18401844
k: ["55", "66"]
18411845

18421846
- do:
@@ -1845,32 +1849,37 @@ synthetic_source with copy_to pointing at dynamic field:
18451849
id: 3
18461850
refresh: true
18471851
body:
1852+
name: "C"
18481853
k: "hello"
18491854
c:
18501855
copy: "zap"
18511856

18521857
- do:
18531858
search:
18541859
index: test
1860+
sort: name
18551861
body:
18561862
docvalue_fields: [ "c.copy.keyword" ]
18571863

18581864
- match:
18591865
hits.hits.0._source:
1866+
name: "A"
18601867
k: "hello"
18611868
- match:
18621869
hits.hits.0.fields:
18631870
c.copy.keyword: [ "hello" ]
18641871

18651872
- match:
18661873
hits.hits.1._source:
1874+
name: "B"
18671875
k: ["55", "66"]
18681876
- match:
18691877
hits.hits.1.fields:
18701878
c.copy.keyword: [ "55", "66" ]
18711879

18721880
- match:
18731881
hits.hits.2._source:
1882+
name: "C"
18741883
k: "hello"
18751884
c:
18761885
copy: "zap"
@@ -1892,6 +1901,8 @@ synthetic_source with copy_to pointing inside dynamic object:
18921901
_source:
18931902
mode: synthetic
18941903
properties:
1904+
name:
1905+
type: keyword
18951906
k:
18961907
type: keyword
18971908
copy_to: c.copy
@@ -1902,6 +1913,7 @@ synthetic_source with copy_to pointing inside dynamic object:
19021913
id: 1
19031914
refresh: true
19041915
body:
1916+
name: "A"
19051917
k: "hello"
19061918

19071919
- do:
@@ -1910,6 +1922,7 @@ synthetic_source with copy_to pointing inside dynamic object:
19101922
id: 2
19111923
refresh: true
19121924
body:
1925+
name: "B"
19131926
k: ["55", "66"]
19141927

19151928
- do:
@@ -1918,32 +1931,37 @@ synthetic_source with copy_to pointing inside dynamic object:
19181931
id: 3
19191932
refresh: true
19201933
body:
1934+
name: "C"
19211935
k: "hello"
19221936
c:
19231937
copy: "zap"
19241938

19251939
- do:
19261940
search:
19271941
index: test
1942+
sort: name
19281943
body:
19291944
docvalue_fields: [ "c.copy.keyword" ]
19301945

19311946
- match:
19321947
hits.hits.0._source:
1948+
name: "A"
19331949
k: "hello"
19341950
- match:
19351951
hits.hits.0.fields:
19361952
c.copy.keyword: [ "hello" ]
19371953

19381954
- match:
19391955
hits.hits.1._source:
1956+
name: "B"
19401957
k: ["55", "66"]
19411958
- match:
19421959
hits.hits.1.fields:
19431960
c.copy.keyword: [ "55", "66" ]
19441961

19451962
- match:
19461963
hits.hits.2._source:
1964+
name: "C"
19471965
k: "hello"
19481966
c:
19491967
copy: "zap"

0 commit comments

Comments
 (0)