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(DDS): import DDS resource, unit test and document #151

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

Zippo-Wang
Copy link
Contributor

@Zippo-Wang Zippo-Wang commented Nov 16, 2023

What this PR does / why we need it:
import CSS resource, unit test and document

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
fixes #xxx

Special notes for your reviewer:

Release note:


PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

### data_source_g42cloud_dds_instances

=== RUN   TestAccDatasourceDdsInstance_basic
=== PAUSE TestAccDatasourceDdsInstance_basic
=== CONT  TestAccDatasourceDdsInstance_basic
--- PASS: TestAccDatasourceDdsInstance_basic (888.87s)
PASS
coverage: 8.6% of statements in ../../../../../terraform-provider-g42cloud/...

### resource_g42cloud_dds_backup

=== RUN   TestAccDdsBackup_basic
=== PAUSE TestAccDdsBackup_basic
=== CONT  TestAccDdsBackup_basic
--- PASS: TestAccDdsBackup_basic (1186.65s)
PASS

coverage: 14.7% of statements in ../../../../../terraform-provider-g42cloud/...


### resource_g42cloud_dds_parameter_template

=== RUN   TestAccDdsParameterTemplate_basic
=== PAUSE TestAccDdsParameterTemplate_basic
=== CONT  TestAccDdsParameterTemplate_basic
--- PASS: TestAccDdsParameterTemplate_basic (71.84s)
PASS

coverage: 11.1% of statements in ../../../../../terraform-provider-g42cloud/...


=== RUN   TestDdsParameterTemplate_shared_basic
=== PAUSE TestDdsParameterTemplate_shared_basic
=== CONT  TestDdsParameterTemplate_shared_basic
--- PASS: TestDdsParameterTemplate_shared_basic (40.75s)
PASS

coverage: 11.1% of statements in ../../../../../terraform-provider-g42cloud/...


=== RUN   TestDdsParameterTemplate_config_basic
=== PAUSE TestDdsParameterTemplate_config_basic
=== CONT  TestDdsParameterTemplate_config_basic
--- PASS: TestDdsParameterTemplate_config_basic (55.69s)
PASS

coverage: 11.1% of statements in ../../../../../terraform-provider-g42cloud/...

=== RUN   TestDdsParameterTemplate_replica_basic
=== PAUSE TestDdsParameterTemplate_replica_basic
=== CONT  TestDdsParameterTemplate_replica_basic
--- PASS: TestDdsParameterTemplate_replica_basic (26.33s)
PASS

coverage: 11.1% of statements in ../../../../../terraform-provider-g42cloud/...


### resource_g42cloud_database_role

=== RUN   TestAccDatabaseRole_basic
=== PAUSE TestAccDatabaseRole_basic
=== CONT  TestAccDatabaseRole_basic
--- PASS: TestAccDatabaseRole_basic (1032.62s)
PASS

coverage: 11.6% of statements in ../../../../../terraform-provider-g42cloud/...


### resource_g42cloud_database_user

=== RUN   TestAccDatabaseUser_basic
=== PAUSE TestAccDatabaseUser_basic
=== CONT  TestAccDatabaseUser_basic
--- PASS: TestAccDatabaseUser_basic (864.56s)
PASS

coverage: 11.6% of statements in ../../../../../terraform-provider-g42cloud/...


### resource_g42cloud_audit_log_policy

=== RUN   TestAccDdsAuditLogPolicy_basic
=== PAUSE TestAccDdsAuditLogPolicy_basic
=== CONT  TestAccDdsAuditLogPolicy_basic
--- PASS: TestAccDdsAuditLogPolicy_basic (898.02s)
PASS

coverage: 11.6% of statements in ../../../../../terraform-provider-g42cloud/...

@github-ci-robot
Copy link
Collaborator

PR needs rebase.

@github-ci-robot
Copy link
Collaborator

PR needs rebase.

@github-actions github-actions bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 30, 2023
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-ci-robot
Copy link
Collaborator

PR needs rebase.

Copy link

github-actions bot commented Dec 1, 2023

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@@ -219,7 +219,8 @@ func Provider() *schema.Provider {
"g42cloud_ddm_engines": ddm.DataSourceDdmEngines(),
"g42cloud_ddm_flavors": ddm.DataSourceDdmFlavors(),

"g42cloud_dds_flavors": dds.DataSourceDDSFlavorV3(),
"g42cloud_dds_flavors": dds.DataSourceDDSFlavorV3(),
Copy link
Contributor

@Zhukun-Huawei Zhukun-Huawei Dec 8, 2023

Choose a reason for hiding this comment

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

the num of resources/data sources added in provider.go are less than the num of actual newly added ut/doc files, pls check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix

Copy link

github-actions bot commented Dec 8, 2023

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@Zhukun-Huawei
Copy link
Contributor

/lgtm

@github-ci-robot github-ci-robot added the LGTM "Looks good to me", indicates that a PR is ready to be merged. label Dec 8, 2023
@chengxiangdong
Copy link
Collaborator

/approve

@github-ci-robot github-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 12, 2023
@github-ci-robot github-ci-robot merged commit 7c85a5e into g42cloud-terraform:main Dec 12, 2023
4 checks passed
@Zippo-Wang Zippo-Wang deleted the migrate_DDS branch December 28, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. feature LGTM "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants