Skip to content

Commit 7608f97

Browse files
committed
fix: fix node configuration acceptance test flakiness
1 parent c910347 commit 7608f97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

castai/resource_node_configuration_eks_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ resource "castai_node_configuration" "test" {
186186
}
187187

188188
func testAccEKSClusterConfig(rName string, clusterName string) string {
189-
return ConfigCompose(testAccAWSConfig(rName), fmt.Sprintf(`
189+
return ConfigCompose(testNodeConfigAccAWSConfig(rName), fmt.Sprintf(`
190190
resource "castai_eks_clusterid" "test" {
191191
account_id = data.aws_caller_identity.current.account_id
192192
region = "eu-central-1"
@@ -206,7 +206,7 @@ resource "castai_eks_cluster" "test" {
206206
`, clusterName))
207207
}
208208

209-
func testAccAWSConfig(rName string) string {
209+
func testNodeConfigAccAWSConfig(rName string) string {
210210
return fmt.Sprintf(`
211211
provider "aws" {
212212
region = "eu-central-1"
@@ -250,7 +250,7 @@ resource "aws_security_group" "test" {
250250
}
251251
252252
resource "aws_iam_role" "test" {
253-
name = %[1]q
253+
name = "%[1]v-node-config-acc"
254254
assume_role_policy = jsonencode({
255255
Version = "2012-10-17"
256256
Statement = [

0 commit comments

Comments
 (0)