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(RDS): import RDS resource, unit test and document. #1058

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

Zippo-Wang
Copy link
Contributor

@Zippo-Wang Zippo-Wang commented Oct 31, 2023

What this PR does / why we need it:
import RDSresource, 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

### resource_flexibleengine_rds_backup

=== RUN   TestAccBackup_mysql_basic
=== PAUSE TestAccBackup_mysql_basic
=== CONT  TestAccBackup_mysql_basic
--- PASS: TestAccBackup_mysql_basic (1185.01s)
PASS

coverage: 2.1% of statements in ../../../terraform-provider-flexibleengine/...


=== RUN   TestAccBackup_sqlserver_basic
=== PAUSE TestAccBackup_sqlserver_basic
=== CONT  TestAccBackup_sqlserver_basic
--- PASS: TestAccBackup_sqlserver_basic (1931.04s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...


=== RUN   TestAccBackup_pg_basic
=== PAUSE TestAccBackup_pg_basic
=== CONT  TestAccBackup_pg_basic
--- PASS: TestAccBackup_pg_basic (1034.23s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...
### data_source_flexibleengine_rds_backup

=== RUN   TestAccDatasourceBackup_basic
=== PAUSE TestAccDatasourceBackup_basic
=== CONT  TestAccDatasourceBackup_basic
--- PASS: TestAccDatasourceBackup_basic (1108.51s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...


=== RUN   TestAccDatasourceBackup_auto_basic
=== PAUSE TestAccDatasourceBackup_auto_basic
=== CONT  TestAccDatasourceBackup_auto_basic
--- PASS: TestAccDatasourceBackup_auto_basic (412.16s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...

=== RUN   TestAccDatasourceBackup_incremental_basic
=== PAUSE TestAccDatasourceBackup_incremental_basic
=== CONT  TestAccDatasourceBackup_incremental_basic
--- PASS: TestAccDatasourceBackup_incremental_basic (432.17s)
PASS

coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...
### data_source_flexibleengine_engine_versions

=== RUN   TestAccRdsEngineVersionsV3DataSource_basic
=== PAUSE TestAccRdsEngineVersionsV3DataSource_basic
=== CONT  TestAccRdsEngineVersionsV3DataSource_basic
--- PASS: TestAccRdsEngineVersionsV3DataSource_basic (44.08s)
PASS

coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...

=== RUN   TestAccRdsEngineVersionsV3DataSource_PostgreSQL_basic
=== PAUSE TestAccRdsEngineVersionsV3DataSource_PostgreSQL_basic
=== CONT  TestAccRdsEngineVersionsV3DataSource_PostgreSQL_basic
--- PASS: TestAccRdsEngineVersionsV3DataSource_PostgreSQL_basic (38.72s)
PASS
coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...

=== RUN   TestAccRdsEngineVersionsV3DataSource_SQLServer_basic
=== PAUSE TestAccRdsEngineVersionsV3DataSource_SQLServer_basic
=== CONT  TestAccRdsEngineVersionsV3DataSource_SQLServer_basic
--- PASS: TestAccRdsEngineVersionsV3DataSource_SQLServer_basic (43.08s)
PASS

coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...
### data_source_flexibleengine_storage_types

=== RUN   TestAccDatasourceStoragetype_basic
=== PAUSE TestAccDatasourceStoragetype_basic
=== CONT  TestAccDatasourceStoragetype_basic
--- PASS: TestAccDatasourceStoragetype_basic (41.38s)
PASS

coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...

=== RUN   TestAccDatasourceStoragetype_PostgreSQL_basic
=== PAUSE TestAccDatasourceStoragetype_PostgreSQL_basic
=== CONT  TestAccDatasourceStoragetype_PostgreSQL_basic
--- PASS: TestAccDatasourceStoragetype_PostgreSQL_basic (35.54s)
PASS

coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...

=== RUN   TestAccDatasourceStoragetype_SQLServer_basic
=== PAUSE TestAccDatasourceStoragetype_SQLServer_basic
=== CONT  TestAccDatasourceStoragetype_SQLServer_basic
--- PASS: TestAccDatasourceStoragetype_SQLServer_basic (36.72s)
PASS
coverage: 1.7% of statements in ../../../terraform-provider-flexibleengine/...
### data_source_flexibleengine_rds_instances
=== RUN   TestAccRdsInstanceDataSource_basic
=== PAUSE TestAccRdsInstanceDataSource_basic
=== CONT  TestAccRdsInstanceDataSource_basic
--- PASS: TestAccRdsInstanceDataSource_basic (1086.39s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...


=== RUN   TestAccRdsInstanceDataSource_ha_basic
=== PAUSE TestAccRdsInstanceDataSource_ha_basic
=== CONT  TestAccRdsInstanceDataSource_ha_basic
--- PASS: TestAccRdsInstanceDataSource_ha_basic (165.64s)
PASS

=== RUN   TestAccRdsInstanceDataSource_replica_basic
=== PAUSE TestAccRdsInstanceDataSource_replica_basic
=== CONT  TestAccRdsInstanceDataSource_replica_basic
--- PASS: TestAccRdsInstanceDataSource_replica_basic (294.93s)
PASS

=== RUN   TestAccRdsInstanceDataSource_enterprise_basic
=== PAUSE TestAccRdsInstanceDataSource_enterprise_basic
=== CONT  TestAccRdsInstanceDataSource_enterprise_basic
--- PASS: TestAccRdsInstanceDataSource_enterprise_basic (33.76s)
PASS

### resource_flexibleengine_rds_sql_audit
=== RUN   TestAccSQLAudit_basic
=== PAUSE TestAccSQLAudit_basic
=== CONT  TestAccSQLAudit_basic
--- PASS: TestAccSQLAudit_basic (1077.14s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...
### resource_flexibleengine_rds_cross_region_backup_strategy
=== RUN   TestAccBackupStrategy_basic
=== PAUSE TestAccBackupStrategy_basic
=== CONT  TestAccBackupStrategy_basic
--- PASS: TestAccBackupStrategy_basic (1027.76s)
PASS

coverage: 1.9% of statements in ../../../terraform-provider-flexibleengine/...

@github-actions
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.

2 similar comments
@github-actions
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-actions
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-actions
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.

@Zippo-Wang Zippo-Wang changed the title feat(RDS): import RDSresource, unit test and document. feat(RDS): import RDS resource, unit test and document. Oct 31, 2023
@github-actions
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-actions
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-actions
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.

docs/data-sources/rds_storage_types.md Show resolved Hide resolved

* `databases` - (Optional, List, ForceNew) List of self-built Microsoft SQL Server databases that are partially
backed up. (Only Microsoft SQL Server supports partial backups). The [databases](#rds_databases) structure is
documented below. Changing this parameter will create a new resource.
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing this parameter will create a new resource. Is it need to be wrapped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not mandatory, the Changing ... new resource should be declared when the field is ForceNew. As for it's location, one way is added behind the field description. Another way is starting a new line.

If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

* `instance_id` - (Required, String, ForceNew) Specifies the ID of the RDS instance.

Copy link
Contributor

Choose a reason for hiding this comment

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

extra line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

The following arguments are supported:

* `region` - (Optional, String, ForceNew) Specifies the region in which to create the resource.
If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing this parameter will create a new resource,does this sentence need to be wrapped

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

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.

Copy link
Contributor

@Zhukun-Huawei Zhukun-Huawei left a comment

Choose a reason for hiding this comment

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

/lgtm

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.

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.

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.

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.

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.

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.

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.

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.

@ShiChangkuo ShiChangkuo merged commit 7c56153 into FlexibleEngineCloud:master Nov 23, 2023
6 checks passed
@Zippo-Wang Zippo-Wang deleted the migrate_RDS branch November 24, 2023 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants