opentelekomcloud / gophertelekomcloud

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

[Fix.] Enabling and Disabling of ProtectionGroup for SDRS #722

Closed anton-sidelnikov closed 3 weeks ago

anton-sidelnikov commented 3 weeks ago

What this PR does / why we need it

There was an error of building opts for Enable and Disable, now fixed, tests also updated

Which issue this PR fixes

Special notes for your reviewer

=== RUN TestSDRSInstanceLifecycle helpers.go:14: Attempting to create SDRS protection group helpers.go:34: Waiting for SDRS group job &{ff8080828ed1852401921f23244179b1} helpers.go:44: Created SDRS protection group: efae3993-20a6-4e4d-9e7b-0002bcde4693 protectedinstances_test.go:47: Attempting to create ECSv1 protectedinstances_test.go:47: Created ECSv1 instance: 57f492fc-23c3-47ad-8eff-ea0d754d18d0 protectedinstances_test.go:52: Attempting to create SDRS protected instance protectedinstances_test.go:90: Created SDRS protected instance: ddb30aba-43fb-48e0-9662-c43c859a878c protectedinstances_test.go:95: Waiting for SDRS group enabling job ff808082814d99e101921f266f621578 protectedinstances_test.go:106: Waiting for SDRS group disabling job ff8080828ed1852401921f26bfcf79e9 protectedinstances_test.go:73: Attempting to delete SDRS protected instance: ddb30aba-43fb-48e0-9662-c43c859a878c protectedinstances_test.go:85: Deleted SDRS protected instance: ddb30aba-43fb-48e0-9662-c43c859a878c common.go:208: Attempting to delete ECSv1: 57f492fc-23c3-47ad-8eff-ea0d754d18d0 common.go:225: ECSv1 instance deleted: 57f492fc-23c3-47ad-8eff-ea0d754d18d0 helpers.go:50: Attempting to delete SDRS protection group: efae3993-20a6-4e4d-9e7b-0002bcde4693 helpers.go:58: Deleted SDRS protection group: efae3993-20a6-4e4d-9e7b-0002bcde4693 --- PASS: TestSDRSInstanceLifecycle (329.58s) PASS

Process finished with the exit code 0