From d23aae2b937dd9d2c2815baa922e894b31181eb0 Mon Sep 17 00:00:00 2001 From: Denis O Date: Tue, 27 Jun 2023 19:28:09 +0000 Subject: [PATCH] GCP tests fixes --- examples/packer-basic-example/build-gcp.pkr.hcl | 2 +- examples/terraform-gcp-hello-world-example/main.tf | 4 ++-- modules/gcp/compute_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/packer-basic-example/build-gcp.pkr.hcl b/examples/packer-basic-example/build-gcp.pkr.hcl index 59c462969..4d620493a 100644 --- a/examples/packer-basic-example/build-gcp.pkr.hcl +++ b/examples/packer-basic-example/build-gcp.pkr.hcl @@ -21,7 +21,7 @@ source "googlecompute" "ubuntu-bionic" { image_family = "terratest" image_name = "terratest-packer-example-${formatdate("YYYYMMDD-hhmm", timestamp())}" project_id = var.gcp_project_id - source_image_family = "ubuntu-1804-lts" + source_image_family = "ubuntu-2204-lts" ssh_username = "ubuntu" zone = var.gcp_zone } diff --git a/examples/terraform-gcp-hello-world-example/main.tf b/examples/terraform-gcp-hello-world-example/main.tf index cb4cbadbe..80bbe4bcd 100644 --- a/examples/terraform-gcp-hello-world-example/main.tf +++ b/examples/terraform-gcp-hello-world-example/main.tf @@ -15,10 +15,10 @@ resource "google_compute_instance" "example" { machine_type = "f1-micro" zone = "us-east1-b" - # website::tag::2:: Run Ubuntu 18.04 on the instace + # website::tag::2:: Run Ubuntu 22.04 on the instance boot_disk { initialize_params { - image = "ubuntu-os-cloud/ubuntu-1804-lts" + image = "ubuntu-os-cloud/ubuntu-2204-lts" } } diff --git a/modules/gcp/compute_test.go b/modules/gcp/compute_test.go index b94da5198..61bc057ba 100644 --- a/modules/gcp/compute_test.go +++ b/modules/gcp/compute_test.go @@ -20,7 +20,7 @@ import ( const DEFAULT_MACHINE_TYPE = "f1-micro" const DEFAULT_IMAGE_FAMILY_PROJECT_NAME = "ubuntu-os-cloud" -const DEFAULT_IMAGE_FAMILY_NAME = "family/ubuntu-1804-lts" +const DEFAULT_IMAGE_FAMILY_NAME = "family/ubuntu-2204-lts" // Zones that support running f1-micro instances var ZonesThatSupportF1Micro = []string{"us-central1-a", "us-east1-b", "us-west1-a", "europe-north1-a", "europe-west1-b", "europe-central2-a"}