func TestGetLogicalInterconnectGroups(t *testing.T) { var ( c *ov.OVClient ) if os.Getenv("ONEVIEW_TEST_ACCEPTANCE") == "true" { _, c = getTestDriverA("test_logical_interconnect_group") if c == nil { t.Fatalf("Failed to execute getTestDriver() ") } logicalInterconnectGroups, err := c.GetLogicalInterconnectGroups("", "") assert.NoError(t, err, "GetLogicalInterconnectGroup threw error -> %s, %+v\n", err, logicalInterconnectGroups) logicalInterconnectGroups, err = c.GetLogicalInterconnectGroups("", "name:asc") assert.NoError(t, err, "GetLogicalInterconnectGroup name:asc error -> %s, %+v\n", err, logicalInterconnectGroups) } else { _, c = getTestDriverU("test_logical_interconnect_group") data, err := c.GetLogicalInterconnectGroups("", "") assert.Error(t, err, fmt.Sprintf("ALL ok, no error, caught as expected: %s,%+v\n", err, data)) } }