terraform/builtin/providers
Paul Stack 8c9bfb7bfe provider/datadog: Adding default values to datadog_monitor (#12168)
Fixes: #8055
Fixes: #10264
Fixes: #10881

We have swapped from using d.GetOk (as that func returns nil when a
default value is used) and moved to using default values that we can
pass directly to the Struct. The fact we have default values, means that
we can use d.Get which will work here

```
% make testacc TEST=./builtin/providers/datadog
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/22 18:56:03 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/datadog -v  -timeout 120m
=== RUN   TestDatadogMonitor_import
--- PASS: TestDatadogMonitor_import (8.66s)
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccDatadogMonitor_Basic
--- PASS: TestAccDatadogMonitor_Basic (5.68s)
=== RUN   TestAccDatadogMonitor_BasicNoTreshold
--- PASS: TestAccDatadogMonitor_BasicNoTreshold (3.13s)
=== RUN   TestAccDatadogMonitor_Updated
--- PASS: TestAccDatadogMonitor_Updated (6.41s)
=== RUN   TestAccDatadogMonitor_TrimWhitespace
--- PASS: TestAccDatadogMonitor_TrimWhitespace (3.22s)
=== RUN   TestAccDatadogMonitor_Basic_float_int
--- PASS: TestAccDatadogMonitor_Basic_float_int (5.50s)
=== RUN   TestAccDatadogTimeboard_update
--- PASS: TestAccDatadogTimeboard_update (8.35s)
=== RUN   TestValidateAggregatorMethod
--- PASS: TestValidateAggregatorMethod (0.00s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/datadog	40.954s
```
2017-02-22 19:36:59 +02:00
..
alicloud
archive
arukas New provider arukas (#11171) 2017-02-13 19:11:30 +00:00
atlas
aws provider/aws: New resource codepipeline (#11814) 2017-02-22 19:31:24 +02:00
azure
azurerm provider/azurerm: Auto base64encode virtual_machine custom data (#12164) 2017-02-22 18:26:35 +02:00
bitbucket
chef
clc
cloudflare add missing return 2017-02-16 07:57:34 -05:00
cloudstack
cobbler
consul Remove the AWS Access Key and Secret Access keys from the (#12061) 2017-02-17 13:36:38 -08:00
datadog provider/datadog: Adding default values to datadog_monitor (#12168) 2017-02-22 19:36:59 +02:00
digitalocean provider/digitalocean: Fix faililng acceptance test (#11887) 2017-02-12 19:57:44 +00:00
dme
dns provider/dns: DNS dynamic updates (RFC 2136) 2017-02-10 21:38:26 +01:00
dnsimple
docker
dyn
external
fastly provider/fastly Adds fastly response object (#12032) 2017-02-17 10:36:05 -06:00
github
google providers/google: google_project supports billing account (#11653) 2017-02-20 19:32:24 +02:00
grafana
heroku
icinga2
ignition
influxdb
librato
logentries
mailgun
mysql
newrelic
nomad provider/nomad: Update jobspec parser 2017-02-03 18:19:23 -05:00
ns1
null
openstack provider/openstack: Image Data Source (#12097) 2017-02-20 19:03:17 +02:00
opsgenie
packet
pagerduty Add support for missing attributes for PagerDuty service resource (#11856) 2017-02-13 11:41:24 +00:00
postgresql
powerdns
profitbricks Terraform provider ProfitBricks - Data Sources (#11520) 2017-02-02 13:26:14 +00:00
rabbitmq
rancher rancher: parse Rancher client cli.json config file (#11658) 2017-02-15 09:51:56 +00:00
random Add a prefix option to random_id provider 2017-02-16 11:08:17 -05:00
rundeck
scaleway
softlayer
statuscake provider/statuscake: Fixing up the StatusCake acceptance tests (#12006) 2017-02-16 16:20:23 +02:00
template
terraform
test
tls
triton
ultradns ultradns: revert record thresholds 2017-02-10 13:11:33 -08:00
vault provider/vault: vault_policy resource (#10980) 2017-02-13 18:53:45 +00:00
vcd
vsphere Don't ignore VM power on errors. This prevents Terraform from hanging indefinitely for the VM to power on. (#11604) 2017-02-01 14:31:40 +00:00