This commit is contained in:
2025-04-09 11:21:07 +03:00
parent 3f21a89e80
commit 8a101c6fcb
115 changed files with 2342 additions and 429 deletions

View File

@@ -17,19 +17,20 @@ import (
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/lb"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/locations"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/rg"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/sep"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/stack"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/tasks"
"repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudapi/vins"
disks_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/disks"
image_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/image"
node_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/node"
account_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/account"
audit_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/audit"
compute_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/compute"
disks_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/disks"
extnet_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/extnet"
flipgroup_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/flipgroup"
grid_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/grid"
image_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/image"
k8ci_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/k8ci"
k8s_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/k8s"
lb_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/lb"
@@ -281,6 +282,14 @@ func TestGetListCloudAPI(t *testing.T) {
t.Errorf("Can not test RG get because RG list is empty")
}
// SEP
// List available sep and pools
bytes, err = client.CloudAPI().SEP().ListAvailableSEPAndPoolsRaw(context.Background(), sep.ListAvailableSEPAndPoolsRequest{AccountID: 1})
if err != nil {
t.Error(err)
}
testLogs = append(testLogs, getResult("SEP list", bytes, sep.ListAvailableSEP{}, t))
// Stack
// List
bytes, err = client.CloudAPI().Stack().ListRaw(context.Background(), stack.ListRequest{})
@@ -485,7 +494,7 @@ func TestGetListCloudbroker(t *testing.T) {
}
// Image
// List
//// List
bytes, err = client.CloudBroker().Image().ListRaw(context.Background(), image_cb.ListRequest{})
if err != nil {
t.Error(err)
@@ -632,6 +641,12 @@ func TestGetListCloudbroker(t *testing.T) {
t.Errorf("Can not test SEP get because SEP list is empty")
}
bytes, err = client.CloudBroker().SEP().ListAvailableSEPAndPoolsRaw(context.Background(), sep_cb.ListAvailableSEPAndPoolsRequest{AccountID: 1})
if err != nil {
t.Error(err)
}
testLogs = append(testLogs, getResult("SEP and pools list", bytes, sep_cb.ListAvailableSEP{}, t))
// Stack
// List
bytes, err = client.CloudBroker().Stack().ListRaw(context.Background(), stack_cb.ListRequest{})