From 321bed29ba0a36d2bfc5860144f70e73adba7267 Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Tue, 19 Apr 2022 15:17:28 -0700 Subject: [PATCH] fix: add propagation to test/setup (#708) feat: update test/setup to pfactory 13.0 --- test/setup/main.tf | 9 ++++++++- test/setup/versions.tf | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/test/setup/main.tf b/test/setup/main.tf index 1f703391..aed110c6 100644 --- a/test/setup/main.tf +++ b/test/setup/main.tf @@ -25,7 +25,7 @@ resource "google_folder" "ci_pfactory_folder" { module "pfactory_project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.0" + version = "~> 13.0" name = "ci-pfactory-tests" random_project_id = true @@ -54,3 +54,10 @@ module "pfactory_project" { resource "random_id" "random_string_for_testing" { byte_length = 3 } + +# propagation time +resource "time_sleep" "wait_180_seconds" { + depends_on = [module.pfactory_project.enabled_apis] + + create_duration = "180s" +} diff --git a/test/setup/versions.tf b/test/setup/versions.tf index ead51540..c32199ca 100644 --- a/test/setup/versions.tf +++ b/test/setup/versions.tf @@ -33,5 +33,9 @@ terraform { source = "hashicorp/random" version = "~> 2.2" } + time = { + source = "hashicorp/time" + version = ">= 0.5.0" + } } }