Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat.] DMS: Add new resource opentelekomcloud_dms_topic_v2 #2766

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

artem-lifshits
Copy link
Member

@artem-lifshits artem-lifshits commented Dec 13, 2024

Summary of the Pull Request

New resource opentelekomcloud_dms_topic_v2 introduced.
opentelekomcloud_dms_topic_v1 is deprecated due to api going out-of-date.

PR Checklist

Acceptance Steps Performed

=== RUN   TestAccDmsTopicsV2_basic
--- PASS: TestAccDmsTopicsV2_basic (647.36s)
PASS

Process finished with the exit code 0

=== RUN   TestAccDmsTopicsV1_basic
--- PASS: TestAccDmsTopicsV1_basic (649.04s)
PASS

Process finished with the exit code 0

@artem-lifshits artem-lifshits marked this pull request as ready for review December 13, 2024 13:16
muneeb-jan
muneeb-jan previously approved these changes Dec 13, 2024

The following arguments are supported:

* `instance_id` - (Required) Indicates the ID of primary DMS instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add type and forcenew details


* `remain_partitions` - Number of remaining partitions.

* `max_partitions` - Total partitions number.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import?

resource.Test(t, resource.TestCase{
PreCheck: func() { common.TestAccPreCheck(t) },
ProviderFactories: common.TestAccProviderFactories,
CheckDestroy: testAccCheckDmsV1InstanceDestroy,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use InitResourceCheck

@@ -10,6 +10,7 @@ const (
errCreationClient = "error creating OpenTelekomCloud DMSv1 client: %w"
errCreationClientV2 = "error creating OpenTelekomCloud DMSv2 client: %w"
dmsClientV2 = "dms-v2-client"
dmsV1Deprecated = "This resource API is deprecated. Please use opentelekomcloud_dms_topic_v2 instead."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add message in doc

@artem-lifshits artem-lifshits added the gate Merge PR label Dec 16, 2024
Copy link

otc-zuul bot commented Dec 16, 2024

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

✔️ build-otc-releasenotes SUCCESS in 4m 02s
✔️ noop SUCCESS in 0s
✔️ otc-golangci-lint SUCCESS in 3m 08s
✔️ golang-make-test SUCCESS in 3m 40s
✔️ golang-make-vet SUCCESS in 3m 00s
✔️ tflint SUCCESS in 4m 15s
✔️ goreleaser-build SUCCESS in 8m 43s

@otc-zuul otc-zuul bot merged commit 1308739 into devel Dec 16, 2024
6 checks passed
@otc-zuul otc-zuul bot deleted the dms_topic_v2 branch December 16, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants