Add additional testing scenarios for compute resource requests=0

This commit is contained in:
derekwaynecarr
2016-06-22 17:20:42 -04:00
parent 444ce19353
commit a04e6f8635
2 changed files with 17 additions and 6 deletions

View File

@@ -123,6 +123,12 @@ func TestGetPodQos(t *testing.T) {
}),
expected: Burstable,
},
{
pod: newPod("burstable", []api.Container{
newContainer("burstable", getResourceList("0", "0"), getResourceList("100m", "200Mi")),
}),
expected: Burstable,
},
}
for _, testCase := range testCases {
if actual := GetPodQos(testCase.pod); testCase.expected != actual {