Skip to content

Commit 4dfc1ba

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

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

build/int.cloudbuild.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ steps:
3030
- id: simple-example-apply
3131
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3232
args: ['/bin/bash', '-c', 'cft test run all --stage apply --verbose']
33+
waitFor:
34+
- simple-example-init
3335
- id: simple-example-verify
3436
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3537
args: ['/bin/bash', '-c', 'cft test run all --stage verify --verbose']
38+
waitFor:
39+
- simple-example-apply
3640
- id: simple-example-teardown
3741
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
3842
args: ['/bin/bash', '-c', 'cft test run all --stage teardown --verbose']
43+
waitFor:
44+
- simple-example-verify
3945
tags:
4046
- 'ci'
4147
- '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)