File tree Expand file tree Collapse file tree 3 files changed +74
-0
lines changed
test/integration/networks/controls Expand file tree Collapse file tree 3 files changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,39 @@ module "base_gcr" {
116
116
]
117
117
}
118
118
119
+ /* **********************************************
120
+ Private Artifact Registry DNS Zone & records.
121
+ ***********************************************/
122
+
123
+ module "base_pkg_dev" {
124
+ source = " terraform-google-modules/cloud-dns/google"
125
+ version = " ~> 3.1"
126
+ project_id = var. project_id
127
+ type = " private"
128
+ name = " dz-${ var . environment_code } -shared-base-pkg-dev"
129
+ domain = " pkg.dev."
130
+ description = " Private DNS zone to configure pkg.dev"
131
+
132
+ private_visibility_config_networks = [
133
+ module . main . network_self_link
134
+ ]
135
+
136
+ recordsets = [
137
+ {
138
+ name = " *"
139
+ type = " CNAME"
140
+ ttl = 300
141
+ records = [" pkg.dev." ]
142
+ },
143
+ {
144
+ name = " "
145
+ type = " A"
146
+ ttl = 300
147
+ records = [" 199.36.153.8" , " 199.36.153.9" , " 199.36.153.10" , " 199.36.153.11" ]
148
+ },
149
+ ]
150
+ }
151
+
119
152
/* *****************************************
120
153
Creates DNS Peering to DNS HUB
121
154
*****************************************/
Original file line number Diff line number Diff line change @@ -117,6 +117,39 @@ module "restricted_gcr" {
117
117
]
118
118
}
119
119
120
+ /* *************************************************
121
+ Restricted Artifact Registry DNS Zone & records.
122
+ **************************************************/
123
+
124
+ module "restricted_pkg_dev" {
125
+ source = " terraform-google-modules/cloud-dns/google"
126
+ version = " ~> 3.0"
127
+ project_id = var. project_id
128
+ type = " private"
129
+ name = " dz-${ var . environment_code } -shared-restricted-pkg-dev"
130
+ domain = " pkg.dev."
131
+ description = " Private DNS zone to configure pkg.dev"
132
+
133
+ private_visibility_config_networks = [
134
+ module . main . network_self_link
135
+ ]
136
+
137
+ recordsets = [
138
+ {
139
+ name = " *"
140
+ type = " CNAME"
141
+ ttl = 300
142
+ records = [" pkg.dev." ]
143
+ },
144
+ {
145
+ name = " "
146
+ type = " A"
147
+ ttl = 300
148
+ records = [" 199.36.153.4" , " 199.36.153.5" , " 199.36.153.6" , " 199.36.153.7" ]
149
+ },
150
+ ]
151
+ }
152
+
120
153
/* *****************************************
121
154
Creates DNS Peering to DNS HUB
122
155
*****************************************/
Original file line number Diff line number Diff line change 57
57
58
58
dns_zone_googleapis = "dz-#{ environment_code } -shared-#{ type } -apis"
59
59
dns_zone_gcr = "dz-#{ environment_code } -shared-#{ type } -gcr"
60
+ dns_zone_pkg_dev = "dz-#{ environment_code } -shared-#{ type } -pkg-dev"
60
61
dns_zone_peering_zone = "dz-#{ environment_code } -shared-#{ type } -to-dns-hub"
61
62
62
63
subnet_name1 = "sb-#{ environment_code } -shared-#{ type } -#{ default_region1 } "
96
97
it { should exist }
97
98
end
98
99
100
+ describe google_dns_managed_zone (
101
+ project : projects_id [ environment_code ] [ type ] ,
102
+ zone : dns_zone_pkg_dev
103
+ ) do
104
+ it { should exist }
105
+ end
106
+
99
107
describe google_dns_managed_zone (
100
108
project : projects_id [ environment_code ] [ type ] ,
101
109
zone : dns_zone_peering_zone
You can’t perform that action at this time.
0 commit comments