예제 #1
0
// TestGetServerByID test getting a server from id
func TestGetServerByID(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() ")
		}
		saObjectID := d.Tc.GetTestData(d.Env, "SAObjectID").(string)
		data, err := c.GetServerByID(saObjectID)
		assert.NoError(t, err, "GetServerByName threw error -> %s, %+v\n", err, data)
	}
}