Skip to content

Commit

Permalink
add test cases for tidbcloudy (#28)
Browse files Browse the repository at this point in the history
- 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`
  • Loading branch information
Oreoxmt committed Oct 8, 2023
1 parent ce06157 commit 4fcea06
Show file tree
Hide file tree
Showing 22 changed files with 1,604 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .idea/tidbcloudy.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ You can use this SDK to access [TiDB Cloud](https://tidbcloud.com) and manage yo
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://github.com/Oreoxmt/tidbcloudy/releases/tag/v1.1.0" target="_blank" rel="noopener noreferrer">1.1.0</a></td>
<td>✅</td>
<td>❌</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>❌</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td><a href="https://github.com/Oreoxmt/tidbcloudy/releases/tag/v1.0.10" target="_blank" rel="noopener noreferrer">1.0.10</a></td>
<td>✅</td>
Expand Down
Loading

0 comments on commit 4fcea06

Please sign in to comment.