Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
using-system committed Oct 7, 2023
1 parent a441088 commit 1c9bdf5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions terraform/modules/core-convention/tests/resource_naming.tftest.hcl
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 1c9bdf5

Please sign in to comment.