Skip to content

allenrobel/ndfc_mock

Repository files navigation

Summary

This is a work in progress with limited functionality as described below.

When finished, this will allow for minor development and testing of ansible-dcnm modules (and other REST API-based applications) without requiring a real ND/NDFC instance.

Basically, it will accept GET/POST/PUT/DELETE requests to endpoints supported by ND/NDFC and will return responses that align, as closely as possible, with real ND/NDFC responses i.e., POST and PUT requests update an in-memory SQLlite database; GET requests retrieve from this database; and DELETE requests remove items from the database.

Acknowledgements

This work would not be possible without the following.

  1. FastApi
  2. SQLModel
  3. Pydantic
  4. Podman

About

Work in progress. A containerized mock of NDFC's REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published