File tree Expand file tree Collapse file tree
website/source/docs/providers/vsphere Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ ```
You can’t perform that action at this time.
0 commit comments