Skip to content

Commit b32b5bd

Browse files
committed
test: add back support from upgrading from 7
this is still supported until 9 is out
1 parent 523e00e commit b32b5bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

testing/smoke/basic-upgrade/test.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ fi
1616
MAJOR_VERSION=$(echo ${VERSION} | cut -d '.' -f1 )
1717
MINOR_VERSION=$(echo ${VERSION} | cut -d '.' -f2 )
1818

19-
if [[ ${MAJOR_VERSION} -eq 8 ]] || [[ ${MAJOR_VERSION} -eq 9 ]]; then
19+
if [[ ${MAJOR_VERSION} -eq 7 ]]; then
20+
ASSERT_EVENTS_FUNC=legacy_assertions
21+
INTEGRATIONS_SERVER=false
22+
get_latest_patch "${MAJOR_VERSION}.${MINOR_VERSION}"
23+
LATEST_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${LATEST_PATCH}
24+
PREV_LATEST_VERSION=$(echo ${MAJOR_VERSION}.${MINOR_VERSION}.$(( ${LATEST_PATCH} -1 )))
25+
elif [[ ${MAJOR_VERSION} -eq 8 ]] || [[ ${MAJOR_VERSION} -eq 9 ]]; then
2026
ASSERT_EVENTS_FUNC=data_stream_assertions
2127
INTEGRATIONS_SERVER=true
2228

0 commit comments

Comments
 (0)