Commit Graph

6 Commits

Author SHA1 Message Date
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
Dainis Tillers
bce21fe6ac Fix - typo in healthcheck names 2015-04-27 11:42:50 +03:00
David Watson
56c5854e5b Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
Dave Cunningham
a1b137d529 Fix whitespace 2015-02-07 19:05:19 -05:00
Dave Cunningham
e54a9638a8 Fix a number of healthcheck bugs 2015-02-07 19:03:18 -05:00
Dave Cunningham
038debbba9 Multiple gcp improvements and new resources 2015-01-30 10:32:35 -06:00