Skip to content

Commit 63240b6

Browse files
committed
updating test
1 parent 074db21 commit 63240b6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/awsutils/awsutils_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ func TestEC2InstanceMetadataCache_buildENITags(t *testing.T) {
13041304
instanceID: "i-xxxxx",
13051305
},
13061306
want: map[string]string{
1307-
"node.k8s.amazonaws.com/instance_id": "i-xxxxx",
1307+
eniNodeTagKey: "i-xxxxx",
13081308
},
13091309
},
13101310
{
@@ -1314,9 +1314,9 @@ func TestEC2InstanceMetadataCache_buildENITags(t *testing.T) {
13141314
clusterName: "awesome-cluster",
13151315
},
13161316
want: map[string]string{
1317-
"node.k8s.amazonaws.com/instance_id": "i-xxxxx",
1318-
"cluster.k8s.amazonaws.com/name": "awesome-cluster",
1319-
"eks:eni:owner": "amazon-vpc-cni",
1317+
eniNodeTagKey: "i-xxxxx",
1318+
eniClusterTagKey: "awesome-cluster",
1319+
eniOwnerTagKey: eniOwnerTagValue,
13201320
},
13211321
},
13221322
{
@@ -1329,9 +1329,9 @@ func TestEC2InstanceMetadataCache_buildENITags(t *testing.T) {
13291329
},
13301330
},
13311331
want: map[string]string{
1332-
"node.k8s.amazonaws.com/instance_id": "i-xxxxx",
1333-
"tagKey-1": "tagVal-1",
1334-
"tagKey-2": "tagVal-2",
1332+
eniNodeTagKey: "i-xxxxx",
1333+
"tagKey-1": "tagVal-1",
1334+
"tagKey-2": "tagVal-2",
13351335
},
13361336
},
13371337
}

0 commit comments

Comments
 (0)