terraform/builtin/providers
Paul Stack 3f032ff611 provider/aws: Setting static_routes_only on import of vpn_connection (#9802)
fixes #9110

An error was found where, static_routes_only was not set on a vpn
connection import. This commit introduces setting the static_routes_only
to false when no Options are found. This follows the AWS convention as follows:

```
- options (structure)

Indicates whether the VPN connection requires static routes. If you are creating a VPN connection for a device that does not support BGP, you must specify true .
Default: false

```

So we take it that `static_options_only` is false by default

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSVpnConnection_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/11/02 10:38:18 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSVpnConnection_ -timeout 120m
=== RUN   TestAccAWSVpnConnection_importBasic
--- PASS: TestAccAWSVpnConnection_importBasic (178.29s)
=== RUN   TestAccAWSVpnConnection_basic
--- PASS: TestAccAWSVpnConnection_basic (336.81s)
=== RUN   TestAccAWSVpnConnection_withoutStaticRoutes
--- PASS: TestAccAWSVpnConnection_withoutStaticRoutes (195.45s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	710.572s
```
2016-11-07 16:12:41 +00:00
..
archive
atlas
aws provider/aws: Setting static_routes_only on import of vpn_connection (#9802) 2016-11-07 16:12:41 +00:00
azure
azurerm provider/azurerm: EventHubs (#9889) 2016-11-07 10:19:59 +00:00
bitbucket
chef
clc
cloudflare
cloudstack
cobbler
consul
datadog
digitalocean
dme
dnsimple
docker
dyn
fastly
github
google
grafana
heroku
influxdb
librato
logentries
mailgun
mysql
null
openstack provider/openstack: Add 'value_specs' option to 'openstack_fw_firewall_v1' resource 2016-11-05 10:17:33 +00:00
packet
pagerduty
postgresql
powerdns
rabbitmq
random provider/random: Separate read from create 2016-11-06 17:05:11 -06:00
rundeck
scaleway provider/scaleway: fix `scaleway_image` datasource returning unknown images (#9899) 2016-11-05 11:37:02 +00:00
softlayer
statuscake
template
terraform
test
tls
triton
ultradns
vcd
vsphere