packer-cn/driver/testing/resource_pool_acc_test.go

15 lines
346 B
Go
Raw Normal View History

package testing
import "testing"
func TestResourcePoolAcc(t *testing.T) {
initDriverAcceptanceTest(t)
d := NewTestDriver(t)
2017-11-08 11:47:29 -05:00
p, err := d.FindResourcePool("esxi-1.vsphere55.test", "pool1/pool2")
if err != nil {
2017-11-08 11:47:29 -05:00
t.Fatalf("Cannot find the default resource pool '%v': %v", "pool1/pool2", err)
}
2017-11-08 11:47:29 -05:00
CheckResourcePoolPath(t, p, "pool1/pool2")
}