From 327f7effb30e2906f4918647f3d3663766afe4a2 Mon Sep 17 00:00:00 2001 From: Shawn Sun <32376495+ssz1997@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:14:08 -0700 Subject: [PATCH] skip px sa token refresh integration test if version prior to 24.2 (#1616) Signed-off-by: shsun_pure Co-authored-by: shsun_pure --- test/integration_test/basic_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integration_test/basic_test.go b/test/integration_test/basic_test.go index f5620e698..af5939daa 100644 --- a/test/integration_test/basic_test.go +++ b/test/integration_test/basic_test.go @@ -162,6 +162,13 @@ var testStorageClusterBasicCases = []types.TestCase{ }, }, }), + ShouldSkip: func(tc *types.TestCase) bool { + skip := ci_utils.PxOperatorVersion.LessThan(ci_utils.PxOperatorVer24_2_0) + if skip { + logrus.Info("Skipping BasicInstallWithPxSaTokenRefresh, because PX Operator version is less than 24.2.0") + } + return skip + }, TestFunc: BasicInstallWithPxSaTokenRefresh, }, {