From e1fdced21f38c4592d22c263d4d8475390b55005 Mon Sep 17 00:00:00 2001 From: utam0k Date: Thu, 16 Jan 2025 21:53:50 +0900 Subject: [PATCH] Put the target plugin names in the Qhint integration test cases Signed-off-by: utam0k --- test/integration/scheduler/queueing/former/queue_test.go | 3 ++- .../integration/scheduler/queueing/queueinghint/queue_test.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/integration/scheduler/queueing/former/queue_test.go b/test/integration/scheduler/queueing/former/queue_test.go index a94f8f08452..dc4538c0409 100644 --- a/test/integration/scheduler/queueing/former/queue_test.go +++ b/test/integration/scheduler/queueing/former/queue_test.go @@ -17,6 +17,7 @@ limitations under the License. package queueing import ( + "strings" "testing" utilfeature "k8s.io/apiserver/pkg/util/feature" @@ -35,7 +36,7 @@ func TestCoreResourceEnqueueWithQueueingHints(t *testing.T) { } // Note: if EnableSchedulingQueueHint is nil, we assume the test should be run both with/without the feature gate. - t.Run(tt.Name, func(t *testing.T) { + t.Run(strings.Join(append(tt.EnablePlugins, tt.Name), "/"), func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SchedulerQueueingHints, false) queueing.RunTestCoreResourceEnqueue(t, tt) }) diff --git a/test/integration/scheduler/queueing/queueinghint/queue_test.go b/test/integration/scheduler/queueing/queueinghint/queue_test.go index 4c30d463675..41752a01627 100644 --- a/test/integration/scheduler/queueing/queueinghint/queue_test.go +++ b/test/integration/scheduler/queueing/queueinghint/queue_test.go @@ -17,6 +17,7 @@ limitations under the License. package queueing import ( + "strings" "testing" utilfeature "k8s.io/apiserver/pkg/util/feature" @@ -34,8 +35,7 @@ func TestCoreResourceEnqueue(t *testing.T) { continue } // Note: if EnableSchedulingQueueHint is nil, we assume the test should be run both with/without the feature gate. - - t.Run(tt.Name, func(t *testing.T) { + t.Run(strings.Join(append(tt.EnablePlugins, tt.Name), "/"), func(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SchedulerQueueingHints, true) queueing.RunTestCoreResourceEnqueue(t, tt) })