Put the target plugin names in the Qhint integration test cases

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
utam0k 2025-01-16 21:53:50 +09:00
parent 63cb5837dd
commit e1fdced21f
No known key found for this signature in database
GPG Key ID: 2DB29D2A21B41E0E
2 changed files with 4 additions and 3 deletions

View File

@ -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)
})

View File

@ -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)
})