2017-11-13 16:02:46 -05:00
|
|
|
package driver
|
2017-10-25 18:07:25 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestHostAcc(t *testing.T) {
|
2020-01-08 13:22:55 -05:00
|
|
|
t.Skip("Acceptance tests not configured yet.")
|
2017-11-13 16:02:46 -05:00
|
|
|
d := newTestDriver(t)
|
2018-01-24 08:35:04 -05:00
|
|
|
host, err := d.FindHost(TestHostName)
|
2017-10-25 18:07:25 -04:00
|
|
|
if err != nil {
|
2017-11-08 11:47:29 -05:00
|
|
|
t.Fatalf("Cannot find the default host '%v': %v", "datastore1", err)
|
2017-10-25 18:07:25 -04:00
|
|
|
}
|
2017-11-13 16:02:46 -05:00
|
|
|
|
|
|
|
info, err := host.Info("name")
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("Cannot read host properties: %v", err)
|
|
|
|
}
|
2018-01-24 08:35:04 -05:00
|
|
|
if info.Name != TestHostName {
|
|
|
|
t.Errorf("Wrong host name: expected '%v', got: '%v'", TestHostName, info.Name)
|
2017-10-25 18:07:25 -04:00
|
|
|
}
|
|
|
|
}
|