Skip to content

Commit

Permalink
Change region for eks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa committed Nov 4, 2024
1 parent 3019de2 commit f92c874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions castai/resource_node_configuration_eks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestAccResourceNodeConfiguration_eks(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "aks.#", "0"),
resource.TestCheckResourceAttr(resourceName, "kops.#", "0"),
resource.TestCheckResourceAttr(resourceName, "gke.#", "0"),
resource.TestCheckResourceAttr(resourceName, "eks.0.node_group_arn", "arn:aws:iam::000000000000:role/aws_node_group"),
resource.TestCheckResourceAttr(resourceName, "eks.0.node_group_arn", "arn:aws:iam::000000000000:role/aws_node_group"),
),
},
{
Expand Down Expand Up @@ -187,7 +187,7 @@ func testAccEKSClusterConfig(rName string, clusterName string) string {
return ConfigCompose(testAccAWSConfig(rName), fmt.Sprintf(`
resource "castai_eks_clusterid" "test" {
account_id = data.aws_caller_identity.current.account_id
region = "eu-central-1"
region = "eu-west-2"
cluster_name = %[1]q
}
Expand All @@ -197,7 +197,7 @@ resource "castai_eks_user_arn" "test" {
resource "castai_eks_cluster" "test" {
account_id = data.aws_caller_identity.current.account_id
region = "eu-central-1"
region = "eu-west-2"
name = %[1]q
assume_role_arn = aws_iam_role.test.arn
}
Expand All @@ -207,7 +207,7 @@ resource "castai_eks_cluster" "test" {
func testAccAWSConfig(rName string) string {
return fmt.Sprintf(`
provider "aws" {
region = "eu-central-1"
region = "eu-west-2"
}
data "aws_caller_identity" "current" {}
Expand Down

0 comments on commit f92c874

Please sign in to comment.