From 44c38070982be7f000a8a025b03c49d2da4e27ee Mon Sep 17 00:00:00 2001 From: mani Date: Wed, 29 Apr 2026 17:16:25 +0530 Subject: [PATCH 1/2] [YUNIKORN-3263] Remove code: statedumps in core repo --- pkg/scheduler/context_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/scheduler/context_test.go b/pkg/scheduler/context_test.go index 04287f31f..f5e4196a5 100644 --- a/pkg/scheduler/context_test.go +++ b/pkg/scheduler/context_test.go @@ -216,13 +216,11 @@ func TestContext_AddRMBuildInformation(t *testing.T) { buildInfoMap1 := make(map[string]string) buildInfoMap1["buildDate"] = "2006-01-02T15:04:05-0700" buildInfoMap1["buildVersion"] = "latest" - buildInfoMap1["isPluginVersion"] = "false" rmID2 := "myCluster2" buildInfoMap2 := make(map[string]string) buildInfoMap2["buildDate"] = "2022-01-02T15:04:05-0700" buildInfoMap2["buildVersion"] = "latest" - buildInfoMap2["isPluginVersion"] = "true" context.SetRMInfo(rmID1, buildInfoMap1) assert.Equal(t, 1, len(context.rmInfo)) @@ -240,7 +238,6 @@ func TestContext_AddRMBuildInformation(t *testing.T) { // since we store the pointer and not a copy we need to create a new object to replace the old one buildInfoMap3 := make(map[string]string) buildInfoMap3["buildDate"] = "2022-01-02T19:04:05-0700" - buildInfoMap3["isPluginVersion"] = "true" buildInfoMap3["buildVersion"] = "1.0.0" context.SetRMInfo(rmID2, buildInfoMap3) assert.Equal(t, 2, len(context.rmInfo)) From ef4e116709abbbe6d52106a0fd5d27740d223006 Mon Sep 17 00:00:00 2001 From: mani Date: Wed, 29 Apr 2026 17:19:24 +0530 Subject: [PATCH 2/2] [YUNIKORN-3263] Remove code: statedumps in core repo --- pkg/webservice/handlers_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/webservice/handlers_test.go b/pkg/webservice/handlers_test.go index e72cf8b75..db305793c 100644 --- a/pkg/webservice/handlers_test.go +++ b/pkg/webservice/handlers_test.go @@ -605,7 +605,6 @@ func TestGetClusterUtilJSON(t *testing.T) { buildInfoMap := make(map[string]string) buildInfoMap["buildDate"] = "2006-01-02T15:04:05-0700" buildInfoMap["buildVersion"] = "latest" - buildInfoMap["isPluginVersion"] = "false" schedulerContext.Load().SetRMInfo(rmID, buildInfoMap) rmBuildInformationMaps := getRMBuildInformation(nil) assert.Equal(t, 0, len(rmBuildInformationMaps)) @@ -615,7 +614,6 @@ func TestGetClusterUtilJSON(t *testing.T) { assert.Equal(t, 1, len(rmBuildInformationMaps)) assert.Equal(t, rmBuildInformationMaps[0]["buildDate"], buildInfoMap["buildDate"]) assert.Equal(t, rmBuildInformationMaps[0]["buildVersion"], buildInfoMap["buildVersion"]) - assert.Equal(t, rmBuildInformationMaps[0]["isPluginVersion"], buildInfoMap["isPluginVersion"]) assert.Equal(t, rmBuildInformationMaps[0]["rmId"], rmID) // Check test partitions