@@ -220,6 +220,12 @@ func TestCollect(t *testing.T) {
220220 propertyprovider .NodeCountProperty : {
221221 Value : "2" ,
222222 },
223+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
224+ Value : "1" ,
225+ },
226+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU2 )): {
227+ Value : "1" ,
228+ },
223229 PerCPUCoreCostProperty : {
224230 Value : "0.167" ,
225231 },
@@ -311,6 +317,12 @@ func TestCollect(t *testing.T) {
311317 propertyprovider .NodeCountProperty : {
312318 Value : "2" ,
313319 },
320+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
321+ Value : "1" ,
322+ },
323+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU2 )): {
324+ Value : "1" ,
325+ },
314326 PerCPUCoreCostProperty : {
315327 Value : "0.167" ,
316328 },
@@ -391,6 +403,9 @@ func TestCollect(t *testing.T) {
391403 propertyprovider .NodeCountProperty : {
392404 Value : "2" ,
393405 },
406+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU3 )): {
407+ Value : "2" ,
408+ },
394409 },
395410 Resources : clusterv1beta1.ResourceUsage {
396411 Capacity : corev1.ResourceList {
@@ -467,6 +482,12 @@ func TestCollect(t *testing.T) {
467482 propertyprovider .NodeCountProperty : {
468483 Value : "2" ,
469484 },
485+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
486+ Value : "1" ,
487+ },
488+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU3 )): {
489+ Value : "1" ,
490+ },
470491 },
471492 Resources : clusterv1beta1.ResourceUsage {
472493 Capacity : corev1.ResourceList {
@@ -540,6 +561,12 @@ func TestCollect(t *testing.T) {
540561 propertyprovider .NodeCountProperty : {
541562 Value : "2" ,
542563 },
564+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
565+ Value : "1" ,
566+ },
567+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , trackers .ReservedNameForUndefinedSKU )): {
568+ Value : "1" ,
569+ },
543570 },
544571 Resources : clusterv1beta1.ResourceUsage {
545572 Capacity : corev1.ResourceList {
@@ -616,6 +643,12 @@ func TestCollect(t *testing.T) {
616643 propertyprovider .NodeCountProperty : {
617644 Value : "2" ,
618645 },
646+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
647+ Value : "1" ,
648+ },
649+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeKnownMissingSKU )): {
650+ Value : "1" ,
651+ },
619652 },
620653 Resources : clusterv1beta1.ResourceUsage {
621654 Capacity : corev1.ResourceList {
@@ -653,6 +686,12 @@ func TestCollect(t *testing.T) {
653686 propertyprovider .NodeCountProperty : {
654687 Value : "2" ,
655688 },
689+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
690+ Value : "1" ,
691+ },
692+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU2 )): {
693+ Value : "1" ,
694+ },
656695 PerCPUCoreCostProperty : {
657696 Value : "0.167" ,
658697 },
@@ -791,6 +830,9 @@ func TestCollectWithDisabledFeatures(t *testing.T) {
791830 propertyprovider .NodeCountProperty : {
792831 Value : "1" ,
793832 },
833+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
834+ Value : "1" ,
835+ },
794836 },
795837 Resources : clusterv1beta1.ResourceUsage {
796838 Capacity : corev1.ResourceList {
@@ -819,6 +861,9 @@ func TestCollectWithDisabledFeatures(t *testing.T) {
819861 propertyprovider .NodeCountProperty : {
820862 Value : "1" ,
821863 },
864+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
865+ Value : "1" ,
866+ },
822867 PerCPUCoreCostProperty : {
823868 Value : "0.250" ,
824869 },
@@ -856,6 +901,9 @@ func TestCollectWithDisabledFeatures(t *testing.T) {
856901 propertyprovider .NodeCountProperty : {
857902 Value : "1" ,
858903 },
904+ clusterv1beta1 .PropertyName (fmt .Sprintf (NodeCountPerSKUPropertyTmpl , nodeSKU1 )): {
905+ Value : "1" ,
906+ },
859907 },
860908 Resources : clusterv1beta1.ResourceUsage {
861909 Capacity : corev1.ResourceList {
0 commit comments