Skip to content

Commit

Permalink
GCP tests fixes (#1065)
Browse files Browse the repository at this point in the history
* Updated reference to GCP images

* Disabled southamerica-west1 since it can't support f1-micro
  • Loading branch information
denis256 authored Feb 24, 2022
1 parent b0c746e commit a4675e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/terraform-gcp-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "google_compute_instance" "example" {

boot_disk {
initialize_params {
image = "ubuntu-os-cloud/ubuntu-1604-lts"
image = "ubuntu-os-cloud/ubuntu-2004-lts"
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/terraform-gcp-ig-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "google_compute_instance_template" "example" {
disk {
boot = true
auto_delete = true
source_image = "ubuntu-os-cloud/ubuntu-1604-lts"
source_image = "ubuntu-os-cloud/ubuntu-2004-lts"
}

network_interface {
Expand Down
2 changes: 1 addition & 1 deletion modules/gcp/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestGetPublicIpOfInstance(t *testing.T) {

instanceName := RandomValidGcpName()
projectID := GetGoogleProjectIDFromEnvVar(t)
zone := GetRandomZone(t, projectID, nil, nil, nil)
zone := GetRandomZone(t, projectID, nil, nil, []string{"southamerica-west1"})

createComputeInstance(t, projectID, zone, instanceName)
defer deleteComputeInstance(t, projectID, zone, instanceName)
Expand Down

0 comments on commit a4675e3

Please sign in to comment.