terraform/builtin/provisioners/chef
Sander van Harmelen 0e422737ba Fix and refactor the Chef provisioner
The tests did pass, but that was because they only tested part of the changes. By using the `schema.TestResourceDataRaw` function the schema and config are better tested and so they pointed out a problem with the schema of the Chef provisioner.

The `Elem` fields did not have a `*schema.Schema` but a `schema.Schema` and in an `Elem` schema only the `Type` field may (and must) be set. Any other fields like `Optional` are not allowed here.

Next to fixing that problem I also did a little refactoring and cleaning up. Mainly making the `ProvisionerS` private (`provisioner`) and removing the deprecated fields.
2017-05-19 21:05:21 +02:00
..
test-fixtures
linux_provisioner.go Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
linux_provisioner_test.go Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
resource_provisioner.go Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
resource_provisioner_test.go Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
windows_provisioner.go Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00
windows_provisioner_test.go Fix and refactor the Chef provisioner 2017-05-19 21:05:21 +02:00