terraform/builtin/providers/google
Paddy 690db74d4a 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
..
test-fixtures provider/google: self-signed ssl certs for testing 2015-11-20 11:32:25 -05:00
compute_operation.go use v1 apis instead of beta 2016-12-01 12:27:33 -08:00
config.go use v1 apis instead of beta 2016-12-01 12:27:33 -08:00
config_test.go provider/google: read credentials as contents instead of path 2015-11-16 15:14:32 -06:00
data_source_google_iam_policy.go providers/google: Add documentation for google_iam_policy resource 2016-09-07 13:35:33 -07: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 provider/google: atomic Cloud DNS record changes (#6575) 2016-08-08 12:36:27 +12:00
image.go Search configured project image families (#9243) 2016-11-01 21:00:12 +00:00
import_compute_autoscaler_test.go provider/google: Support Import of 'google_compute_autoscaler' 2016-08-10 16:19:31 -04:00
import_compute_firewall_test.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
import_compute_forwarding_rule_test.go provider/google: Support Import of 'google_compute_forwarding_rule' 2016-08-10 16:45:56 -04:00
import_compute_http_health_check_test.go provider/google: Support Import of 'google_resource_http_health_check' 2016-08-10 16:30:41 -04:00
import_compute_instance_group_manager_test.go provider/google: Support Import of'google_compute_instance_group_manager' 2016-08-18 15:13:52 -04:00
import_compute_instance_template_test.go provider/google: Support Import of 'google_compute_instance_template' 2016-08-15 10:03:31 -04:00
import_compute_target_pool_test.go provider/google: Support Import of 'google_compute_target_pool' 2016-08-11 10:24:03 -04:00
import_google_project_test.go providers/google: make projects importable. 2016-12-01 10:38:27 -08:00
metadata.go provider/google: Fix project metadata sshkeys from showing up 2016-01-05 11:37:52 -05:00
provider.go First set of changes to enable internal load balancing using beta apis 2016-12-01 11:14:21 -08:00
provider_test.go provider/google: Moving the XPN EnvVar check into provider_test.go to stop failed build 2016-12-13 19:29:23 +00:00
resource_compute_address.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_address_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_autoscaler.go provider/google: Support Import of 'google_compute_autoscaler' 2016-08-10 16:19:31 -04:00
resource_compute_autoscaler_test.go Fix acceptance test image reversion (#8349) 2016-08-25 14:39:03 +01:00
resource_compute_backend_service.go use v1 apis instead of beta 2016-12-01 12:27:33 -08:00
resource_compute_backend_service_test.go wrong printf verb 2016-12-12 15:03:21 -05:00
resource_compute_disk.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_disk_test.go Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
resource_compute_firewall.go provider/google: Remove redundant type declaration 2016-08-23 10:40:33 +02:00
resource_compute_firewall_migrate.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
resource_compute_firewall_migrate_test.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
resource_compute_firewall_test.go provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
resource_compute_forwarding_rule.go use v1 apis instead of beta 2016-12-01 12:27:33 -08:00
resource_compute_forwarding_rule_test.go fix tests 2016-12-08 19:59:03 -08:00
resource_compute_global_address.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_global_address_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_global_forwarding_rule.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_global_forwarding_rule_test.go provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
resource_compute_health_check.go use conflictswith for health check instead of separate type field 2016-12-08 13:35:57 -08:00
resource_compute_health_check_test.go use conflictswith for health check instead of separate type field 2016-12-08 13:35:57 -08:00
resource_compute_http_health_check.go provider/google: Support Import of 'google_resource_http_health_check' 2016-08-10 16:30:41 -04:00
resource_compute_http_health_check_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_https_health_check.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_https_health_check_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_image.go Added create timeout for compute images and instances 2016-11-12 18:30:02 -08:00
resource_compute_image_test.go Added create timeout for compute images and instances 2016-11-12 18:30:02 -08:00
resource_compute_instance.go Remove create_timeout backwards incompatibilities. 2016-12-19 23:49:53 -08:00
resource_compute_instance_group.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_instance_group_manager.go Read update_strategy before overwriting it. (#11013) 2017-01-09 23:15:50 +00:00
resource_compute_instance_group_manager_test.go Read update_strategy before overwriting it. (#11013) 2017-01-09 23:15:50 +00:00
resource_compute_instance_group_test.go Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
resource_compute_instance_migrate.go Remove create_timeout backwards incompatibilities. 2016-12-19 23:49:53 -08:00
resource_compute_instance_migrate_test.go Remove create_timeout backwards incompatibilities. 2016-12-19 23:49:53 -08:00
resource_compute_instance_template.go Fix instance/template metadata support 2016-12-05 02:45:28 -08:00
resource_compute_instance_template_test.go Fix instance/template metadata support 2016-12-05 02:45:28 -08:00
resource_compute_instance_test.go provider/google: Moving the XPN EnvVar check into provider_test.go to stop failed build 2016-12-13 19:29:23 +00:00
resource_compute_network.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_network_test.go Add subnetwork resource ACC tests, additional doc updates 2016-02-18 08:37:58 -08:00
resource_compute_project_metadata.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_project_metadata_test.go provider/google: Fix project metadata sshkeys from showing up 2016-01-05 11:37:52 -05:00
resource_compute_region_backend_service.go remove loadBalancingScheme as an option in RegionBackendService since it can only be INTERNAL 2016-12-01 12:27:36 -08:00
resource_compute_region_backend_service_test.go fix tests 2016-12-08 19:59:03 -08:00
resource_compute_route.go Add support for default-internet-gateway alias for google_compute_route (#9676) 2016-11-01 13:45:36 +00:00
resource_compute_route_test.go Add support for default-internet-gateway alias for google_compute_route (#9676) 2016-11-01 13:45:36 +00:00
resource_compute_ssl_certificate.go Add support for name_prefix to google_compute_ssl_certificate 2016-12-12 15:57:58 -08:00
resource_compute_ssl_certificate_test.go Add support for name_prefix to google_compute_ssl_certificate 2016-12-12 15:57:58 -08:00
resource_compute_subnetwork.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_subnetwork_test.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_target_http_proxy.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_target_http_proxy_test.go provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
resource_compute_target_https_proxy.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_target_https_proxy_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_target_pool.go Don't assert nil values in convertStringArr 2016-10-19 10:06:13 -04:00
resource_compute_target_pool_test.go Use healthcheck names instead of urls when reading target pool 2016-08-26 10:45:59 -07:00
resource_compute_url_map.go providers/google: Move URLMap hosts to TypeSet from TypeList (#7472) 2016-08-08 12:47:05 +12:00
resource_compute_url_map_test.go provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
resource_compute_vpn_gateway.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_vpn_gateway_test.go Make network attribute more consistent. 2016-09-05 08:02:54 +12:00
resource_compute_vpn_tunnel.go [provider/google] Use resource-specific project when waiting for creation 2016-06-10 11:55:21 +02:00
resource_compute_vpn_tunnel_test.go providers/google: Fix VPN Tunnel acceptance test 2016-09-05 12:34:40 -07:00
resource_container_cluster.go Use node_version during google_container_cluster creation (#10817) 2016-12-18 13:50:46 +00:00
resource_container_cluster_test.go Use node_version during google_container_cluster creation (#10817) 2016-12-18 13:50:46 +00:00
resource_dns_managed_zone.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_dns_managed_zone_test.go description is now a required field for google_dns_managed_zone 2016-03-02 17:23:11 -03:00
resource_dns_record_set.go provider/google: atomic Cloud DNS record changes (#6575) 2016-08-08 12:36:27 +12:00
resource_dns_record_set_test.go provider/google: atomic Cloud DNS record changes (#6575) 2016-08-08 12:36:27 +12:00
resource_google_project.go providers/google: make projects importable. 2016-12-01 10:38:27 -08:00
resource_google_project_test.go providers/google: Create and delete Service Accounts 2016-11-13 20:47:20 -08:00
resource_google_service_account.go Resolve review feedback 2016-11-17 09:49:22 -08:00
resource_google_service_account_test.go Resolve review feedback 2016-11-17 09:49:22 -08:00
resource_pubsub_subscription.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_pubsub_subscription_test.go provider/google: Fix Pubsub acceptance tests 2016-03-02 15:36:32 -08:00
resource_pubsub_topic.go Accept "project" as an attribute to GCP resources 2016-04-10 13:01:24 -04:00
resource_pubsub_topic_test.go provider/google: Fix Pubsub acceptance tests 2016-03-02 15:36:32 -08:00
resource_sql_database.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_sql_database_instance.go provider/google Change default MySQL instance version to 5.6 (#9674) 2016-10-28 00:11:08 +01:00
resource_sql_database_instance_test.go provider/google: add test case for GH-4222 2016-08-18 15:08:50 -04:00
resource_sql_database_test.go provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
resource_sql_user.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_sql_user_test.go provider/google: SQL user resource, documentation & tests 2016-01-13 16:33:08 -05:00
resource_storage_bucket.go Add support for GCS StorageClass 2016-09-22 07:46:35 +12:00
resource_storage_bucket_acl.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_storage_bucket_acl_test.go provider/google: Address flaky GCS acceptance tests. 2016-03-07 14:26:19 -08:00
resource_storage_bucket_object.go Update documentation to include new "project" attribute 2016-04-10 17:34:15 -04:00
resource_storage_bucket_object_test.go provider/google: Address flaky GCS acceptance tests. 2016-03-07 14:26:19 -08:00
resource_storage_bucket_test.go Add support for GCS StorageClass 2016-09-22 07:46:35 +12:00
resource_storage_object_acl.go use v1 apis instead of beta 2016-12-01 12:27:33 -08:00
resource_storage_object_acl_test.go provider/google: Address flaky GCS acceptance tests. 2016-03-07 14:26:19 -08:00
service_scope.go provider/google: add scope aliases 2016-10-19 23:14:55 +03:00
sqladmin_operation.go provider/google Support MySQL 5.7 instances (#9673) 2016-10-28 14:41:03 +02:00