From ec01059498e3cff309adffe79e429942f246ed39 Mon Sep 17 00:00:00 2001 From: vadasambar Date: Fri, 23 Jun 2023 23:28:57 +0530 Subject: [PATCH] test: fix node names Signed-off-by: vadasambar --- .../cloudprovider/aws/aws_cloud_provider_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/aws/aws_cloud_provider_test.go b/cluster-autoscaler/cloudprovider/aws/aws_cloud_provider_test.go index 7152a89f5226..10f4cc87cab9 100644 --- a/cluster-autoscaler/cloudprovider/aws/aws_cloud_provider_test.go +++ b/cluster-autoscaler/cloudprovider/aws/aws_cloud_provider_test.go @@ -634,7 +634,7 @@ func TestHasInstance(t *testing.T) { // Case 1: correct node - present in AWS node1 := &apiv1.Node{ ObjectMeta: metav1.ObjectMeta{ - Name: "node-XXX", + Name: "node-1", }, Spec: apiv1.NodeSpec{ ProviderID: "aws:///us-east-1a/test-instance-id", @@ -647,7 +647,7 @@ func TestHasInstance(t *testing.T) { // Case 2: incorrect node - fargate is unsupported node2 := &apiv1.Node{ ObjectMeta: metav1.ObjectMeta{ - Name: "fargate-XXX", + Name: "fargate-1", }, Spec: apiv1.NodeSpec{ ProviderID: "aws:///us-east-1a/test-instance-id", @@ -660,7 +660,7 @@ func TestHasInstance(t *testing.T) { // Case 3: correct node - not present in AWS node3 := &apiv1.Node{ ObjectMeta: metav1.ObjectMeta{ - Name: "node-XXX", + Name: "node-2", }, Spec: apiv1.NodeSpec{ ProviderID: "aws:///us-east-1a/test-instance-id-2",