mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Merge pull request #129662 from utam0k/qhint-prefix
Put the target plugin names in the Qhint integration test cases
This commit is contained in:
commit
d12c3c3742
@ -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)
|
||||
})
|
||||
|
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user