@@ -18,67 +18,67 @@ setup:
1818 migrate.get_reindex_status :
1919 index : " does_not_exist"
2020
21- ---
22- " Test Reindex With Existing Data Stream " :
23- - requires :
24- reason : " migration reindex is behind a feature flag"
25- test_runner_features : [capabilities]
26- capabilities :
27- - method : POST
28- path : /_migration/reindex
29- capabilities : [migration_reindex]
30- - do :
31- indices.put_index_template :
32- name : my-template1
33- body :
34- index_patterns : [my-data-stream*]
35- template :
36- mappings :
37- properties :
38- ' @timestamp ' :
39- type : date
40- ' foo ' :
41- type : keyword
42- data_stream : {}
43-
44- - do : # superuser
45- indices.create_data_stream :
46- name : my-data-stream
47- - is_true : acknowledged
48-
49- - do :
50- migrate.reindex :
51- body : |
52- {
53- "mode": "upgrade",
54- "source": {
55- "index": "my-data-stream"
56- }
57- }
58- - match : { acknowledged: true }
59-
60- - do :
61- migrate.get_reindex_status :
62- index : " my-data-stream"
63- - match : { complete: true }
64- - match : { total_indices: 1 }
65- - match : { total_indices_requiring_upgrade: 0 }
66- - match : { successes: 0 }
67- - match : { in_progress: 0 }
68- - match : { pending: 0 }
69- - match : { errors: [] }
70-
71- - do :
72- migrate.cancel_reindex :
73- index : " my-data-stream"
74- - match : { acknowledged: true }
75-
76- - do :
77- catch : /resource_not_found_exception/
78- migrate.cancel_reindex :
79- index : " my-data-stream"
80-
81- - do :
82- catch : /resource_not_found_exception/
83- migrate.get_reindex_status :
84- index : " my-data-stream"
21+ # ---
22+ # "Test Reindex With Existing Data Stream":
23+ # - requires:
24+ # reason: "migration reindex is behind a feature flag"
25+ # test_runner_features: [capabilities]
26+ # capabilities:
27+ # - method: POST
28+ # path: /_migration/reindex
29+ # capabilities: [migration_reindex]
30+ # - do:
31+ # indices.put_index_template:
32+ # name: my-template1
33+ # body:
34+ # index_patterns: [my-data-stream*]
35+ # template:
36+ # mappings:
37+ # properties:
38+ # '@timestamp':
39+ # type: date
40+ # 'foo':
41+ # type: keyword
42+ # data_stream: {}
43+ #
44+ # - do: # superuser
45+ # indices.create_data_stream:
46+ # name: my-data-stream
47+ # - is_true: acknowledged
48+ #
49+ # - do:
50+ # migrate.reindex:
51+ # body: |
52+ # {
53+ # "mode": "upgrade",
54+ # "source": {
55+ # "index": "my-data-stream"
56+ # }
57+ # }
58+ # - match: { acknowledged: true }
59+ #
60+ # - do:
61+ # migrate.get_reindex_status:
62+ # index: "my-data-stream"
63+ # - match: { complete: true }
64+ # - match: { total_indices: 1 }
65+ # - match: { total_indices_requiring_upgrade: 0 }
66+ # - match: { successes: 0 }
67+ # - match: { in_progress: 0 }
68+ # - match: { pending: 0 }
69+ # - match: { errors: [] }
70+ #
71+ # - do:
72+ # migrate.cancel_reindex:
73+ # index: "my-data-stream"
74+ # - match: { acknowledged: true }
75+ #
76+ # - do:
77+ # catch: /resource_not_found_exception/
78+ # migrate.cancel_reindex:
79+ # index: "my-data-stream"
80+ #
81+ # - do:
82+ # catch: /resource_not_found_exception/
83+ # migrate.get_reindex_status:
84+ # index: "my-data-stream"
0 commit comments