opentelekomcloud / gophertelekomcloud

GopherTelekomCloud is an OpenTelekomCloud clouds Go SDK
Apache License 2.0
20 stars 10 forks source link

[Refactor] Refactor SDRS Protected Instances #727

Closed muneeb-jan closed 2 weeks ago

muneeb-jan commented 2 weeks ago

What this PR does / why we need it

Tests performed

=== RUN   TestSDRSInstanceList
--- PASS: TestSDRSInstanceList (0.55s)
=== RUN   TestSDRSInstanceLifecycle
    helpers.go:15: Attempting to create SDRS protection group
    helpers.go:37: Waiting for SDRS group job ff8080828ed18a26019246ec74e12610
    helpers.go:47: Created SDRS protection group: 48c56d16-0371-488e-b0bf-098fbf652238
    protectedinstances_test.go:44: Attempting to create ECSv1
    protectedinstances_test.go:44: Created ECSv1 instance: 546d2050-668e-4321-8f22-d1b093a3fde8
    protectedinstances_test.go:49: Attempting to create SDRS protected instance
    protectedinstances_test.go:87: Created SDRS protected instance: 3369beb5-4d03-4538-af06-6d09ca00b2aa
    protectedinstances_test.go:92: Waiting for SDRS group enabling job ff8080828ed18524019246efb8c74e34
    protectedinstances_test.go:103: Waiting for SDRS group disabling job ff8080828ed18a26019246f008572612
    protectedinstances_test.go:70: Attempting to delete SDRS protected instance: 3369beb5-4d03-4538-af06-6d09ca00b2aa
    protectedinstances_test.go:82: Deleted SDRS protected instance: 3369beb5-4d03-4538-af06-6d09ca00b2aa
    common.go:208: Attempting to delete ECSv1: 546d2050-668e-4321-8f22-d1b093a3fde8
    common.go:225: ECSv1 instance deleted: 546d2050-668e-4321-8f22-d1b093a3fde8
    helpers.go:53: Attempting to delete SDRS protection group: 48c56d16-0371-488e-b0bf-098fbf652238
    helpers.go:61: Deleted SDRS protection group: 48c56d16-0371-488e-b0bf-098fbf652238
--- PASS: TestSDRSInstanceLifecycle (327.15s)
PASS