Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Mar 22, 2024
1 parent 407163d commit 62cc588
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions castai/resource_node_configuration_eks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestAccResourceNodeConfiguration_eks(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "eks.0.imds_v1", "true"),
resource.TestCheckResourceAttr(resourceName, "eks.0.imds_hop_limit", "3"),
resource.TestCheckResourceAttr(resourceName, "eks.0.volume_kms_key_arn", "arn:aws:kms:eu-central-1:012345:key/1d989ee1-59cd-4238-8018-79bae29d1109"),
resource.TestCheckResourceAttr(resourceName, "eks.0.target_group.#", "1"),
resource.TestCheckResourceAttr(resourceName, "aks.#", "0"),
resource.TestCheckResourceAttr(resourceName, "kops.#", "0"),
resource.TestCheckResourceAttr(resourceName, "gke.#", "0"),
Expand Down Expand Up @@ -74,6 +75,9 @@ func TestAccResourceNodeConfiguration_eks(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "tags.%", "0"),
resource.TestCheckResourceAttr(resourceName, "eks.0.dns_cluster_ip", ""),
resource.TestCheckResourceAttr(resourceName, "eks.0.security_groups.#", "1"),
resource.TestCheckResourceAttr(resourceName, "eks.0.target_group.#", "1"),
resource.TestCheckResourceAttr(resourceName, "eks.0.target_group.0.arn", "aws_lb_target_group.test.arn"),
resource.TestCheckResourceAttr(resourceName, "eks.0.target_group.0.port", "80"),
),
},
},
Expand Down Expand Up @@ -125,6 +129,10 @@ resource "castai_node_configuration" "test" {
volume_kms_key_arn = "arn:aws:kms:eu-central-1:012345:key/1d989ee1-59cd-4238-8018-79bae29d1109"
imds_v1 = true
imds_hop_limit = 3
target_group {
arn = "aws_lb_target_group.test.arn"
port = 80
}
}
}
Expand Down

0 comments on commit 62cc588

Please sign in to comment.