terraform/builtin/providers
Paul Stack bed23ffbee provider/aws: Set aws_vpc ipv6 for associated only (#12899)
Fixes: #12895

The AWS API returns both dissociated and associated IPv6 CIDRs. The UI
only returns the associated. Therefore, the assumption was made that we
would always take the 1st association in the set to use for state

We now loop over the set and look for the associated IPv6 CIDR before
using that in state

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSVpc_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/20 21:21:02 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSVpc_ -timeout 120m
=== RUN   TestAccAWSVpc_importBasic
--- PASS: TestAccAWSVpc_importBasic (65.91s)
=== RUN   TestAccAWSVpc_basic
--- PASS: TestAccAWSVpc_basic (50.88s)
=== RUN   TestAccAWSVpc_enableIpv6
--- PASS: TestAccAWSVpc_enableIpv6 (49.89s)
=== RUN   TestAccAWSVpc_dedicatedTenancy
--- PASS: TestAccAWSVpc_dedicatedTenancy (50.59s)
=== RUN   TestAccAWSVpc_tags
--- PASS: TestAccAWSVpc_tags (98.89s)
=== RUN   TestAccAWSVpc_update
--- PASS: TestAccAWSVpc_update (93.46s)
=== RUN   TestAccAWSVpc_bothDnsOptionsSet
--- PASS: TestAccAWSVpc_bothDnsOptionsSet (20.71s)
=== RUN   TestAccAWSVpc_DisabledDnsSupport
--- PASS: TestAccAWSVpc_DisabledDnsSupport (49.55s)
=== RUN   TestAccAWSVpc_classiclinkOptionSet
--- PASS: TestAccAWSVpc_classiclinkOptionSet (54.92s)
PASS
ok	github.com/hashicorp/terraform/builtin/providers/aws	534.829s
```
2017-03-23 10:24:09 +02:00
..
alicloud Revert "provider/alicloud: change create ecs postpaid instance API" (#12724) 2017-03-15 17:18:11 +02:00
archive
arukas provider/arukas: Increase timeout to 15mins & use standard helper (#12849) 2017-03-19 18:55:11 +00:00
atlas
aws provider/aws: Set aws_vpc ipv6 for associated only (#12899) 2017-03-23 10:24:09 +02:00
azure
azurerm provider/azurerm: Add support for extensions on virtual machine scale sets (#12124) 2017-03-12 16:13:38 +02:00
bitbucket
chef
circonus Add the `check_id` out parameter to `circonus_check`. (#12832) 2017-03-17 18:36:10 -04:00
clc
cloudflare
cloudstack Add params zone_id to cloudstack ipaddress resource (#11306) 2017-03-21 12:02:38 +01:00
cobbler provider/cobbler: Profile and System Fixes (#12452) 2017-03-06 13:19:30 +02:00
consul feat(consul): add basic auth to consul provider (#12679) 2017-03-20 13:00:44 +00:00
datadog datadog: Fix incorrect schema of monitor for 'silenced' (#12720) 2017-03-15 15:01:49 +00:00
digitalocean
dme
dns Convert dns data tests to acceptance tests 2017-03-17 12:07:29 -04:00
dnsimple Allow dnsimple_record.priority attribute to be set (#12843) 2017-03-18 13:04:48 +00:00
docker provider/docker: added support for linux capabilities (#12045) 2017-03-07 18:48:20 +02:00
dyn
external
fastly Add Fastly SSL validation fields (#12578) 2017-03-13 20:49:39 +02:00
github provider/github: Randomize repo and team names in acc tests (#12802) 2017-03-17 10:47:43 +00:00
google provider/google: turn compute_instance_group.instances into a set (#12790) 2017-03-22 17:47:41 -07:00
grafana
heroku Updates heroku-go to the latest revision (#12575) 2017-03-10 14:00:03 +02:00
icinga2
ignition provider/ignition: migration from resources to data resources (#11851) 2017-03-06 14:23:04 +02:00
influxdb
kubernetes kubernetes: Add config_map resource (#12753) 2017-03-16 14:51:01 +00:00
librato librato: Work around eventual consistency of the API (#12816) 2017-03-17 16:52:38 +00:00
logentries
mailgun
mysql MySQL Provider does not recreate user if user got deleted manually in MySQL (#12791) 2017-03-18 13:15:01 +00:00
newrelic
nomad
ns1 ns1: Fix incorrect schema for 'ns1_user.notify' (#12721) 2017-03-15 14:39:26 +00:00
null
openstack provider/openstack: Adding Timeouts to Network Resources (#12866) 2017-03-19 17:23:36 +00:00
opsgenie
packet provider/packet: Update ssh-key resource test to run in parallel better 2017-03-14 11:11:57 -04:00
pagerduty provider/pagerduty: Validate credentials (#12854) 2017-03-19 17:37:46 +00:00
postgresql
powerdns
profitbricks panic_prevention (#12819) 2017-03-17 18:27:21 +00:00
rabbitmq
rancher Add rancher_certificate resource type (#12717) 2017-03-15 16:22:34 +02:00
random
rundeck
scaleway Added schema to expose public IPv6 (#12748) 2017-03-16 20:00:30 +01:00
softlayer
spotinst
statuscake provider/statuscake: use default status code list when updating test (#12375) 2017-03-05 15:44:22 +02:00
template
terraform
test
tls
triton
ultradns
vault
vcd
vsphere