From 025287e1181c5eea06b8f0f1a48ee398c9663cec Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Tue, 2 Jul 2024 14:01:44 -0400 Subject: [PATCH 1/3] Ignore secrets.auto.tfvars files that may be used --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5ead60d..a310ffc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Local .terraform directories **/.terraform/* **/.terraform.lock.hcl +**/secrets.auto.tfvars # .tfstate files *.tfstate From 4c2f32847d1f4c8785f1c69b44f9718450342641 Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Tue, 2 Jul 2024 14:05:36 -0400 Subject: [PATCH 2/3] Use github note syntax for test warning --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11e0060..272721a 100644 --- a/README.md +++ b/README.md @@ -148,8 +148,8 @@ module "egress_space" { ## Testing -> **Warning** -Tests provision resources in the real world when not using `mock_provider`! Take care that `CF_USER`/`CF_PASSWORD` are set to an account in a suitable non-production space. If other providers, such as the AWS provider, are used, ensure the same care is taken with their credentials in your shell before running `terraform test`. +> [!WARN] +> Tests provision resources in the real world when not using `mock_provider`! Take care that `CF_USER`/`CF_PASSWORD` are set to an account in a suitable non-production space. If other providers, such as the AWS provider, are used, ensure the same care is taken with their credentials in your shell before running `terraform test`. [Terraform tests](https://developer.hashicorp.com/terraform/language/tests) are in progress of being written. To run for any module with a `tests` directory: From 7afaf6fa1262d6df07d37d84e739d795c092c098 Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Tue, 2 Jul 2024 14:06:16 -0400 Subject: [PATCH 3/3] Use github note syntax for test warning, correctly --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 272721a..7dea733 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ module "egress_space" { ## Testing -> [!WARN] +> [!WARNING] > Tests provision resources in the real world when not using `mock_provider`! Take care that `CF_USER`/`CF_PASSWORD` are set to an account in a suitable non-production space. If other providers, such as the AWS provider, are used, ensure the same care is taken with their credentials in your shell before running `terraform test`. [Terraform tests](https://developer.hashicorp.com/terraform/language/tests) are in progress of being written. To run for any module with a `tests` directory: