func main() { fmt.Println("Hello World!") store := lib.GetDefaultStore("test_cluster") hostname := "myhost" validateName := host.validHostName(hostname) if !validateName { fmt.Printf("Error creating machine: %s", errs.ErrInvalidHostname) return } driver := }
) var _ = Describe("pkg", func() { var ( sl_driver drivers.Driver store persist.Store err error name string ) BeforeEach(func() { name = "apmwdc-001" store = lib.GetDefaultStore(name) hostname := name sl_driver, err = sl_cloud.NewDriver(hostname, store.MyDir()) Expect(err).To(BeNil()) // Expect(err.Error()).To(ContainSubstring("Failed to init sl client!")) Expect(sl_driver).ToNot(BeNil()) fmt.Println(sl_driver) // err = sl_driver.PreCreateCheck()