Skip to content

Commit be3dd42

Browse files
committed
website: document vsphere acctest instructions
closes hashicorp#3524
1 parent af04321 commit be3dd42

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

website/source/docs/providers/vsphere/index.html.markdown

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,28 @@ The following arguments are used to configure the vSphere Provider:
5757
operations. Can also be specified with the `VSPHERE_VCENTER` environment
5858
variable.
5959

60+
## Acceptance Tests
61+
62+
The vSphere provider's acceptance tests require the above provider
63+
configuration fields to be set using the documented environment variables.
64+
65+
In addition, the following environment variables are used in tests, and must be set to valid values for your vSphere environment:
66+
67+
* VSPHERE\_CLUSTER
68+
* VSPHERE\_DATACENTER
69+
* VSPHERE\_DATASTORE
70+
* VSPHERE\_NETWORK\_GATEWAY
71+
* VSPHERE\_NETWORK\_IP\_ADDRESS
72+
* VSPHERE\_NETWORK\_LABEL
73+
* VSPHERE\_NETWORK\_LABEL\_DHCP
74+
* VSPHERE\_TEMPLATE
75+
* VSPHERE\_VM\_PASSWORD
76+
77+
These are used to set and verify attributes on the `vsphere_virtual_machine`
78+
resource in tests.
79+
80+
Once all these variables are in place, the tests can be run like this:
81+
82+
```
83+
make testacc TEST=./builtin/providers/vsphere
84+
```

0 commit comments

Comments
 (0)