fix tests
datacenter has multiple datastores, so target must be specified explicitly (#57)
This commit is contained in:
parent
92689b6ee8
commit
3b58d3d63d
|
@ -27,6 +27,7 @@ func defaultConfig() map[string]interface{} {
|
|||
|
||||
"template": "alpine",
|
||||
"host": "esxi-1.vsphere65.test",
|
||||
"datastore": "datastore1",
|
||||
|
||||
"ssh_username": "root",
|
||||
"ssh_password": "jetbrains",
|
||||
|
|
|
@ -29,6 +29,7 @@ func TestVMAcc_clone(t *testing.T) {
|
|||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
tc.config.Host = TestHostName
|
||||
tc.config.Datastore = "datastore1"
|
||||
tc.config.Name = newVMName()
|
||||
|
||||
templateName := "alpine"
|
||||
|
|
|
@ -19,6 +19,7 @@ func TestVMAcc_create(t *testing.T) {
|
|||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
tc.config.Host = TestHostName
|
||||
tc.config.Datastore = "datastore1"
|
||||
tc.config.Name = newVMName()
|
||||
|
||||
d := newTestDriver(t)
|
||||
|
|
|
@ -27,6 +27,7 @@ func defaultConfig() map[string]interface{} {
|
|||
"insecure_connection": true,
|
||||
|
||||
"host": "esxi-1.vsphere65.test",
|
||||
"datastore": "datastore1",
|
||||
|
||||
"ssh_username": "root",
|
||||
"ssh_password": "jetbrains",
|
||||
|
|
Loading…
Reference in New Issue