terraform/website/source/docs/providers
Daniel Portella 11b3b7cf29 provider/docker: Fixes for docker_container host object and documentation (#9367)
* Updated docker container documentation

Feedback from ticket #9350 indicated that documentation was out of date

renamed `hosts_entry` to `host`
added correct type information to *Extra Hosts* section.

Refs: 9350

* Fixes for docker_container host object

Feedback from ticket #9350 updated codebase so it reflects the requirements from docker in regards to `host` which is `Required` and not optional.
It now accurately reflects the docker requirements and the terraform documentation.

Test results

> Bear in mind the failure it is because my laptop doesnt support memory swap. So this test will always fail.

Changing the Schema from `optional` to `required` made no difference to the tests.

make testacc TEST=./builtin/providers/docker/
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/10/14 15:04:40 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/docker/ -v  -timeout 120m
=== RUN   TestAccDockerRegistryImage_basic
--- PASS: TestAccDockerRegistryImage_basic (4.57s)
=== RUN   TestAccDockerRegistryImage_private
--- PASS: TestAccDockerRegistryImage_private (6.22s)
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccDockerContainer_basic
--- PASS: TestAccDockerContainer_basic (7.16s)
=== RUN   TestAccDockerContainer_volume
--- PASS: TestAccDockerContainer_volume (7.37s)
=== RUN   TestAccDockerContainer_customized
--- FAIL: TestAccDockerContainer_customized (18.99s)
	testing.go:265: Step 0 error: Check failed: Check 2/2 error: Container has wrong memory swap setting: -1
	Please check that you machine supports memory swap (you can do that by running 'docker info' command).
=== RUN   TestAccDockerImage_basic
--- PASS: TestAccDockerImage_basic (2.58s)
=== RUN   TestAccDockerImage_private
--- PASS: TestAccDockerImage_private (2.70s)
=== RUN   TestAccDockerImage_destroy
--- PASS: TestAccDockerImage_destroy (30.00s)
=== RUN   TestAccDockerImage_data
--- PASS: TestAccDockerImage_data (5.93s)
=== RUN   TestAccDockerNetwork_basic
--- PASS: TestAccDockerNetwork_basic (0.24s)
=== RUN   TestAccDockerVolume_basic
--- PASS: TestAccDockerVolume_basic (0.05s)
FAIL
exit status 1
FAIL	github.com/hashicorp/terraform/builtin/providers/docker	85.816s
Makefile:47: recipe for target 'testacc' failed
make: *** [testacc] Error 1

Refs: 9350
2016-10-27 10:54:05 +01:00
..
archive provider/archive: Converting to datasource. (#8492) 2016-10-25 15:59:06 +01:00
atlas
aws Merge pull request #9605 from hashicorp/keybase-aws-login-profile 2016-10-25 20:09:42 -05:00
azure provider/azure: add custom_data argument for azure_instance resource (#8158) 2016-08-14 11:02:49 +01:00
azurerm provider/azurerm: support importing of subnet resource (#9646) 2016-10-27 10:20:45 +01:00
bitbucket adds missing `language` argument 2016-10-22 18:35:37 +02:00
chef
clc docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
cloudflare
cloudstack provider/cloudstack: enhance security groups and rules (#9645) 2016-10-27 11:10:15 +02:00
cobbler docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
consul Fixes for consul_service resource (#9366) 2016-10-26 13:07:00 +01:00
datadog Document datadog style and palette options 2016-10-05 09:44:54 +01:00
dme
dnsimple Merge branch 'goloroden-patch-1' 2016-07-27 12:30:07 +01:00
do Allow resizing DigitalOcean Droplets without increasing disk size. 2016-10-24 20:00:04 -04:00
docker provider/docker: Fixes for docker_container host object and documentation (#9367) 2016-10-27 10:54:05 +01:00
dyn
fastly docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
github website: github_team_repository purpose clarification 2016-10-13 08:04:18 -07:00
google Fix link pointing to GCE docs 2016-10-22 18:34:59 +01:00
grafana
heroku
influxdb Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
librato docs: Fix misspelled words 2016-09-12 07:08:00 +01:00
logentries mostly typos in documens and aws autoscaling id instead of name 2016-09-30 22:41:15 +02:00
mailgun
mysql provider/mysql: user and grant resources (#7656) 2016-07-26 19:19:39 +01:00
openstack Merge pull request #9617 from jtopjian/openstack-fwaas-proto-any 2016-10-26 12:56:11 -06:00
packet Fix file extension (#8343) 2016-08-20 12:03:20 +01:00
pagerduty Add support for teams in escalation policies & vendor support 2016-10-24 15:01:35 +02:00
postgresql
powerdns Fix invalid markdown syntax (#8089) 2016-08-10 13:16:31 +12:00
rabbitmq provider/rabbitmq: docs 2016-09-01 19:04:41 +00:00
random
rundeck
scaleway Merge pull request #9321 from Zhebr/patch-1 2016-10-25 14:39:49 +01:00
softlayer
statuscake docs/statuscake: Adding the parameter to the docs 2016-08-29 00:00:27 +01:00
template
terraform Update remote_state.html.md 2016-10-24 14:14:49 -07:00
tls Restore tls_cert_request to being a managed resource 2016-09-24 12:22:07 -07:00
triton
ultradns
vcd
vsphere Adding 'detach_unknown_disks_on_delete' flag for VM resource 2016-09-26 18:16:02 -07:00
index.html.markdown