Skip to content

Commit

Permalink
Temporarily commenting out a test in migrate/20_reindex_status
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Dec 17, 2024
1 parent cfbc414 commit d835d40
Showing 1 changed file with 64 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit d835d40

Please sign in to comment.