Skip to content

Commit 58e7906

Browse files
committed
chore: terraform fmt -recursive
1 parent 29d06ff commit 58e7906

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

common/metadata/tests/custom_delimiter/test.tf

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ module "mut" {
1313
base_domain = "testd.example.com"
1414
provider_name = "testp"
1515
provider_region = "testr"
16-
delimiter = ""
16+
delimiter = ""
1717
}
1818

1919
locals {
20-
exp_name = "testntest_custom_delimitertestr"
21-
exp_domain = "testp.testd.example.com"
22-
exp_fqdn = "testntest_custom_delimitertestr.testp.testd.example.com"
23-
exp_workspace = "test_custom_delimiter"
24-
exp_provider_name = "testp"
20+
exp_name = "testntest_custom_delimitertestr"
21+
exp_domain = "testp.testd.example.com"
22+
exp_fqdn = "testntest_custom_delimitertestr.testp.testd.example.com"
23+
exp_workspace = "test_custom_delimiter"
24+
exp_provider_name = "testp"
2525
exp_provider_region = "testr"
2626
}
2727

@@ -61,7 +61,7 @@ resource "test_assertions" "labels" {
6161
equal "scheme" {
6262
description = "labels have correct key/value pairs"
6363
got = module.mut.labels
64-
want = {
64+
want = {
6565
"kubestack.com/cluster_name" = local.exp_name
6666
"kubestack.com/cluster_domain" = local.exp_domain
6767
"kubestack.com/cluster_fqdn" = local.exp_fqdn
@@ -88,7 +88,7 @@ resource "test_assertions" "tags" {
8888
equal "scheme" {
8989
description = "returns the used label_namespace"
9090
got = module.mut.tags
91-
want = [
91+
want = [
9292
local.exp_name,
9393
local.exp_workspace,
9494
local.exp_provider_name,

common/metadata/tests/custom_label_namespace/test.tf

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ module "mut" {
1717
}
1818

1919
locals {
20-
exp_name = "testn-test_custom_label_namespace-testr"
21-
exp_domain = "testp.testd.example.com"
22-
exp_fqdn = "testn-test_custom_label_namespace-testr.testp.testd.example.com"
23-
exp_workspace = "test_custom_label_namespace"
24-
exp_provider_name = "testp"
20+
exp_name = "testn-test_custom_label_namespace-testr"
21+
exp_domain = "testp.testd.example.com"
22+
exp_fqdn = "testn-test_custom_label_namespace-testr.testp.testd.example.com"
23+
exp_workspace = "test_custom_label_namespace"
24+
exp_provider_name = "testp"
2525
exp_provider_region = "testr"
2626
exp_label_namespace = "testlns-"
2727
}
@@ -32,7 +32,7 @@ resource "test_assertions" "labels" {
3232
equal "scheme" {
3333
description = "labels have correct key/value pairs"
3434
got = module.mut.labels
35-
want = {
35+
want = {
3636
"${local.exp_label_namespace}cluster_name" = local.exp_name
3737
"${local.exp_label_namespace}cluster_domain" = local.exp_domain
3838
"${local.exp_label_namespace}cluster_fqdn" = local.exp_fqdn

common/metadata/tests/custom_workspace/test.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ module "mut" {
1313
base_domain = "testd.example.com"
1414
provider_name = "testp"
1515
provider_region = "testr"
16-
workspace = "testw"
16+
workspace = "testw"
1717
}
1818

1919
locals {
2020
exp_workspace = "testw"
21-
exp_name = "testn-${local.exp_workspace}-testr"
21+
exp_name = "testn-${local.exp_workspace}-testr"
2222
}
2323

2424
resource "test_assertions" "name" {
@@ -46,6 +46,6 @@ resource "test_assertions" "workspace_tag" {
4646

4747
check "contains" {
4848
description = "check the workspace is one of the tags"
49-
condition = contains(module.mut.tags, local.exp_workspace)
49+
condition = contains(module.mut.tags, local.exp_workspace)
5050
}
5151
}

common/metadata/tests/defaults/test.tf

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ module "mut" {
1616
}
1717

1818
locals {
19-
exp_name = "testn-test_defaults-testr"
20-
exp_domain = "testp.testd.example.com"
21-
exp_fqdn = "testn-test_defaults-testr.testp.testd.example.com"
22-
exp_workspace = "test_defaults"
23-
exp_provider_name = "testp"
19+
exp_name = "testn-test_defaults-testr"
20+
exp_domain = "testp.testd.example.com"
21+
exp_fqdn = "testn-test_defaults-testr.testp.testd.example.com"
22+
exp_workspace = "test_defaults"
23+
exp_provider_name = "testp"
2424
exp_provider_region = "testr"
2525
}
2626

@@ -60,7 +60,7 @@ resource "test_assertions" "labels" {
6060
equal "scheme" {
6161
description = "labels have correct key/value pairs"
6262
got = module.mut.labels
63-
want = {
63+
want = {
6464
"kubestack.com/cluster_name" = local.exp_name
6565
"kubestack.com/cluster_domain" = local.exp_domain
6666
"kubestack.com/cluster_fqdn" = local.exp_fqdn
@@ -87,7 +87,7 @@ resource "test_assertions" "tags" {
8787
equal "scheme" {
8888
description = "returns the used label_namespace"
8989
got = module.mut.tags
90-
want = [
90+
want = [
9191
local.exp_name,
9292
local.exp_workspace,
9393
local.exp_provider_name,

tests/eks_zero_cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module "eks_zero" {
22
providers = {
3-
aws = aws.eks_zero
3+
aws = aws.eks_zero
44
kubernetes = kubernetes.eks_zero
55
}
66

tests/eks_zero_providers.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ provider "kubernetes" {
1818

1919
host = local.eks_zero_kubeconfig["clusters"][0]["cluster"]["server"]
2020
cluster_ca_certificate = base64decode(local.eks_zero_kubeconfig["clusters"][0]["cluster"]["certificate-authority-data"])
21-
token = local.eks_zero_kubeconfig["users"][0]["user"]["token"]
21+
token = local.eks_zero_kubeconfig["users"][0]["user"]["token"]
2222
}

tests/gke_zero_providers.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ provider "kubernetes" {
88

99
host = local.gke_zero_kubeconfig["clusters"][0]["cluster"]["server"]
1010
cluster_ca_certificate = base64decode(local.gke_zero_kubeconfig["clusters"][0]["cluster"]["certificate-authority-data"])
11-
token = local.gke_zero_kubeconfig["users"][0]["user"]["token"]
11+
token = local.gke_zero_kubeconfig["users"][0]["user"]["token"]
1212
}

0 commit comments

Comments
 (0)