From ef0d5dc25a7a67146945d60e94f10c4c145efb71 Mon Sep 17 00:00:00 2001 From: Victor Michel Date: Thu, 11 Jul 2024 22:35:18 -0700 Subject: [PATCH] Don't check ILM policies on 8.15+ (#13678) --- testing/smoke/lib.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/testing/smoke/lib.sh b/testing/smoke/lib.sh index 3d456cad278..12cd241e9f0 100644 --- a/testing/smoke/lib.sh +++ b/testing/smoke/lib.sh @@ -332,7 +332,15 @@ legacy_assertions() { data_stream_assertions() { local VERSION=${1} local ENTRIES=${2} - data_stream_assert_templates_ilm ${VERSION} + + local MAJOR MINOR + MAJOR=$(echo $VERSION | cut -d. -f1) + MINOR=$(echo $VERSION | cut -d. -f2) + + # Starting from 8.15 we use data stream lifecycle management. + if [ $MAJOR -eq 8 ] && [ $MINOR -lt 15 ] || [ $MAJOR -lt 8 ]; then + data_stream_assert_templates_ilm ${VERSION} + fi data_stream_assert_pipelines data_stream_assert_events ${VERSION} ${ENTRIES} }