diff --git a/selectel/resource_selectel_mks_cluster_v1_test.go b/selectel/resource_selectel_mks_cluster_v1_test.go index 4f232c91..94dcd2aa 100644 --- a/selectel/resource_selectel_mks_cluster_v1_test.go +++ b/selectel/resource_selectel_mks_cluster_v1_test.go @@ -49,7 +49,7 @@ func TestAccMKSClusterV1Basic(t *testing.T) { testAccCheckMKSClusterV1Exists("selectel_mks_cluster_v1.cluster_tf_acc_test_1", &mksCluster), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "name", clusterName), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "kube_version", kubeVersion), - resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-3"), + resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-9"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_autorepair", "true"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_patch_version_auto_upgrade", "true"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "maintenance_window_start", maintenanceWindowStart), @@ -63,7 +63,7 @@ func TestAccMKSClusterV1Basic(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "name", clusterName), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "kube_version", kubeVersion), - resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-3"), + resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-9"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_autorepair", "false"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_patch_version_auto_upgrade", "false"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_pod_security_policy", "false"), @@ -100,7 +100,7 @@ func TestAccMKSClusterV1Zonal(t *testing.T) { testAccCheckMKSClusterV1Exists("selectel_mks_cluster_v1.cluster_tf_acc_test_1", &mksCluster), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "name", clusterName), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "kube_version", kubeVersion), - resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-3"), + resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-9"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_autorepair", "true"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_patch_version_auto_upgrade", "false"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "zonal", "true"), @@ -136,7 +136,7 @@ func TestAccMKSClusterV1PrivateKubeAPI(t *testing.T) { testAccCheckMKSClusterV1Exists("selectel_mks_cluster_v1.cluster_tf_acc_test_1", &mksCluster), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "name", clusterName), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "kube_version", kubeVersion), - resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-3"), + resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "region", "ru-9"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_autorepair", "true"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "enable_patch_version_auto_upgrade", "false"), resource.TestCheckResourceAttr("selectel_mks_cluster_v1.cluster_tf_acc_test_1", "zonal", "false"), @@ -247,7 +247,7 @@ resource "selectel_mks_cluster_v1" "cluster_tf_acc_test_1" { name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" }`, projectName, clusterName, kubeVersion, maintenanceWindowStart) } @@ -264,7 +264,7 @@ resource "selectel_mks_cluster_v1" "cluster_tf_acc_test_1" { name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" feature_gates = [%s] admission_controllers = [%s] @@ -283,7 +283,7 @@ resource "selectel_mks_cluster_v1" "cluster_tf_acc_test_1" { name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" enable_autorepair = false enable_patch_version_auto_upgrade = false @@ -302,7 +302,7 @@ func testAccMKSClusterV1Zonal(projectName, clusterName, kubeVersion, maintenance name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" enable_patch_version_auto_upgrade = false zonal = true @@ -318,7 +318,7 @@ func testAccMKSClusterV1PrivateKubeAPI(projectName, clusterName, kubeVersion, ma name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" enable_patch_version_auto_upgrade = false zonal = false diff --git a/selectel/resource_selectel_mks_nodegroup_v1_test.go b/selectel/resource_selectel_mks_nodegroup_v1_test.go index 06085f87..5e72e20b 100644 --- a/selectel/resource_selectel_mks_nodegroup_v1_test.go +++ b/selectel/resource_selectel_mks_nodegroup_v1_test.go @@ -35,13 +35,13 @@ func TestAccMKSNodegroupV1Basic(t *testing.T) { Check: resource.ComposeTestCheckFunc( testAccCheckVPCV2ProjectExists("selectel_vpc_project_v2.project_tf_acc_test_1", &project), testAccCheckMKSNodegroupV1Exists("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", &mksNodegroup), - resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "availability_zone", "ru-3a"), + resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "availability_zone", "ru-9a"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "nodes_count", "2"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "nodes.#", "2"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "cpus", "1"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "ram_mb", "1024"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "volume_gb", "10"), - resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "volume_type", "fast.ru-3a"), + resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "volume_type", "fast.ru-9a"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "enable_autoscale", "true"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "autoscale_min_nodes", "2"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "autoscale_max_nodes", "3"), @@ -65,13 +65,13 @@ func TestAccMKSNodegroupV1Basic(t *testing.T) { { Config: testAccMKSNodegroupV1Update(projectName, clusterName, kubeVersion, maintenanceWindowStart), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "availability_zone", "ru-3a"), + resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "availability_zone", "ru-9a"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "nodes_count", "3"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "nodes.#", "3"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "cpus", "1"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "ram_mb", "1024"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "volume_gb", "10"), - resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "volume_type", "fast.ru-3a"), + resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "volume_type", "fast.ru-9a"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "enable_autoscale", "false"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "autoscale_min_nodes", "1"), resource.TestCheckResourceAttr("selectel_mks_nodegroup_v1.nodegroup_tf_acc_test_1", "autoscale_max_nodes", "4"), @@ -142,7 +142,7 @@ resource "selectel_mks_cluster_v1" "cluster_tf_acc_test_1" { name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" } @@ -150,12 +150,12 @@ resource "selectel_mks_nodegroup_v1" "nodegroup_tf_acc_test_1" { cluster_id = "${selectel_mks_cluster_v1.cluster_tf_acc_test_1.id}" project_id = "${selectel_mks_cluster_v1.cluster_tf_acc_test_1.project_id}" region = "${selectel_mks_cluster_v1.cluster_tf_acc_test_1.region}" - availability_zone = "ru-3a" + availability_zone = "ru-9a" nodes_count = 2 cpus = 1 ram_mb = 1024 volume_gb = 10 - volume_type = "fast.ru-3a" + volume_type = "fast.ru-9a" enable_autoscale = true autoscale_min_nodes = 2 autoscale_max_nodes = 3 @@ -193,7 +193,7 @@ resource "selectel_mks_cluster_v1" "cluster_tf_acc_test_1" { name = "%s" kube_version = "%s" project_id = "${selectel_vpc_project_v2.project_tf_acc_test_1.id}" - region = "ru-3" + region = "ru-9" maintenance_window_start = "%s" } @@ -201,12 +201,12 @@ resource "selectel_mks_nodegroup_v1" "nodegroup_tf_acc_test_1" { cluster_id = "${selectel_mks_cluster_v1.cluster_tf_acc_test_1.id}" project_id = "${selectel_mks_cluster_v1.cluster_tf_acc_test_1.project_id}" region = "${selectel_mks_cluster_v1.cluster_tf_acc_test_1.region}" - availability_zone = "ru-3a" + availability_zone = "ru-9a" nodes_count = 3 cpus = 1 ram_mb = 1024 volume_gb = 10 - volume_type = "fast.ru-3a" + volume_type = "fast.ru-9a" enable_autoscale = false autoscale_min_nodes = 1 autoscale_max_nodes = 4