This commit is contained in:
dayterr
2026-05-08 14:10:06 +03:00
parent 2bd93e92c2
commit f93065e8b1
11 changed files with 252 additions and 85 deletions

View File

@@ -22,6 +22,7 @@ import (
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/stpolicy"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/tasks"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/trunk"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/vgpu"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/vins"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/zone"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/sdn/acsgroups"
@@ -409,6 +410,14 @@ func TestGetListCloudAPI(t *testing.T) {
t.Errorf("Can not test VINS get because VINS list is empty")
}
// VGPU
// List
bytes, err = client.CloudAPI().VGPU().ListRaw(context.Background(), vgpu.ListRequest{})
if err != nil {
t.Error(err)
}
getResult("VGPU list", bytes, vgpu.ListVGPU{}, t)
// Zone
// List
bytes, err = client.CloudAPI().Zone().ListRaw(context.Background(), zone.ListRequest{})