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" {
116116 ]
117117}
118118
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+
119152/* *****************************************
120153 Creates DNS Peering to DNS HUB
121154*****************************************/
Original file line number Diff line number Diff line change @@ -117,6 +117,39 @@ module "restricted_gcr" {
117117 ]
118118}
119119
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+
120153/* *****************************************
121154 Creates DNS Peering to DNS HUB
122155*****************************************/
Original file line number Diff line number Diff line change 5757
5858 dns_zone_googleapis = "dz-#{ environment_code } -shared-#{ type } -apis"
5959 dns_zone_gcr = "dz-#{ environment_code } -shared-#{ type } -gcr"
60+ dns_zone_pkg_dev = "dz-#{ environment_code } -shared-#{ type } -pkg-dev"
6061 dns_zone_peering_zone = "dz-#{ environment_code } -shared-#{ type } -to-dns-hub"
6162
6263 subnet_name1 = "sb-#{ environment_code } -shared-#{ type } -#{ default_region1 } "
9697 it { should exist }
9798 end
9899
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+
99107 describe google_dns_managed_zone (
100108 project : projects_id [ environment_code ] [ type ] ,
101109 zone : dns_zone_peering_zone
You can’t perform that action at this time.
0 commit comments