Skip to content
New issue

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

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

Already on GitHub? # to your account

add test cases for tidbcloudy #28

Merged
merged 25 commits into from
Oct 8, 2023
Merged

add test cases for tidbcloudy #28

merged 25 commits into from
Oct 8, 2023

Conversation

Oreoxmt
Copy link
Owner

@Oreoxmt Oreoxmt commented Oct 7, 2023

  • Support specifying timezone in timestamp_to_string() and get_current_year_month()

  • Implement a mock server using Flask to facilitate testing

  • Expand test coverage for the following API endpoints:

    • List the cloud providers, regions and available specifications
    • List all accessible projects
    • Create a project
    • List all clusters in a project
    • Get a cluster by ID
    • Create a cluster
    • Modify (pause or resume) a cluster
    • Delete a cluster
    • List AWS Customer-Managed Encryption Keys for a project
    • Configure AWS Customer-Managed Encryption Keys for a project
  • Enhance testing for certain internal features:

    • the to_object and from_object functions of TiDBCloudyBase
    • util.timestamp.py
    • the CreateClusterConfig and UpdateClusterConfig in tidbcloudy.specification
  • Fix the incorrect subclass and type hint of BillingMonthSummaryByService

- List all accessible projects
- Create a project.
- List the cloud providers, regions and available specifications.
- List AWS Customer-Managed Encryption Keys for a project.
- Configure AWS Customer-Managed Encryption Keys for a project.
- List all clusters in a project.
- Get a cluster by ID.
@Oreoxmt Oreoxmt merged commit 4fcea06 into main Oct 8, 2023
@Oreoxmt Oreoxmt deleted the feat/test branch October 8, 2023 11:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant