Skip to content

Commit

Permalink
website: document vsphere acctest instructions
Browse files Browse the repository at this point in the history
closes #3524
  • Loading branch information
phinze committed Oct 29, 2015
1 parent af04321 commit be3dd42
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
```

1 comment on commit be3dd42

@chrislovecnm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!!

Please sign in to comment.