Go to file
Dan Carley 11f7b0c2ba provider/gce: Set defaults for http_health_check
In order to fix the failing test in the preceding commit when optional
params are changed from their default "computed" values.

These weren't working well with `HttpHealthCheck.Patch()` because it was
attempting to set all unspecified params to Go's type defaults (eg. 0 for
int64) which the API rejected.

Changing the call to `HttpHealthCheck.Update()` seemed to fix this but it
still didn't allow you to reset a param back to it's default by no longer
specifying it.

Settings defaults like this, which match the Terraform docs, seems like the
best all round solution. Includes two additional tests for the acceptance
tests which verify the params are really getting set correctly.
2015-05-10 21:20:40 +01:00
test-fixtures providers/google: first pass 2014-08-25 11:48:20 -07:00
config_test.go providers/google: remove secrets file 2015-01-28 15:47:49 -06:00
config.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
disk_type.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
dns_change.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
image.go fmt 2015-02-20 10:22:26 -08:00
operation.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
provider_test.go providers/google: fix instance creation 2015-01-28 15:50:56 -06:00
provider.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
resource_compute_address_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_address.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_disk_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_disk.go Added - create disk from snapshot 2015-04-08 14:21:39 +03:00
resource_compute_firewall_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_firewall.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_forwarding_rule_test.go fmt 2015-02-20 10:22:26 -08:00
resource_compute_forwarding_rule.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_http_health_check_test.go provider/gce: Set defaults for http_health_check 2015-05-10 21:20:40 +01:00
resource_compute_http_health_check.go provider/gce: Set defaults for http_health_check 2015-05-10 21:20:40 +01:00
resource_compute_instance_migrate_test.go Use a set for service account scopes. Fix #1759 2015-04-30 21:21:21 -04:00
resource_compute_instance_migrate.go Use a set for service account scopes. Fix #1759 2015-04-30 21:21:21 -04:00
resource_compute_instance_template_test.go Merge pull request #1238 from BashtonLtd/gce_update_instance_template_disk_tests 2015-03-26 10:20:29 -07:00
resource_compute_instance_template.go provider/google: compute template metadata to map 2015-05-06 12:33:35 -05:00
resource_compute_instance_test.go Use a set for service account scopes. Fix #1759 2015-04-30 21:21:21 -04:00
resource_compute_instance.go Use a set for service account scopes. Fix #1759 2015-04-30 21:21:21 -04:00
resource_compute_network_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_network.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_route_test.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_compute_route.go helper/schema: ensure ForceNew set when Update is not 2015-04-03 09:57:30 -05:00
resource_compute_target_pool_test.go Multiple gcp improvements and new resources 2015-01-30 10:32:35 -06:00
resource_compute_target_pool.go Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
resource_dns_managed_zone_test.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
resource_dns_managed_zone.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
resource_dns_record_set_test.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
resource_dns_record_set.go Support Google Cloud DNS, Fix #1148 2015-04-30 01:32:34 -04:00
service_scope.go Add a UserAgent with version temporarily set to 0.0.0 2015-04-15 18:17:21 -04:00