Adding details to Conformance Tests using RFC 2119 standards.

This commit is contained in:
Srini Brahmaroutu 2018-02-27 17:29:36 -08:00
parent 4378a999e1
commit 9bb3332c63

View File

@ -219,9 +219,9 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() {
// 4. Create another pod with no affinity to any node that need 50% of the largest node CPU. // 4. Create another pod with no affinity to any node that need 50% of the largest node CPU.
// 5. Make sure this additional pod is not scheduled. // 5. Make sure this additional pod is not scheduled.
/* /*
Testname: scheduler-resource-limits Release : v1.9
Description: Ensure that scheduler accounts node resources correctly Testname: Scheduler, resource limits
and respects pods' resource requirements during scheduling. Description: Scheduling Pods MUST fail if the resource limits exceed Machine capacity.
*/ */
framework.ConformanceIt("validates resource limits of pods that are allowed to run ", func() { framework.ConformanceIt("validates resource limits of pods that are allowed to run ", func() {
framework.WaitForStableCluster(cs, masterNodes) framework.WaitForStableCluster(cs, masterNodes)
@ -325,9 +325,9 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() {
// Test Nodes does not have any label, hence it should be impossible to schedule Pod with // Test Nodes does not have any label, hence it should be impossible to schedule Pod with
// nonempty Selector set. // nonempty Selector set.
/* /*
Testname: scheduler-node-selector-not-matching Release : v1.9
Description: Ensure that scheduler respects the NodeSelector field of Testname: Scheduler, node selector not matching
PodSpec during scheduling (when it does not match any node). Description: Create a Pod with a NodeSelector set to a value that does not match a node in the cluster. Since there are no nodes matching the criteria the Pod MUST not be scheduled.
*/ */
framework.ConformanceIt("validates that NodeSelector is respected if not matching ", func() { framework.ConformanceIt("validates that NodeSelector is respected if not matching ", func() {
By("Trying to schedule Pod with nonempty NodeSelector.") By("Trying to schedule Pod with nonempty NodeSelector.")
@ -348,9 +348,9 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() {
}) })
/* /*
Testname: scheduler-node-selector-matching Release : v1.9
Description: Ensure that scheduler respects the NodeSelector field Testname: Scheduler, node selector matching
of PodSpec during scheduling (when it matches). Description: Create a label on the node {k: v}. Then create a Pod with a NodeSelector set to {k: v}. Check to see if the Pod is scheduled. When the NodeSelector matches then Pod MUST be scheduled on that node.
*/ */
framework.ConformanceIt("validates that NodeSelector is respected if matching ", func() { framework.ConformanceIt("validates that NodeSelector is respected if matching ", func() {
nodeName := GetNodeThatCanRunPod(f) nodeName := GetNodeThatCanRunPod(f)