Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump providers versions and pin versions for tests #706

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
}


Loading