Migrate net-address tests
This commit is contained in:
35
tests/modules/net_address/examples/external.yaml
Normal file
35
tests/modules/net_address/examples/external.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
module.addresses.google_compute_address.external["one"]:
|
||||
address_type: EXTERNAL
|
||||
name: one
|
||||
project: project-id
|
||||
region: europe-west1
|
||||
module.addresses.google_compute_address.external["two"]:
|
||||
address_type: EXTERNAL
|
||||
name: two
|
||||
project: project-id
|
||||
region: europe-west2
|
||||
module.addresses.google_compute_global_address.global["app-1"]:
|
||||
name: app-1
|
||||
project: project-id
|
||||
module.addresses.google_compute_global_address.global["app-2"]:
|
||||
name: app-2
|
||||
project: project-id
|
||||
|
||||
counts:
|
||||
google_compute_address: 2
|
||||
google_compute_global_address: 2
|
||||
38
tests/modules/net_address/examples/internal.yaml
Normal file
38
tests/modules/net_address/examples/internal.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
module.addresses.google_compute_address.internal["ilb-1"]:
|
||||
address_type: INTERNAL
|
||||
labels: null
|
||||
name: ilb-1
|
||||
network: null
|
||||
prefix_length: null
|
||||
project: project-id
|
||||
purpose: SHARED_LOADBALANCER_VIP
|
||||
region: region
|
||||
subnetwork: subnet_self_link
|
||||
module.addresses.google_compute_address.internal["ilb-2"]:
|
||||
address: 10.0.0.2
|
||||
address_type: INTERNAL
|
||||
labels: null
|
||||
name: ilb-2
|
||||
network: null
|
||||
prefix_length: null
|
||||
project: project-id
|
||||
region: region
|
||||
subnetwork: subnet_self_link
|
||||
|
||||
counts:
|
||||
google_compute_address: 2
|
||||
26
tests/modules/net_address/examples/psa.yaml
Normal file
26
tests/modules/net_address/examples/psa.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
module.addresses.google_compute_global_address.psa["cloudsql-mysql"]:
|
||||
address: 10.10.10.0
|
||||
address_type: INTERNAL
|
||||
name: cloudsql-mysql
|
||||
network: projects/xxx/global/networks/aaa
|
||||
prefix_length: 24
|
||||
project: project-id
|
||||
purpose: VPC_PEERING
|
||||
|
||||
counts:
|
||||
google_compute_global_address: 1
|
||||
33
tests/modules/net_address/examples/psc.yaml
Normal file
33
tests/modules/net_address/examples/psc.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
module.addresses.google_compute_global_address.psc["one"]:
|
||||
address_type: INTERNAL
|
||||
name: one
|
||||
network: projects/xxx/global/networks/aaa
|
||||
prefix_length: null
|
||||
project: project-id
|
||||
purpose: PRIVATE_SERVICE_CONNECT
|
||||
module.addresses.google_compute_global_address.psc["two"]:
|
||||
address: 10.0.0.32
|
||||
address_type: INTERNAL
|
||||
name: two
|
||||
network: projects/xxx/global/networks/aaa
|
||||
prefix_length: null
|
||||
project: project-id
|
||||
purpose: PRIVATE_SERVICE_CONNECT
|
||||
|
||||
counts:
|
||||
google_compute_global_address: 2
|
||||
Reference in New Issue
Block a user