terraform/builtin/providers
Paul Stack 3472cab7d6 provider/aws: Fix panic in aws_acm_certificate datasource (#10051)
Fixes #10042
Fixes #9989

Another panic was found with this resource. IT essentially was causing a
panic when no certificates were found. This was due to the casting of
status to []string

There are times when there are no statuses passed in. Made the error
message a lot more generic now rather than having something like this

```

No certificate with statuses [] for domain mytestdomain.com found in this region.
```

This now becomes:

```
No certificate for domain mytestdomain.com found in this region.
```

Also, added a test to show that the panic is gone

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAwsAcmCertificateDataSource_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/11/11 15:11:33 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v
-run=TestAccAwsAcmCertificateDataSource_ -timeout 120m
=== RUN   TestAccAwsAcmCertificateDataSource_noMatchReturnsError
--- PASS: TestAccAwsAcmCertificateDataSource_noMatchReturnsError (6.07s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws6.094s
```
2016-11-11 16:07:50 +02:00
..
archive provider/archive: Converting to datasource. (#8492) 2016-10-25 15:59:06 +01:00
atlas
aws provider/aws: Fix panic in aws_acm_certificate datasource (#10051) 2016-11-11 16:07:50 +02:00
azure
azurerm provider/azurerm: allow updating load balancer sub-resources (#10016) 2016-11-11 13:09:00 +02:00
bitbucket
chef
clc
cloudflare
cloudstack Adding private gateway and static route resource to cloudstack provider (#9637) 2016-10-27 21:06:39 +02:00
cobbler
consul Fixes for consul_service resource (#9366) 2016-10-26 13:07:00 +01:00
datadog provider/datadog: Reduce diff on thresholds 2016-10-20 10:22:24 -05:00
digitalocean provider/digitalocean: Ingore resize_disk on the import DO droplet tests 2016-10-25 11:40:56 +01:00
dme
dnsimple
docker provider/docker: Fixes for docker_container host object and documentation (#9367) 2016-10-27 10:54:05 +01:00
dyn
fastly
github provider/github: github_repository resource 2016-10-13 08:04:17 -07:00
google provider/google: throw an error for invalid disks 2016-11-07 16:11:00 -08:00
grafana
heroku
influxdb
librato
logentries
mailgun
mysql
nomad providers/nomad: suppress diff for identical jobspecs 2016-11-09 18:25:03 -08:00
null
openstack provider/openstack: Add 'value_specs' option to 'openstack_fw_firewall_v1' resource 2016-11-05 10:17:33 +00:00
packet
pagerduty Remove the unnecessary use of &schema.Schema 2016-10-24 16:43:53 +02:00
postgresql provider/postgresql: Fixing up the PG Extension test 2016-11-03 12:06:51 +00:00
powerdns
rabbitmq Fix vet issues 2016-10-18 11:11:12 -04:00
random provider/random: Separate read from create 2016-11-06 17:05:11 -06:00
rundeck
scaleway provider/scaleway: update sdk (#9976) 2016-11-09 09:32:56 +00:00
softlayer
statuscake
template Remove sthulb/mine/multipart 2016-11-04 11:23:21 +00:00
terraform
test
tls
triton
ultradns
vault provider/vault: vault_generic_secret data source 2016-10-29 23:16:57 -07:00
vcd
vsphere