Skip to content

Commit 4825be0

Browse files
akshaybathija-githubAkshay Bathijabharathkkb
authored
chore: Adding Test Upgrade (terraform-google-modules#1570)
Co-authored-by: Akshay Bathija <[email protected]> Co-authored-by: Bharath KKB <[email protected]>
1 parent a7cfe92 commit 4825be0

File tree

15 files changed

+831
-661
lines changed

15 files changed

+831
-661
lines changed

build/int.cloudbuild.yaml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -181,36 +181,46 @@ steps:
181181
- verify simple-regional-with-networking-local
182182
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
183183
args: ['/bin/bash', '-c', 'cft test run TestSimpleRegionalWithNetworking --stage teardown --verbose']
184-
- id: converge simple-zonal-local
184+
- id: init simple-zonal-local
185185
waitFor:
186186
- create all
187187
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
188-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge simple-zonal-local']
188+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonal --stage init --verbose']
189+
- id: apply simple-zonal-local
190+
waitFor:
191+
- init simple-zonal-local
192+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
193+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonal --stage apply --verbose']
189194
- id: verify simple-zonal-local
190195
waitFor:
191-
- converge simple-zonal-local
196+
- apply simple-zonal-local
192197
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
193-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do verify simple-zonal-local']
198+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonal --stage verify --verbose']
194199
- id: destroy simple-zonal-local
195200
waitFor:
196201
- verify simple-zonal-local
197202
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
198-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy simple-zonal-local']
199-
- id: converge simple-zonal-private-local
203+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonal --stage teardown --verbose']
204+
- id: init simple-zonal-private-local
200205
waitFor:
201206
- create all
202207
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
203-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge simple-zonal-private-local']
208+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalPrivate --stage init --verbose']
209+
- id: apply simple-zonal-private-local
210+
waitFor:
211+
- init simple-zonal-private-local
212+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
213+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalPrivate --stage apply --verbose']
204214
- id: verify simple-zonal-private-local
205215
waitFor:
206-
- converge simple-zonal-private-local
216+
- apply simple-zonal-private-local
207217
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
208-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do verify simple-zonal-private-local']
218+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalPrivate --stage verify --verbose']
209219
- id: destroy simple-zonal-private-local
210220
waitFor:
211221
- verify simple-zonal-private-local
212222
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
213-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy simple-zonal-private-local']
223+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalPrivate --stage teardown --verbose']
214224
- id: converge stub-domains-local
215225
waitFor:
216226
- create all
@@ -396,21 +406,26 @@ steps:
396406
- verify safer-cluster-iap-bastion-local
397407
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
398408
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy safer-cluster-iap-bastion-local']
399-
- id: converge simple-zonal-with-asm-local
409+
- id: init simple-zonal-with-asm-local
400410
waitFor:
401411
- create all
402412
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
403-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do converge simple-zonal-with-asm-local']
413+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalWithASM --stage init --verbose']
414+
- id: apply simple-zonal-with-asm-local
415+
waitFor:
416+
- init simple-zonal-with-asm-local
417+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
418+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalWithASM --stage apply --verbose']
404419
- id: verify simple-zonal-with-asm-local
405420
waitFor:
406-
- converge simple-zonal-with-asm-local
421+
- apply simple-zonal-with-asm-local
407422
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
408-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do verify simple-zonal-with-asm-local']
423+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalWithASM --stage verify --verbose']
409424
- id: destroy simple-zonal-with-asm-local
410425
waitFor:
411426
- verify simple-zonal-with-asm-local
412427
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
413-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && kitchen_do destroy simple-zonal-with-asm-local']
428+
args: ['/bin/bash', '-c', 'cft test run TestSimpleZonalWithASM --stage teardown --verbose']
414429
- id: init simple-autopilot-private-local
415430
waitFor:
416431
- create all

test/integration/simple_zonal/controls/acm.rb

Lines changed: 0 additions & 59 deletions
This file was deleted.

test/integration/simple_zonal/controls/gcloud.rb

Lines changed: 0 additions & 156 deletions
This file was deleted.

test/integration/simple_zonal/controls/gcp.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

test/integration/simple_zonal/inspec.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)