Merge pull request #80545 from spiffxp/promote-preemption-tests

Promote SchedulerPreemption e2e tests to Conformance
This commit is contained in:
Kubernetes Prow Robot 2020-06-02 15:28:16 -07:00 committed by GitHub
commit bb11561ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 8 deletions

View File

@ -1919,6 +1919,22 @@
number of Replicas.
release: v1.19
file: test/e2e/scheduling/preemption.go
- testname: Scheduler, Basic Preemption
codename: '[sig-scheduling] SchedulerPreemption [Serial] validates basic preemption
works [Conformance]'
description: When a higher priority pod is created and no node with enough resources
is found, the scheduler MUST preempt a lower priority pod and schedule the high
priority pod.
release: v1.19
file: test/e2e/scheduling/preemption.go
- testname: Scheduler, Preemption for critical pod
codename: '[sig-scheduling] SchedulerPreemption [Serial] validates lower priority
pod preemption by critical pod [Conformance]'
description: When a critical pod is created and no node with enough resources is
found, the scheduler MUST preempt a lower priority pod to schedule the critical
pod.
release: v1.19
file: test/e2e/scheduling/preemption.go
- testname: ConfigMap Volume, text data, binary data
codename: '[sig-storage] ConfigMap binary data should be reflected in volume [NodeConformance]
[Conformance]'

View File

@ -103,10 +103,14 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
framework.ExpectNoError(err)
})
// This test verifies that when a higher priority pod is created and no node with
// enough resources is found, scheduler preempts a lower priority pod to schedule
// the high priority pod.
ginkgo.It("validates basic preemption works", func() {
/*
Release : v1.19
Testname: Scheduler, Basic Preemption
Description: When a higher priority pod is created and no node with enough
resources is found, the scheduler MUST preempt a lower priority pod and
schedule the high priority pod.
*/
framework.ConformanceIt("validates basic preemption works", func() {
var podRes v1.ResourceList
// Create one pod per node that uses a lot of the node's resources.
@ -186,10 +190,14 @@ var _ = SIGDescribe("SchedulerPreemption [Serial]", func() {
framework.ExpectEqual(podPreempted, true)
})
// This test verifies that when a critical pod is created and no node with
// enough resources is found, scheduler preempts a lower priority pod to schedule
// this critical pod.
ginkgo.It("validates lower priority pod preemption by critical pod", func() {
/*
Release : v1.19
Testname: Scheduler, Preemption for critical pod
Description: When a critical pod is created and no node with enough
resources is found, the scheduler MUST preempt a lower priority pod to
schedule the critical pod.
*/
framework.ConformanceIt("validates lower priority pod preemption by critical pod", func() {
var podRes v1.ResourceList
ginkgo.By("Create pods that use 2/3 of node resources.")