Commit Graph

15 Commits

Author SHA1 Message Date
Paddy
44bf0bec96 Read update_strategy before overwriting it. (#11013)
As brought up in #10174, our update_strategy property for instance group
managers in GCP would always be set to "RESTART" on read, even if the
user asked for them to be "NONE" in the config.

This adds a test to ensure that the user wishes were respected, which
fails until we check for update_strategy in the ResourceData before we
update it within the Read function. Because the update_strategy property
doesn't map to anything in the API, we never need to read it from
anywhere but the config, which means the ResourceData should be
considered authoritative by the time we get to the Read function.

The fix for this was provided by @JDiPierro in #10198 originally, but
was missing tests, so it got squashed into this.
2017-01-09 23:15:50 +00:00
Christoph Blecker
2477c7c5a5 Fix acceptance test image reversion (#8349) 2016-08-25 14:39:03 +01:00
Noah Webb
05eecb60f7 provider/google: changed the format of source_image in autoscaler tests 2016-08-19 14:05:28 -04:00
Christoph Blecker
be6b7c95b4 Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
Noah Webb
6e2c679c8a provider/google: Support Import of'google_compute_instance_group_manager' 2016-08-18 15:13:52 -04:00
Evan Brown
1dd7de97a9 providers/google: support optionial uuid naming for Instance Template (#6604)
Auto-generating an Instance Template name (or just its suffix) allows the
create_before_destroy lifecycle option to function correctly on the
Instance Template resource. This in turn allows Instance Group Managers
to be updated without being destroyed.
2016-05-11 22:54:47 +01:00
Bill Fumerola
ef0982895d provider/google: use non-deprecated image in acceptance tests, documentation 2016-03-26 09:55:28 -07:00
chris
d99a368c03 provider/google: Support named_port on instance_group_manager
This allows HTTP and HTTPs load-balancers to direct traffic to ports other than tcp/80 and tcp/443.
2016-01-20 09:15:30 -05:00
Lars Wander
54eebc6084 provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
Lars Wander
4c61acc8dc provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
Paul Hinze
b2018a0ba5 provider/google: fix InstanceGroupManager CheckDestroy in tests
Nil check was just backwards. Vetted by comparing to other tests with
similar CheckDestroy implementations
2016-01-04 16:29:31 -06:00
Radek Simko
e175531884 google: Code formatted via gofmt 2015-08-14 12:06:06 +01:00
Dave Cunningham
9fb2258451 Make target_pools optional 2015-07-30 10:46:16 -04:00
Dave Cunningham
95ca5bab05 Make failure of "basic" test not interfere with success of "update" test 2015-07-28 14:09:29 -04:00
Dave Cunningham
d5b089fc69 Use new autoscaler / instance group manager APIs. 2015-07-27 20:47:10 -04:00