// 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.")
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(){