Skip to content

Commit

Permalink
Don't check ILM policies on 8.15+ (#13678)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmik authored Jul 12, 2024
1 parent 4b471fa commit ef0d5dc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion testing/smoke/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
Expand Down

0 comments on commit ef0d5dc

Please sign in to comment.