Skip to content

Commit

Permalink
Fix TestAccComposer1Environment_withNodeConfig (#11926) (#19761)
Browse files Browse the repository at this point in the history
[upstream:30dee30c780a874572bf672e809735ce66767fd0]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 4, 2024
1 parent 29f8d95 commit b493805
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/11926.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
10 changes: 9 additions & 1 deletion google/services/composer/resource_composer_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,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 @@ -2383,7 +2386,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 @@ -2398,6 +2401,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 b493805

Please sign in to comment.