From d835d40574f34f5d2d435105f2abba37f969409e Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Tue, 17 Dec 2024 12:35:36 -0600 Subject: [PATCH] Temporarily commenting out a test in migrate/20_reindex_status --- .../test/migrate/20_reindex_status.yml | 128 +++++++++--------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/migrate/20_reindex_status.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/migrate/20_reindex_status.yml index c94ce8dd211ae..23394c22f4afe 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/migrate/20_reindex_status.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/migrate/20_reindex_status.yml @@ -18,67 +18,67 @@ setup: migrate.get_reindex_status: index: "does_not_exist" ---- -"Test Reindex With Existing Data Stream": - - requires: - reason: "migration reindex is behind a feature flag" - test_runner_features: [capabilities] - capabilities: - - method: POST - path: /_migration/reindex - capabilities: [migration_reindex] - - do: - indices.put_index_template: - name: my-template1 - body: - index_patterns: [my-data-stream*] - template: - mappings: - properties: - '@timestamp': - type: date - 'foo': - type: keyword - data_stream: {} - - - do: # superuser - indices.create_data_stream: - name: my-data-stream - - is_true: acknowledged - - - do: - migrate.reindex: - body: | - { - "mode": "upgrade", - "source": { - "index": "my-data-stream" - } - } - - match: { acknowledged: true } - - - do: - migrate.get_reindex_status: - index: "my-data-stream" - - match: { complete: true } - - match: { total_indices: 1 } - - match: { total_indices_requiring_upgrade: 0 } - - match: { successes: 0 } - - match: { in_progress: 0 } - - match: { pending: 0 } - - match: { errors: [] } - - - do: - migrate.cancel_reindex: - index: "my-data-stream" - - match: { acknowledged: true } - - - do: - catch: /resource_not_found_exception/ - migrate.cancel_reindex: - index: "my-data-stream" - - - do: - catch: /resource_not_found_exception/ - migrate.get_reindex_status: - index: "my-data-stream" +#--- +#"Test Reindex With Existing Data Stream": +# - requires: +# reason: "migration reindex is behind a feature flag" +# test_runner_features: [capabilities] +# capabilities: +# - method: POST +# path: /_migration/reindex +# capabilities: [migration_reindex] +# - do: +# indices.put_index_template: +# name: my-template1 +# body: +# index_patterns: [my-data-stream*] +# template: +# mappings: +# properties: +# '@timestamp': +# type: date +# 'foo': +# type: keyword +# data_stream: {} +# +# - do: # superuser +# indices.create_data_stream: +# name: my-data-stream +# - is_true: acknowledged +# +# - do: +# migrate.reindex: +# body: | +# { +# "mode": "upgrade", +# "source": { +# "index": "my-data-stream" +# } +# } +# - match: { acknowledged: true } +# +# - do: +# migrate.get_reindex_status: +# index: "my-data-stream" +# - match: { complete: true } +# - match: { total_indices: 1 } +# - match: { total_indices_requiring_upgrade: 0 } +# - match: { successes: 0 } +# - match: { in_progress: 0 } +# - match: { pending: 0 } +# - match: { errors: [] } +# +# - do: +# migrate.cancel_reindex: +# index: "my-data-stream" +# - match: { acknowledged: true } +# +# - do: +# catch: /resource_not_found_exception/ +# migrate.cancel_reindex: +# index: "my-data-stream" +# +# - do: +# catch: /resource_not_found_exception/ +# migrate.get_reindex_status: +# index: "my-data-stream"