fix tests

datacenter has multiple datastores, so target must be specified explicitly (#57)
This commit is contained in:
Michael Kuzmin
2018-03-12 21:41:38 +03:00
parent 92689b6ee8
commit 3b58d3d63d
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@ func defaultConfig() map[string]interface{} {
"template": "alpine",
"host": "esxi-1.vsphere65.test",
"datastore": "datastore1",
"ssh_username": "root",
"ssh_password": "jetbrains",
+1
View File
@@ -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"
+1
View File
@@ -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)
+1
View File
@@ -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",