You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: qa/smoke-test-ingest-with-all-dependencies/src/yamlRestTest/resources/rest-api-spec/test/ingest/80_ingest_simulate.yml
"Test ingest simulate with mapping addition for data streams when write index has different mapping":
1806
+
# In this test, we make sure that when the index template is a data stream template, simulate ingest works the same whether the data
1807
+
# stream has been created or not -- either way, we expect it to use the template rather than the data stream / index mappings and settings.
1808
+
1809
+
- skip:
1810
+
features:
1811
+
- headers
1812
+
- allowed_warnings
1813
+
1814
+
- do:
1815
+
cluster.put_component_template:
1816
+
name: mappings_template
1817
+
body:
1818
+
template:
1819
+
mappings:
1820
+
dynamic: strict
1821
+
properties:
1822
+
foo:
1823
+
type: boolean
1824
+
bar:
1825
+
type: boolean
1826
+
1827
+
- do:
1828
+
allowed_warnings:
1829
+
- "index template [my-template-1] has index patterns [simple-data-stream1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-1] will take precedence during new index creation"
1830
+
indices.put_index_template:
1831
+
name: my-template-1
1832
+
body:
1833
+
index_patterns: [simple-data-stream1]
1834
+
composed_of:
1835
+
- mappings_template
1836
+
data_stream: {}
1837
+
1838
+
- do:
1839
+
indices.create_data_stream:
1840
+
name: simple-data-stream1
1841
+
- is_true: acknowledged
1842
+
1843
+
- do:
1844
+
cluster.health:
1845
+
wait_for_status: yellow
1846
+
1847
+
# Now that the data stream exists, we change the template to remove the mapping for bar. The write index still has the
1848
+
# old mapping.
1849
+
- do:
1850
+
cluster.put_component_template:
1851
+
name: mappings_template
1852
+
body:
1853
+
template:
1854
+
mappings:
1855
+
properties:
1856
+
foo:
1857
+
type: boolean
1858
+
1859
+
# We expect the mapping_addition to be added to the mapping of the write index, which has a boolean bar field. So this
0 commit comments