From 7753b1f75a4ce3cafbdb952dbe091ff58ee338de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Niesiob=C4=99dzki?= Date: Sat, 9 Mar 2024 16:36:33 +0000 Subject: [PATCH] Add GCE dataproc tests to E2E --- modules/dataproc/README.md | 4 ++-- tests/examples_e2e/setup_module/main.tf | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/dataproc/README.md b/modules/dataproc/README.md index 79f3c4a8e9..d3aa303a1f 100644 --- a/modules/dataproc/README.md +++ b/modules/dataproc/README.md @@ -83,7 +83,7 @@ module "processing-dp-cluster" { module.dataproc-service-account, # ensure all grants are done before creating the cluster ] } -# tftest modules=3 resources=7 +# tftest modules=3 resources=7 e2e ``` ### Cluster configuration on GCE with CMEK encryption @@ -137,7 +137,7 @@ module "processing-dp-cluster" { module.dataproc-service-account, # ensure all grants are done before creating the cluster ] } -# tftest modules=3 resources=8 +# tftest modules=3 resources=8 e2e ``` ### Cluster configuration on GKE diff --git a/tests/examples_e2e/setup_module/main.tf b/tests/examples_e2e/setup_module/main.tf index ca02332a5e..4c36c24bef 100644 --- a/tests/examples_e2e/setup_module/main.tf +++ b/tests/examples_e2e/setup_module/main.tf @@ -78,11 +78,12 @@ resource "google_compute_network" "network" { } resource "google_compute_subnetwork" "subnetwork" { - ip_cidr_range = "10.0.16.0/24" - name = "e2e-test-1" - network = google_compute_network.network.name - project = google_project.project.project_id - region = var.region + ip_cidr_range = "10.0.16.0/24" + name = "e2e-test-1" + network = google_compute_network.network.name + project = google_project.project.project_id + private_ip_google_access = true + region = var.region secondary_ip_range { range_name = "pods" ip_cidr_range = "100.68.0.0/16"