Skip to content

Commit

Permalink
fix: update based on pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyz committed May 3, 2023
1 parent 15a94ad commit a97c11b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
7 changes: 1 addition & 6 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,4 @@ suites:
driver:
name: terraform
command_timeout: 1800
root_module_directory: test/fixtures/mig_with_percent/simple
- name: mig_stateful
driver:
name: terraform
command_timeout: 1800
root_module_directory: test/fixtures/mig_stateful
root_module_directory: test/fixtures/mig_with_percent/simple
8 changes: 4 additions & 4 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,23 @@ steps:
waitFor:
- create-all
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=init go test -v -run TestMigStatefulModule ./... -p 1']
args: ['/bin/bash', '-c', 'cft test run TestMigStatefulModule --stage create --verbose']
- id: go-apply-statful-mig
waitFor:
- go-init-statful-mig
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=apply go test -v -run TestMigStatefulModule ./... -p 1']
args: ['/bin/bash', '-c', 'cft test run TestMigStatefulModule --stage apply --verbose']
timeout: 3600s
- id: go-verify-statful-mig
waitFor:
- go-apply-statful-mig
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=verify go test -v -run TestMigStatefulModule ./... -p 1']
args: ['/bin/bash', '-c', 'cft test run TestMigStatefulModule --stage verify --verbose']
- id: go-destroy-statful-mig
waitFor:
- go-verify-statful-mig
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'cd test/integration && RUN_STAGE=teardown go test -v -run TestMigStatefulModule ./... -p 1']
args: ['/bin/bash', '-c', 'cft test run TestMigStatefulModule --stage destroy --verbose']
timeout: 1800s
tags:
- 'ci'
Expand Down
4 changes: 0 additions & 4 deletions examples/mig_stateful/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@
*/

provider "google" {
project = var.project_id
region = var.region
}

provider "google-beta" {
project = var.project_id
region = var.region
}

resource "random_string" "suffix" {
Expand Down

0 comments on commit a97c11b

Please sign in to comment.