v1.15.2
v1.15.2
This commit is contained in:
@@ -711,7 +711,7 @@ func TestGetListCloudbroker(t *testing.T) {
|
||||
getResult("Node list", bytes, node_cb.ListNodes{}, t)
|
||||
// Get
|
||||
listNode, _ := client.CloudBroker().Node().List(context.Background(), node_cb.ListRequest{})
|
||||
if len(listLB.Data) > 0 {
|
||||
if listNode != nil && len(listNode.Data) > 0 {
|
||||
id := listNode.Data[0].ID
|
||||
bytes, err = client.CloudBroker().Node().GetRaw(context.Background(), node_cb.GetRequest{NID: id})
|
||||
if err != nil {
|
||||
@@ -725,11 +725,11 @@ func TestGetListCloudbroker(t *testing.T) {
|
||||
}
|
||||
getResult("Node get_network_info", bytes, node_cb.RecordNodeNetworkInfo{}, t)
|
||||
} else {
|
||||
t.Errorf("Can not test Node get because LB list is empty")
|
||||
t.Errorf("Can not test Node get because node list is empty")
|
||||
}
|
||||
|
||||
// Node GetPCIDevices
|
||||
if len(listNode.Data) > 0 {
|
||||
if listNode != nil && len(listNode.Data) > 0 {
|
||||
id := listNode.Data[0].ID
|
||||
bytes, err = client.CloudBroker().Node().GetPCIDevicesRaw(context.Background(), node_cb.GetPCIDevicesRequest{NodeID: id})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user