Skip to content

Commit

Permalink
feat: enable terraform test by default (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
myjaffoo authored Jun 6, 2024
1 parent 1e50eab commit 9689e4c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/module.tftest.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
mock_provider "aws" {
mock_data "aws_availability_zones" {
defaults = {
names = [
"eu-west-1a",
"eu-west-1b",
"eu-west-1c"
]
}
}
}

run "basic" {
command = plan

variables {
resolvers = {
outbound = {
create = true
ip_address_offset = 10
}
}
name = "spoke-dns"
region = "eu-west-2"
network = {
name = "endpoints"
private_netmask = 24
transit_gateway_id = "tgw-123456acb123"
vpc_cidr = "10.20.0.0/21"
}
tags = {
Environment = "dev"
}
}

}

0 comments on commit 9689e4c

Please sign in to comment.