terraform/builtin/providers
James Nugent c91b648c15 core: Test fix for mismatched diffs from GH-4965
This test presents itself in an awkward manner as part of the AWS test
suite rather than the core test suite - this is because you cannot use
real providers in context tests because of circular references, and
simplistic test providers in that package do not demonstrate the issue.
In the interests of getting this fix in quickly and still having
regression coverage for it, it was agreed to include the change here
instead.

Running the test TestAccAWSVPC_coreMismatchedDiffs without the changes
in d95ab75 applied leads to the following output:

```
$ make testacc TEST=./builtin/providers/aws TESTARGS="-run TestAccAWSVPC_coreMismatchedDiffs"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
GO15VENDOREXPERIMENT=1 go generate $(GO15VENDOREXPERIMENT=1 go list ./... | grep -v /vendor/)
TF_ACC=1 GO15VENDOREXPERIMENT=1 go test ./builtin/providers/aws -v -run TestAccAWSVPC_coreMismatchedDiffs -timeout 120m
=== RUN   TestAccAWSVPC_coreMismatchedDiffs
--- FAIL: TestAccAWSVPC_coreMismatchedDiffs (2.26s)
	testing.go:148: Step 0 error: Error applying: 1 error(s) occurred:

		* aws_vpc.test: diffs didn't match during apply. This is a bug with Terraform and should be reported.
FAIL
exit status 1
FAIL	github.com/hashicorp/terraform/builtin/providers/aws	2.281s
make: *** [testacc] Error 1
```

Applying the changes in d95ab75 (pull request GH-4965) yields the
following result when running the test:

```
$ make testacc TEST=./builtin/providers/aws TESTARGS="-run TestAccAWSVPC_coreMismatchedDiffs"
==> Checking that code complies with gofmt requirements...
/Users/James/Code/go/bin/stringer
GO15VENDOREXPERIMENT=1 go generate $(GO15VENDOREXPERIMENT=1 go list ./... | grep -v /vendor/)
TF_ACC=1 GO15VENDOREXPERIMENT=1 go test ./builtin/providers/aws -v -run TestAccAWSVPC_coreMismatchedDiffs -timeout 120m
=== RUN   TestAccAWSVPC_coreMismatchedDiffs
--- PASS: TestAccAWSVPC_coreMismatchedDiffs (15.17s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	15.183s
```

The test has a rather misleading name ("AWS") such that it is actually run as
part of the nightly acceptance testing. The VPC resource is quick and free to
create, hence the selection.
2016-02-19 21:24:49 -05:00
..
atlas Use built-in schema.HashString. 2016-02-07 16:29:34 -08:00
aws core: Test fix for mismatched diffs from GH-4965 2016-02-19 21:24:49 -05:00
azure Enable `go vet -unusedresult` check and fix warnings. 2016-02-17 11:59:50 -08:00
azurerm provider/azurerm: Use Riviera for Resource Groups 2016-02-18 14:50:43 -08:00
chef provider/chef: Fix go vet issues 2016-02-18 09:42:00 -08:00
cloudflare provider/cloudflare: Change CloudFlare record TTL property to be 2016-02-07 22:33:21 +00:00
cloudstack Policing up the new `tags` code from @Carles-Figuerola 2016-01-22 12:13:26 +01:00
consul consul: Fix several problems w/ consul_keys update 2016-01-26 14:46:26 -06:00
digitalocean Enable `go vet -unusedresult` check and fix warnings. 2016-02-17 11:59:50 -08:00
dme provider/dme: Add support for `gtdLocation` 2016-01-20 20:23:29 -05:00
dnsimple
docker Merge pull request #5046 from tpounds/use-built-in-schema-string-hash 2016-02-12 07:58:34 -06:00
dyn
google Merge pull request #5177 from hashicorp/f-go-1.6 2016-02-18 10:01:49 -08:00
heroku Enable `go vet -composites` check and fix warnings. 2016-02-17 11:59:50 -08:00
mailgun mailgun: fixup go vet problem in test 2016-01-21 13:02:26 -06:00
mysql
null
openstack Merge pull request #5106 from kars7e/master 2016-02-18 20:26:44 -07:00
packet Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
postgresql
powerdns provider/powerdns: Correct dangling resource check 2016-01-28 14:03:33 -05:00
rundeck
statuscake Fix `go vet -unreachable` warnings. 2016-02-17 11:59:50 -08:00
template providers/template: don't use config/lang 2016-02-03 13:24:04 -05:00
terraform
tls Enable `go vet -unusedresult` check and fix warnings. 2016-02-17 11:59:50 -08:00
vcd When creating a new VApp wait for the VM to be given an IP address if using DHCP 2016-02-18 14:44:18 -08:00
vsphere Fix additional vet warnings 2016-02-17 11:59:50 -08:00