Skip to content

Commit

Permalink
Remove tests for RegionUrlMap from GA provider (#2361)
Browse files Browse the repository at this point in the history
Merged PR #2361.
  • Loading branch information
Ty Larrabee authored and modular-magician committed Sep 23, 2019
1 parent f0961ed commit ac62b4b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
1 change: 1 addition & 0 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6594,6 +6594,7 @@ objects:
create the disk. Provide this when creating the disk.
- !ruby/object:Api::Resource
name: 'RegionUrlMap'
min_version: beta
kind: 'compute#urlMap'
base_url: projects/{{project}}/regions/{{region}}/urlMaps
collection_url_key: 'items'
Expand Down
1 change: 1 addition & 0 deletions products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
examples:
- !ruby/object:Provider::Terraform::Examples
name: "region_url_map_basic"
min_version: beta
primary_resource_id: "regionurlmap"
vars:
region_url_map_name: "regionurlmap"
Expand Down
16 changes: 12 additions & 4 deletions templates/terraform/examples/region_url_map_basic.tf.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
resource "google_compute_region_url_map" "<%= ctx[:primary_resource_id] %>" {
provider = "google-beta"
region = "us-central1"

name = "<%= ctx[:vars]['region_url_map_name'] %>"
description = "a description"
region = "us-central1"

default_service = "${google_compute_region_backend_service.home.self_link}"

Expand Down Expand Up @@ -33,26 +35,32 @@ resource "google_compute_region_url_map" "<%= ctx[:primary_resource_id] %>" {
}

resource "google_compute_region_backend_service" "login" {
name = "<%= ctx[:vars]['login_region_backend_service_name'] %>"
provider = "google-beta"
region = "us-central1"

name = "<%= ctx[:vars]['login_region_backend_service_name'] %>"
protocol = "HTTP"
timeout_sec = 10

health_checks = ["${google_compute_region_health_check.default.self_link}"]
}

resource "google_compute_region_backend_service" "home" {
name = "<%= ctx[:vars]['home_region_backend_service_name'] %>"
provider = "google-beta"
region = "us-central1"

name = "<%= ctx[:vars]['home_region_backend_service_name'] %>"
protocol = "HTTP"
timeout_sec = 10

health_checks = ["${google_compute_region_health_check.default.self_link}"]
}

resource "google_compute_region_health_check" "default" {
provider = "google-beta"
region = "us-central1"

name = "<%= ctx[:vars]['region_health_check_name'] %>"
region = "us-central1"
check_interval_sec = 1
timeout_sec = 1
http_health_check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/hashicorp/terraform/terraform"
)

<% unless version == 'ga' -%>
func TestAccComputeRegionUrlMap_update_path_matcher(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -357,3 +358,4 @@ resource "google_compute_region_url_map" "foobar" {
}
`, randomSuffix, randomSuffix, randomSuffix)
}
<% end -%>

0 comments on commit ac62b4b

Please sign in to comment.