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