From 7e95abff62564dbe683ee2359aa69769cab4dc0d Mon Sep 17 00:00:00 2001 From: husharp Date: Mon, 8 Apr 2024 14:48:38 +0800 Subject: [PATCH] fix Signed-off-by: husharp --- tests/server/api/rule_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/server/api/rule_test.go b/tests/server/api/rule_test.go index 83ab0f1cebb..f21ecd3fba2 100644 --- a/tests/server/api/rule_test.go +++ b/tests/server/api/rule_test.go @@ -1261,6 +1261,13 @@ func (suite *ruleTestSuite) postAndCheckRuleBundle(urlPrefix string, bundle []pl err = tu.CheckGetJSON(testDialClient, urlPrefix+"/config/placement-rule", nil, tu.StatusOK(re), tu.ExtractJSON(re, &respBundle)) re.NoError(err) + // skip default rule check + for i := range respBundle { + if respBundle[i].ID == placement.DefaultGroupID { + respBundle = append(respBundle[:i], respBundle[i+1:]...) + break + } + } if len(respBundle) != len(bundle) { return false }