Skip to content

Commit 01d2b8b

Browse files
authored
chore: fix tests, update tools image (#216)
* fix: broken tests * cleanup deprecated syntax * test flaky
1 parent 1a2d1b5 commit 01d2b8b

File tree

38 files changed

+151
-152
lines changed

38 files changed

+151
-152
lines changed

.kitchen.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ suites:
7575
customized_inspec_attribute: output_subnets_private_access
7676
customized_inspec_attribute: output_subnets_regions
7777
customized_inspec_attribute: output_subnets_secondary_ranges
78-
customized_inspec_attribute: output_project_id
7978
backend: local
8079
controls:
8180
- gcloud
@@ -130,7 +129,6 @@ suites:
130129
customized_inspec_attribute: output_subnets_private_access
131130
customized_inspec_attribute: output_subnets_regions
132131
customized_inspec_attribute: output_subnets_secondary_ranges
133-
customized_inspec_attribute: output_project_id
134132
backend: local
135133
controls:
136134
- gcloud

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Make will use bash instead of sh
1616
SHELL := /usr/bin/env bash
1717

18-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0
18+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.2
1919
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2020
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2121

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ Then perform the following commands on the root folder:
9393
## Inputs
9494

9595
| Name | Description | Type | Default | Required |
96-
|------|-------------|:----:|:-----:|:-----:|
97-
| auto\_create\_subnetworks | When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources. | bool | `"false"` | no |
98-
| delete\_default\_internet\_gateway\_routes | If set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted | bool | `"false"` | no |
99-
| description | An optional description of this resource. The resource must be recreated to modify this field. | string | `""` | no |
100-
| network\_name | The name of the network being created | string | n/a | yes |
101-
| project\_id | The ID of the project where this VPC will be created | string | n/a | yes |
102-
| routes | List of routes being created in this VPC | list(map(string)) | `<list>` | no |
103-
| routing\_mode | The network routing mode (default 'GLOBAL') | string | `"GLOBAL"` | no |
104-
| secondary\_ranges | Secondary ranges that will be used in some of the subnets | object | `<map>` | no |
105-
| shared\_vpc\_host | Makes this project a Shared VPC host if 'true' (default 'false') | bool | `"false"` | no |
106-
| subnets | The list of subnets being created | list(map(string)) | n/a | yes |
96+
|------|-------------|------|---------|:--------:|
97+
| auto\_create\_subnetworks | When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources. | `bool` | `false` | no |
98+
| delete\_default\_internet\_gateway\_routes | If set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted | `bool` | `false` | no |
99+
| description | An optional description of this resource. The resource must be recreated to modify this field. | `string` | `""` | no |
100+
| network\_name | The name of the network being created | `any` | n/a | yes |
101+
| project\_id | The ID of the project where this VPC will be created | `any` | n/a | yes |
102+
| routes | List of routes being created in this VPC | `list(map(string))` | `[]` | no |
103+
| routing\_mode | The network routing mode (default 'GLOBAL') | `string` | `"GLOBAL"` | no |
104+
| secondary\_ranges | Secondary ranges that will be used in some of the subnets | `map(list(object({ range_name = string, ip_cidr_range = string })))` | `{}` | no |
105+
| shared\_vpc\_host | Makes this project a Shared VPC host if 'true' (default 'false') | `bool` | `false` | no |
106+
| subnets | The list of subnets being created | `list(map(string))` | n/a | yes |
107107

108108
## Outputs
109109

@@ -114,7 +114,7 @@ Then perform the following commands on the root folder:
114114
| network\_self\_link | The URI of the VPC being created |
115115
| project\_id | VPC project id |
116116
| route\_names | The route names associated with this VPC |
117-
| subnets | A map with keys of form subnet_region/subnet_name and values being the outputs of the google_compute_subnetwork resources used to create corresponding subnets. |
117+
| subnets | A map with keys of form subnet\_region/subnet\_name and values being the outputs of the google\_compute\_subnetwork resources used to create corresponding subnets. |
118118
| subnets\_flow\_logs | Whether the subnets will have VPC flow logs enabled |
119119
| subnets\_ips | The IPs and CIDRs of the subnets being created |
120120
| subnets\_names | The names of the subnets being created |

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ tags:
166166
- 'integration'
167167
substitutions:
168168
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
169-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0'
169+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.2'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tags:
2121
- 'lint'
2222
substitutions:
2323
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
24-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.6.0'
24+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.2'

codelabs/simple/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "google_project_service" "compute" {
2525
# Create the network
2626
module "vpc" {
2727
source = "terraform-google-modules/network/google"
28-
version = "~> 0.4.0"
28+
version = "~> 2.5.0"
2929

3030
# Give the network a name and project
3131
project_id = google_project_service.compute.project

examples/delete_default_gateway_routes/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ This VPC has a single subnet with no secondary ranges, and ensures the default i
88
## Inputs
99

1010
| Name | Description | Type | Default | Required |
11-
|------|-------------|:----:|:-----:|:-----:|
12-
| network\_name | The name of the VPC network being created | string | n/a | yes |
13-
| project\_id | The project ID to host the network in | string | n/a | yes |
11+
|------|-------------|------|---------|:--------:|
12+
| network\_name | The name of the VPC network being created | `any` | n/a | yes |
13+
| project\_id | The project ID to host the network in | `any` | n/a | yes |
1414

1515
## Outputs
1616

examples/ilb_routing/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ More information:
1313
## Inputs
1414

1515
| Name | Description | Type | Default | Required |
16-
|------|-------------|:----:|:-----:|:-----:|
17-
| network\_name | The name of the VPC network being created | string | n/a | yes |
18-
| project\_id | The project ID to host the network in | string | n/a | yes |
16+
|------|-------------|------|---------|:--------:|
17+
| network\_name | The name of the VPC network being created | `any` | n/a | yes |
18+
| project\_id | The project ID to host the network in | `any` | n/a | yes |
1919

2020
## Outputs
2121

examples/multi_vpc/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ This example configures a host network project with two separate networks.
66
## Inputs
77

88
| Name | Description | Type | Default | Required |
9-
|------|-------------|:----:|:-----:|:-----:|
10-
| network\_01\_name | The name of the first VPC network being created | string | n/a | yes |
11-
| network\_02\_name | The name of the second VPC network being created | string | n/a | yes |
12-
| project\_id | The project ID to host the network in | string | n/a | yes |
9+
|------|-------------|------|---------|:--------:|
10+
| network\_01\_name | The name of the first VPC network being created | `any` | n/a | yes |
11+
| network\_02\_name | The name of the second VPC network being created | `any` | n/a | yes |
12+
| project\_id | The project ID to host the network in | `any` | n/a | yes |
1313

1414
## Outputs
1515

examples/multi_vpc/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module "test-vpc-module-01" {
106106
]
107107
}
108108

109-
routes = "${local.network_01_routes}"
109+
routes = local.network_01_routes
110110
}
111111

112112
module "test-vpc-module-02" {

0 commit comments

Comments
 (0)