Ejemplo n.º 1
0
func TestGetServerByHostName(t *testing.T) {
	var (
		d *ICSPTest
		c *icsp.ICSPClient
	)
	if os.Getenv("ICSP_TEST_ACCEPTANCE") == "true" {
		d, c = getTestDriverA()
		if c == nil {
			t.Fatalf("Failed to execute getTestDriver() ")
		}
		testHostName := d.Tc.GetTestData(d.Env, "FreeHostName").(string)
		data, err := c.GetServerByHostName(testHostName)
		assert.NoError(t, err, "GetServerByName threw error -> %s, %+v\n", err, data)
	}
}