Skip to content

Conversation

@anilnatha
Copy link
Contributor

@anilnatha anilnatha commented Apr 7, 2025

Purpose

This PR addresses updates to the health service and related functionality as detailed below.

Proposed Changes

  • [CHANGE] The health services schema has been updated to account for the new fields, componentCategory, componentType, and description
  • [CHANGE] Improved error handling of health service methods related to fetching and printing of health information from API
  • [CHANGE] Unit tests have been updated to use mock data rather than live API endpoints
  • [CHANGE] Updated printing of health status report to include new fields mentioned above
  • [ADD] Unit test to validate the health services schema
  • [FIX] Schema definition of health service as it wasn't properly validating enumerated values
  • [REMOVE] Superfluous unit test that creates a health_service instance

Issues

Testing

  • Tested locally using pytest

…entCategory, componentType, and description. The related unit tests were also updated with a correction to the schema definition to properly validate the schema. The health status report printing was also updated to reflect the addition of the three fields.
… printing of health status reports is functional.
@anilnatha
Copy link
Contributor Author

@mcduffie Thank you for your ticket regarding improving the error handling of the health service. This PR includes changes to address that.

@anilnatha
Copy link
Contributor Author

@brianlee731 @rtapella Friendly ping that this is awaiting review.

@anilnatha anilnatha self-assigned this Apr 10, 2025
Copy link
Contributor

@rtapella rtapella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally. works.

@anilnatha anilnatha merged commit 0bc8f94 into main Apr 17, 2025
10 checks passed
@anilnatha anilnatha deleted the features/update-health-service branch May 19, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Health Service to account for Health API updates get_health_status should check response status code

3 participants