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

Add Mocked Tests: Databases (part 3) #206

Closed
danaelhe opened this issue Sep 27, 2023 · 2 comments
Closed

Add Mocked Tests: Databases (part 3) #206

danaelhe opened this issue Sep 27, 2023 · 2 comments
Labels
hacktoberfest A good hacktoberfest issue!

Comments

@danaelhe
Copy link
Member

danaelhe commented Sep 27, 2023

Overview
Add more test coverage for Pydo, specifically for Databases

Mocked Tests: tests/mocked/
Tests in the mocked directory include:

  • Tests that validate the generated client has all the expected classes and methods for the respective API resources and operations.
  • Tests that exercise individual operations against mocked responses.

These tests do not act against the real API so no real resources are created.

To run mocked tests, run:

make test-mocked

Instructions

  1. Clone this repo.
  2. If you haven't already, install Python (version: >= 3.7.2) through their official installer.
  3. CD into the directory and run make install
  4. View file: tests/mocked/test_databases.py
  5. Add tests for databases.get_user, databases.list, databases.list_backups, databases.list_clusters, databases.list_connection_pools, databases.list_firewall_rules, databases.list_options, databases.list_replicas, databases.list_users
  6. API documentation is here
  7. Pydo Documentation is here
@danaelhe danaelhe added the hacktoberfest A good hacktoberfest issue! label Sep 27, 2023
@danaelhe danaelhe changed the title Finish Mocked Tests for Databases (part 3) Add More Mocked Tests: Databases (part 3) Sep 28, 2023
@danaelhe danaelhe changed the title Add More Mocked Tests: Databases (part 3) Add Mocked Tests: Databases (part 3) Sep 28, 2023
@work-mohit
Copy link
Contributor

started working on this!

@danaelhe
Copy link
Member Author

danaelhe commented Oct 3, 2023

closed with #217

@danaelhe danaelhe closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest A good hacktoberfest issue!
Projects
None yet
Development

No branches or pull requests

2 participants