Example #1
0
func TestMachineInfo(t *testing.T) {
	m, _ := softlayer.NewMachine(newBaseMachine(t))

	c := context.Background()
	_, _, err := m.Info(c)
	if err != nil {
		t.Fatal(err)
	}
}
Example #2
0
func TestNewMachine(t *testing.T) {
	if _, err := softlayer.NewMachine(newBaseMachine(t)); err != nil {
		t.Fatal(err)
	}
}