update unit test for hugepage resourceQuota support

This commit is contained in:
lichuqiang
2017-11-13 09:37:20 +08:00
parent e9ff036e8a
commit 1029b54770
3 changed files with 59 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ func TestIsStandardResource(t *testing.T) {
{"blah", false},
{"x.y.z", false},
{"hugepages-2Mi", true},
{"requests.hugepages-2Mi", true},
}
for i, tc := range testCases {
if IsStandardResourceName(tc.input) != tc.output {