diff --git a/terraform/modules/core-convention/tests/resource_naming.tftest.hcl b/terraform/modules/core-convention/tests/resource_naming.tftest.hcl new file mode 100644 index 00000000..9ea8a96d --- /dev/null +++ b/terraform/modules/core-convention/tests/resource_naming.tftest.hcl @@ -0,0 +1,14 @@ +variables { + team = "team-a" + project = "project-x" + environment = "production" + region = "us-west-1" + delimiter = "-" +} + +run "test_defaults" { + assert { + condition = output.resource_name == "team-a-project-x-production-us-west-1" + error_message = "Resource name is mal formatted" + } +} \ No newline at end of file