Commit 7b5da4f 1 parent 438fac5 commit 7b5da4f Copy full SHA for 7b5da4f
File tree 1 file changed +19
-13
lines changed
1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 1
1
mock_provider "aws" {
2
-
2
+ mock_data "aws_availability_zones" {
3
+ defaults = {
4
+ names = [
5
+ " eu-west-1a" ,
6
+ " eu-west-1b" ,
7
+ " eu-west-1c"
8
+ ]
9
+ }
10
+ }
3
11
}
4
12
5
13
run "basic_resolver" {
6
14
command = plan
7
15
8
16
variables {
9
- resolver_name = " test"
10
- resolver_vpc_id = " vpc-abc123"
11
-
12
- resolver_subnet_ids = [
13
- " subnet-abc123" ,
14
- " subnet-def456" ,
15
- ]
17
+ resolver_name = " test"
18
+ resolver_protocols = [" Do53" ]
19
+ network = {
20
+ vpc_cidr = " 10.90.0.0/21"
21
+ transit_gateway_id = " tgw-04ad8f026be8b7eb6"
22
+ }
23
+ tags = {
24
+ " Environment" = " Testing"
25
+ " GitRepo" = " https://github.com/appvia/terraform-aws-dns"
26
+ }
16
27
}
17
28
18
29
assert {
@@ -34,9 +45,4 @@ run "basic_resolver" {
34
45
condition = aws_route53_resolver_endpoint. this . resolver_endpoint_type == " IPV4"
35
46
error_message = " Resolver endpoint type should be IPV4"
36
47
}
37
-
38
- assert {
39
- condition = aws_security_group. this . name == " ${ var . resolver_name } -sg"
40
- error_message = " Expected security group name to have -sg suffix"
41
- }
42
48
}
You can’t perform that action at this time.
0 commit comments