Skip to content

Commit b3c559e

Browse files
committed
Promote this snippet into being a proper TEARDOWN
1 parent 8708721 commit b3c559e

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/reference/data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ being managed by data stream lifecycle. As we'll see, {ilm-init} and data stream
1111
can co-manage a data stream; however, an index can only be managed by one system at
1212
a time.
1313

14+
[source,console]
15+
--------------------------------------------------
16+
DELETE _data_stream/dsl-data-stream
17+
DELETE _index_template/dsl-data-stream-template
18+
DELETE _ilm/policy/pre-dsl-ilm-policy
19+
--------------------------------------------------
20+
// TEARDOWN
21+
22+
//////////////////////////
23+
1424
[discrete]
1525
[[migrate-dsl-ilm-tldr]]
1626
==== TL;DR
@@ -488,15 +498,3 @@ GET _data_stream/dsl-data-stream
488498
Had we removed the {ilm-init} policy from the index template when we <<update-index-template-for-dsl, updated>>
489499
it, the write index of the data stream will now be `Unmanaged` because the index
490500
wouldn't have the {ilm-init} policy configured to fallback onto.
491-
492-
//////////////////////////
493-
[source,console]
494-
--------------------------------------------------
495-
DELETE _data_stream/dsl-data-stream
496-
DELETE _index_template/dsl-data-stream-template
497-
DELETE _ilm/policy/pre-dsl-ilm-policy
498-
--------------------------------------------------
499-
// TEST[continued]
500-
501-
//////////////////////////
502-

0 commit comments

Comments
 (0)