Commit 6b3a3452 authored by jianglingxia's avatar jianglingxia

Add UT test in qos if pod has one container

parent 15b7d466
......@@ -66,6 +66,12 @@ func TestGetPodQOS(t *testing.T) {
expected: v1.PodQOSBestEffort,
},
{
pod: newPod("best-effort", []v1.Container{
newContainer("best-effort", getResourceList("", ""), getResourceList("", "")),
}),
expected: v1.PodQOSBestEffort,
},
{
pod: newPod("best-effort-best-effort-with-gpu", []v1.Container{
newContainer("best-effort", getResourceList("", ""), addResource("nvidia-gpu", "2", getResourceList("", ""))),
newContainer("best-effort", getResourceList("", ""), getResourceList("", "")),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment