Skip to content

Commit

Permalink
Merge pull request #706 from GoogleCloudPlatform/jccb/fix-705
Browse files Browse the repository at this point in the history
Bump providers versions and pin versions for tests
  • Loading branch information
juliocc committed Jun 28, 2022
2 parents 09f86f8 + 07b00c3 commit 6458073
Show file tree
Hide file tree
Showing 82 changed files with 188 additions and 170 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Pin provider versions
run: |
sed -i 's/>=\(.*# tftest\)/=\1/g' default-versions.tf
find -name versions.tf -exec cp default-versions.tf {} \;
- name: Run tests on documentation examples
id: pytest
run: |
Expand Down Expand Up @@ -76,6 +81,11 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false

- name: Pin provider versions
run: |
sed -i 's/>=\(.*# tftest\)/=\1/g' default-versions.tf
find -name versions.tf -exec cp default-versions.tf {} \;
- name: Run tests environments
id: pytest
run: |
Expand Down Expand Up @@ -104,6 +114,11 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false

- name: Pin provider versions
run: |
sed -i 's/>=\(.*# tftest\)/=\1/g' default-versions.tf
find -name versions.tf -exec cp default-versions.tf {} \;
- name: Run tests modules
id: pytest
run: |
Expand Down Expand Up @@ -132,6 +147,11 @@ jobs:
terraform_version: ${{ env.TF_VERSION }}
terraform_wrapper: false

- name: Pin provider versions
run: |
sed -i 's/>=\(.*# tftest\)/=\1/g' default-versions.tf
find -name versions.tf -exec cp default-versions.tf {} \;
- name: Run tests on FAST stages
id: pytest
run: |
Expand Down
4 changes: 2 additions & 2 deletions default-versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/cloud-operations/dns-fine-grained-iam/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/cloud-operations/dns-shared-vpc/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/cloud-operations/packer-image-builder/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/cloud-operations/quota-monitoring/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/data-solutions/cmek-via-centralized-kms/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/factories/net-vpc-firewall-yaml/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/foundations/business-units/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/foundations/environments/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/decentralized-firewall/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/filtering-proxy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/hub-and-spoke-peering/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/hub-and-spoke-vpn/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/ilb-next-hop/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/onprem-google-access-dns/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/networking/shared-vpc-gke/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/third-party-solutions/openshift/tf/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.17.0"
version = ">= 4.20.0" # tftest
}
}
}
Expand Down
18 changes: 8 additions & 10 deletions fast/stages/00-cicd/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@
terraform {
required_version = ">= 1.1.0"
required_providers {
gitlab = {
source = "gitlabhq/gitlab"
version = ">= 3.15.0"
google = {
source = "hashicorp/google"
version = ">= 4.20.0" # tftest
}
github = {
source = "integrations/github"
version = ">= 4.26.0"
}
tls = {
source = "hashicorp/tls"
version = "3.4.0"
google-beta = {
source = "hashicorp/google-beta"
version = ">= 4.20.0" # tftest
}
}
}


0 comments on commit 6458073

Please sign in to comment.