Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate.cancel_reindex":{
"indices.cancel_migrate_reindex":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description":"This API returns the status of a migration reindex attempt for a data stream or index"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate.create_from":{
"indices.create_from":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description":"This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate.get_reindex_status":{
"indices.get_migrate_reindex_status":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description":"This API returns the status of a migration reindex attempt for a data stream or index"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate.reindex":{
"indices.migrate_reindex":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html",
"description":"This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ setup:
capabilities: [migration_reindex]
- do:
catch: /illegal_argument_exception/
migrate.reindex:
indices.migrate_reindex:
body: |
{
"mode": "unsupported_mode",
Expand All @@ -35,7 +35,7 @@ setup:
capabilities: [migration_reindex]
- do:
catch: /resource_not_found_exception/
migrate.reindex:
indices.migrate_reindex:
body: |
{
"mode": "upgrade",
Expand All @@ -46,7 +46,7 @@ setup:

- do:
catch: /resource_not_found_exception/
migrate.reindex:
indices.migrate_reindex:
body: |
{
"mode": "upgrade",
Expand All @@ -67,7 +67,7 @@ setup:
capabilities: [migration_reindex]
- do:
catch: /illegal_argument_exception/
migrate.reindex:
indices.migrate_reindex:
body: |
{
"mode": "upgrade",
Expand Down Expand Up @@ -105,7 +105,7 @@ setup:
- is_true: acknowledged

- do:
migrate.reindex:
indices.migrate_reindex:
body: |
{
"mode": "upgrade",
Expand All @@ -116,11 +116,11 @@ setup:
- match: { acknowledged: true }

- do:
migrate.cancel_reindex:
indices.cancel_migrate_reindex:
index: "my-data-stream"
- match: { acknowledged: true }

- do:
catch: /resource_not_found_exception/
migrate.cancel_reindex:
indices.cancel_migrate_reindex:
index: "my-data-stream"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ setup:
capabilities: [migration_reindex]
- do:
catch: /resource_not_found_exception/
migrate.get_reindex_status:
indices.get_migrate_reindex_status:
index: "does_not_exist"

---
Expand Down Expand Up @@ -47,7 +47,7 @@ setup:
- is_true: acknowledged

- do:
migrate.reindex:
indices.migrate_reindex:
body: |
{
"mode": "upgrade",
Expand All @@ -58,7 +58,7 @@ setup:
- match: { acknowledged: true }

- do:
migrate.get_reindex_status:
indices.get_migrate_reindex_status:
index: "my-data-stream"
- match: { complete: true }
- match: { total_indices_in_data_stream: 1 }
Expand All @@ -69,16 +69,16 @@ setup:
- match: { errors: [] }

- do:
migrate.cancel_reindex:
indices.cancel_migrate_reindex:
index: "my-data-stream"
- match: { acknowledged: true }

- do:
catch: /resource_not_found_exception/
migrate.cancel_reindex:
indices.cancel_migrate_reindex:
index: "my-data-stream"

- do:
catch: /resource_not_found_exception/
migrate.get_reindex_status:
indices.get_migrate_reindex_status:
index: "my-data-stream"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ teardown:
capabilities: [migration_reindex]
- do:
catch: /index_not_found_exception/
migrate.create_from:
indices.create_from:
source: "does_not_exist"
dest: "dest1"

Expand All @@ -53,7 +53,7 @@ teardown:
bar:
type: text
- do:
migrate.create_from:
indices.create_from:
source: "source-index-1"
dest: "dest-index-1"
- do:
Expand Down Expand Up @@ -91,7 +91,7 @@ teardown:
foo:
type: boolean
- do:
migrate.create_from:
indices.create_from:
source: "source-index-1"
dest: "dest-index-1"
body:
Expand Down Expand Up @@ -139,7 +139,7 @@ teardown:
number_of_shards: 1
number_of_replicas: 0
- do:
migrate.create_from:
indices.create_from:
source: "source-index-1"
dest: "dest-index-1"
body:
Expand Down