Skip to content

Commit 50af2ba

Browse files
committed
fix import
Signed-off-by: Britania Rodriguez Reyes <britaniar@microsoft.com>
1 parent 45611b1 commit 50af2ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/scheduler/framework/plugins/clusteraffinity/types_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import (
3131
clusterv1beta1 "go.goms.io/fleet/apis/cluster/v1beta1"
3232
placementv1beta1 "go.goms.io/fleet/apis/placement/v1beta1"
3333
"go.goms.io/fleet/pkg/clients/azure/compute"
34-
"go.goms.io/fleet/pkg/propertychecker/azure"
34+
checker "go.goms.io/fleet/pkg/propertychecker/azure"
3535
"go.goms.io/fleet/pkg/propertyprovider"
36-
azurePropertyProvider "go.goms.io/fleet/pkg/propertyprovider/azure"
36+
azure "go.goms.io/fleet/pkg/propertyprovider/azure"
3737
"go.goms.io/fleet/pkg/utils/labels"
3838
testcompute "go.goms.io/fleet/test/utils/azure/compute"
3939
)
@@ -1235,7 +1235,7 @@ func TestClusterRequirementMatches_WithPropertyChecker(t *testing.T) {
12351235
},
12361236
}
12371237

1238-
validPropertyName := fmt.Sprintf(azurePropertyProvider.CapacityPerSKUPropertyTmpl, "Standard_D2s_v3")
1238+
validPropertyName := fmt.Sprintf(azure.CapacityPerSKUPropertyTmpl, "Standard_D2s_v3")
12391239

12401240
testCases := []struct {
12411241
name string
@@ -1363,7 +1363,7 @@ func TestClusterRequirementMatches_WithPropertyChecker(t *testing.T) {
13631363
name: "op >, not matched",
13641364
matchExpression: []placementv1beta1.PropertySelectorRequirement{
13651365
{
1366-
Name: fmt.Sprintf(azurePropertyProvider.CapacityPerSKUPropertyTmpl, "Standard_D4s_v3"),
1366+
Name: fmt.Sprintf(azure.CapacityPerSKUPropertyTmpl, "Standard_D4s_v3"),
13671367
Operator: placementv1beta1.PropertySelectorGreaterThan,
13681368
Values: []string{
13691369
"8",
@@ -1394,7 +1394,7 @@ func TestClusterRequirementMatches_WithPropertyChecker(t *testing.T) {
13941394
name: "op >=, not matched",
13951395
matchExpression: []placementv1beta1.PropertySelectorRequirement{
13961396
{
1397-
Name: fmt.Sprintf(azurePropertyProvider.CapacityPerSKUPropertyTmpl, "Standard_D4s_v3"),
1397+
Name: fmt.Sprintf(azure.CapacityPerSKUPropertyTmpl, "Standard_D4s_v3"),
13981398
Operator: placementv1beta1.PropertySelectorGreaterThanOrEqualTo,
13991399
Values: []string{
14001400
"80",
@@ -1425,7 +1425,7 @@ func TestClusterRequirementMatches_WithPropertyChecker(t *testing.T) {
14251425
MatchExpressions: tc.matchExpression,
14261426
},
14271427
},
1428-
PropertyChecker: azure.NewPropertyChecker(*client),
1428+
PropertyChecker: checker.NewPropertyChecker(*client),
14291429
}
14301430
matches, err := req.Matches(tc.cluster)
14311431
if tc.wantError {

0 commit comments

Comments
 (0)