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: Volume Actions #203

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

Add Mocked Tests: Volume Actions #203

danaelhe opened this issue Sep 27, 2023 · 3 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 Volume Actions.

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_block_storage.py
  5. Add tests for volume_actions.get, volume_actions.list, volume_actions.post, volume_actions.post_by_id
  6. API documentation is here
  7. Pydo Documentation is here
@danaelhe danaelhe added the hacktoberfest A good hacktoberfest issue! label Sep 27, 2023
@shivam-Purohit
Copy link
Contributor

hey @danaelhe can I look into this?

@danaelhe
Copy link
Member Author

hey @danaelhe can I look into this?

Absolutely 😄 Thanks!

@danaelhe danaelhe changed the title Create Mocked Tests for Volume Actions Add Mocked Tests: Volume Actions Sep 28, 2023
@danaelhe
Copy link
Member Author

danaelhe commented Oct 3, 2023

closed with #214

@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