This commit is contained in:
2026-06-26 16:39:51 +04:00
parent cd5d1c9d0b
commit 118b48c3bc
26 changed files with 614 additions and 151 deletions

View File

@@ -123,7 +123,7 @@ func TestGetListCloudAPI(t *testing.T) {
getResult("Compute list", bytes, compute.ListComputes{}, t)
// Get
listComp, _ := client.CloudAPI().Compute().List(context.Background(), compute.ListRequest{})
if len(listComp.Data) > 0 {
if listComp != nil && len(listComp.Data) > 0 {
id := listComp.Data[0].ID
bytes, err = client.CloudAPI().Compute().GetRaw(context.Background(), compute.GetRequest{ComputeID: id})
if err != nil {