Skip to content

Commit

Permalink
Merge pull request #3683 from hashicorp/phinze/doc-vsphere-acctests
Browse files Browse the repository at this point in the history
website: document vsphere acctest instructions
  • Loading branch information
phinze committed Oct 29, 2015
2 parents b1cf7f4 + be3dd42 commit 79e6f2f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions website/source/docs/providers/vsphere/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,28 @@ The following arguments are used to configure the vSphere Provider:
operations. Can also be specified with the `VSPHERE_VCENTER` environment
variable.

## Acceptance Tests

The vSphere provider's acceptance tests require the above provider
configuration fields to be set using the documented environment variables.

In addition, the following environment variables are used in tests, and must be set to valid values for your vSphere environment:

* VSPHERE\_CLUSTER
* VSPHERE\_DATACENTER
* VSPHERE\_DATASTORE
* VSPHERE\_NETWORK\_GATEWAY
* VSPHERE\_NETWORK\_IP\_ADDRESS
* VSPHERE\_NETWORK\_LABEL
* VSPHERE\_NETWORK\_LABEL\_DHCP
* VSPHERE\_TEMPLATE
* VSPHERE\_VM\_PASSWORD

These are used to set and verify attributes on the `vsphere_virtual_machine`
resource in tests.

Once all these variables are in place, the tests can be run like this:

```
make testacc TEST=./builtin/providers/vsphere
```

0 comments on commit 79e6f2f

Please sign in to comment.