Skip to content

Commit

Permalink
Fix TestAccComposer1Environment_withNodeConfig (GoogleCloudPlatform#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottSuarez authored and BBBmau committed Oct 24, 2024
1 parent 31d1ae5 commit 7ba1206
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,9 @@ func TestAccComposer1Environment_withNodeConfig(t *testing.T) {
PreCheck: func() { acctest.AccTestPreCheck(t) },
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
CheckDestroy: testAccComposerEnvironmentDestroyProducer(t),
ExternalProviders: map[string]resource.ExternalProvider{
"time": {},
},
Steps: []resource.TestStep{
{
Config: testAccComposer1Environment_nodeCfg(envName, network, subnetwork, serviceAccount),
Expand Down Expand Up @@ -2760,7 +2763,7 @@ resource "google_composer_environment" "test" {
image_version = "composer-1-airflow-2"
}
}
depends_on = [google_project_iam_member.composer-worker]
depends_on = [time_sleep.wait_3_minutes]
}

resource "google_compute_network" "test" {
Expand All @@ -2775,6 +2778,11 @@ resource "google_compute_subnetwork" "test" {
network = google_compute_network.test.self_link
}

resource "time_sleep" "wait_3_minutes" {
depends_on = [google_project_iam_member.composer-worker]
create_duration = "3m"
}

resource "google_service_account" "test" {
account_id = "%s"
display_name = "Test Service Account for Composer Environment"
Expand Down

0 comments on commit 7ba1206

Please sign in to comment.