Skip to content

Commit 721407c

Browse files
committed
added cft test commands in cloudbuild
1 parent 2c202c1 commit 721407c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build/int.cloudbuild.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,27 @@ steps:
158158
- verify internal-lb-http gce-mig
159159
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
160160
args: ['/bin/bash', '-c', 'cft test run TestInternalLbGCEMIG --stage teardown --verbose']
161+
# Backend Service with IAP Enabled
162+
- id: init backend-with-iap
163+
waitFor:
164+
- teardown internal-lb-http gce-mig
165+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
166+
args: ['/bin/bash', '-c', 'cft test run TestAll/examples/backend-with-IAP --stage init --verbose']
167+
- id: apply backend-with-iap
168+
waitFor:
169+
- init backend-with-iap
170+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
171+
args: ['/bin/bash', '-c', 'cft test run TestAll/examples/backend-with-IAP --stage apply --verbose']
172+
- id: verify backend-with-iap
173+
waitFor:
174+
- apply backend-with-iap
175+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
176+
args: ['/bin/bash', '-c', 'cft test run TestAll/examples/backend-with-IAP --stage verify --verbose']
177+
- id: teardown backend-with-iap
178+
waitFor:
179+
- verify backend-with-iap
180+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
181+
args: ['/bin/bash', '-c', 'cft test run TestAll/examples/backend-with-IAP --stage teardown --verbose']
161182
tags:
162183
- 'ci'
163184
- 'integration'

0 commit comments

Comments
 (0)