refact(telemetry-resources): refactoring Telemetry package with some abstraction and unit tests
Description
- Changed the telemetry/ folder from firecracker/ to the repository's root.
- Created some functions to abstract the additions/subtractions of resource usage and available resources.
- Unit/Integration tests for most of the functions of Telemetry package, the main one being calcFreeResources()
- Note: some of the tests use an in-memory DB which will run only while the test suite is running
Checklist
-
I have update updated the @version
string in main.go. See https://semver.org/ -
I have update CHANGELOG.md with a short description of changes. -
I have run swag init
to update the swagger docs.
Closes #249 (closed)
Edited by Dagim Sisay