opentelekomcloud / gophertelekomcloud

GopherTelekomCloud is an OpenTelekomCloud clouds Go SDK
Apache License 2.0
19 stars 9 forks source link

[DCS]: v2 other APIs #668

Closed artem-lifshits closed 3 months ago

artem-lifshits commented 3 months ago

What this PR does / why we need it

APIs needed for TF resource

Acceptance tests

=== RUN   TestDcsV2ConfigLifeCycle
    helpers.go:20: Attempting to create DCSv2 instance
    helpers.go:97: DCSv2 instance successfully created: ca82f9bb-e533-42fe-9fd8-4d4bd1b390ab
    configs_test.go:27: Attempting to update DCSv2 configuration
    configs_test.go:30: Updated DCSv2 configuration
    helpers.go:110: Attempting to delete DCSv2 instance: ca82f9bb-e533-42fe-9fd8-4d4bd1b390ab
    helpers.go:119: Deleted DCSv2 instance: ca82f9bb-e533-42fe-9fd8-4d4bd1b390ab
--- PASS: TestDcsV2ConfigLifeCycle (53.46s)
=== RUN   TestDcsInstanceV2LifeCycle
    helpers.go:20: Attempting to create DCSv2 instance
    helpers.go:97: DCSv2 instance successfully created: e75417ec-057c-479b-b11e-b52a9bd129e2
    instance_test.go:42: Attempting to update whitelist configuration
    instance_test.go:56: Attempting to update DCSv2 instance
    instance_test.go:59: Updated DCSv2 instance
    instance_test.go:82: Attempting to resize DCSv2 instance
    instance_test.go:96: Resized DCSv2 instance
    instance_test.go:107: Retrieving whitelist configuration
    instance_test.go:116: Retrieving instance tags
    instance_test.go:123: Updating instance tags
    instance_test.go:132: Retrieving updated instance tags
    helpers.go:110: Attempting to delete DCSv2 instance: e75417ec-057c-479b-b11e-b52a9bd129e2
    helpers.go:119: Deleted DCSv2 instance: e75417ec-057c-479b-b11e-b52a9bd129e2
--- PASS: TestDcsInstanceV2LifeCycle (148.31s)
=== RUN   TestDcsInstanceSSLV2LifeCycle
    helpers.go:20: Attempting to create DCSv2 instance
    helpers.go:97: DCSv2 instance successfully created: fafed438-db25-47a8-9ca7-52017c97ac3b
    ssl_test.go:23: Attempting to enable SSL for DCSv2 instance
    ssl_test.go:31: SSL enabled
    ssl_test.go:33: Attempting to retrieve SSL settings for DCSv2 instance
    ssl_test.go:41: SSL settings retrieved
    ssl_test.go:43: Attempting to disable SSL for DCSv2 instance
    ssl_test.go:53: SSL disabled for DCSv2 instance
    helpers.go:110: Attempting to delete DCSv2 instance: fafed438-db25-47a8-9ca7-52017c97ac3b
    helpers.go:119: Deleted DCSv2 instance: fafed438-db25-47a8-9ca7-52017c97ac3b
--- PASS: TestDcsInstanceSSLV2LifeCycle (110.40s)
PASS
ok      github.com/opentelekomcloud/gophertelekomcloud/acceptance/openstack/dcs/v2  312.515s

Process finished with the exit code 0
otc-zuul[bot] commented 3 months ago

Build succeeded. https://zuul.otc-service.com/t/eco/buildset/eac310a4298f4d48bdf549273ed747db

:heavy_check_mark: otc-golangci-lint SUCCESS in 2m 27s :heavy_check_mark: golang-make-vet SUCCESS in 3m 01s :heavy_check_mark: golang-make-test SUCCESS in 2m 53s :heavy_check_mark: golang-make-functional SUCCESS in 8m 00s