UPSTREAM: <drop>: STORAGE ephemeral storage tests
@@ -493,11 +493,13 @@ func TestMachineInfo(t *testing.T) {
Status: v1.NodeStatus{
Capacity: v1.ResourceList{
v1.ResourceCPU: *resource.NewMilliQuantity(2000, resource.DecimalSI),
+ v1.ResourceEphemeralStorage: *resource.NewQuantity(5000, resource.BinarySI),
v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI),
v1.ResourcePods: *resource.NewQuantity(110, resource.DecimalSI),
},
Allocatable: v1.ResourceList{
v1.ResourceCPU: *resource.NewMilliQuantity(2000, resource.DecimalSI),
+ v1.ResourceEphemeralStorage: *resource.NewQuantity(5000, resource.BinarySI),
v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI),
v1.ResourcePods: *resource.NewQuantity(110, resource.DecimalSI),
},
@@ -948,7 +950,7 @@ func TestReadyCondition(t *testing.T) {
{
desc: "new, not ready: missing capacities",
node: &v1.Node{},
- expectConditions: []v1.NodeCondition{*makeReadyCondition(false, "Missing node capacity for resources: cpu, memory, pods", now, now)},
+ expectConditions: []v1.NodeCondition{*makeReadyCondition(false, "Missing node capacity for resources: cpu, memory, pods, ephemeral-storage", now, now)},
},
// the transition tests ensure timestamps are set correctly, no need to test the entire condition matrix in this section
{
