Skip to content

Commit d4e1f27

Browse files
committed
fix: fixing broken tests
1 parent 3970cfc commit d4e1f27

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build/int.cloudbuild.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,23 @@ steps:
2727
- id: simple-example-init
2828
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
2929
args: ['/bin/bash', '-c', 'cft test run all --stage init --verbose']
30+
waitFor:
31+
- prepare
3032
- id: simple-example-apply
3133
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3234
args: ['/bin/bash', '-c', 'cft test run all --stage apply --verbose']
35+
waitFor:
36+
- simple-example-init
3337
- id: simple-example-verify
3438
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3539
args: ['/bin/bash', '-c', 'cft test run all --stage verify --verbose']
40+
waitFor:
41+
- simple-example-apply
3642
- id: simple-example-teardown
3743
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3844
args: ['/bin/bash', '-c', 'cft test run all --stage teardown --verbose']
45+
waitFor:
46+
- simple-example-verify
3947
tags:
4048
- 'ci'
4149
- 'integration'

test/setup/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ module "project" {
5353

5454
activate_apis = flatten(values(local.per_module_services))
5555
}
56+
57+
58+
# Wait after APIs are enabled to give time for them to spin up
59+
resource "time_sleep" "wait_after_apis" {
60+
create_duration = "120s"
61+
depends_on = [module.project]
62+
}

0 commit comments

Comments
 (0)