Merge pull request #129662 from utam0k/qhint-prefix

Put the target plugin names in the Qhint integration test cases
This commit is contained in:
Kubernetes Prow Robot 2025-01-19 06:08:35 -08:00 committed by GitHub
commit d12c3c3742
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)
})