Skip to content

health_check: service type - #1413

Merged
josecelano merged 1 commit into
torrust:developfrom
nuts-rice:health_check
Mar 26, 2025
Merged

josecelano merged 1 commit into
torrust:developfrom
nuts-rice:health_check

Conversation

@nuts-rice

Copy link
Copy Markdown
Contributor

addresses #1409 by introducing a service_type field for ServiceHealthCheckJob
displays when accessing /health_check endpoint

@codecov

codecov Bot commented Mar 25, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.35%. Comparing base (f71f0c4) to head (99aa259).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1413   +/-   ##
========================================
  Coverage    83.35%   83.35%           
========================================
  Files          233      233           
  Lines        17085    17086    +1     
  Branches     17085    17086    +1     
========================================
+ Hits         14241    14242    +1     
  Misses        2584     2584           
  Partials       260      260           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@josecelano
josecelano self-requested a review March 25, 2025 17:13

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks Good to Me :) Thanks!

@da2ce7

da2ce7 commented Mar 26, 2025

Copy link
Copy Markdown
Contributor

utACK 99aa259

@josecelano josecelano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @nuts-rice thank you very much!

Just for the record, this is the new response:

{
  "status": "Ok",
  "message": "",
  "details": [
    {
      "binding": "0.0.0.0:6969",
      "service_type": "udp_tracker",
      "info": "checking the udp tracker health check at: 0.0.0.0:6969",
      "result": {
        "Ok": "Connected"
      }
    },
    {
      "binding": "0.0.0.0:6868",
      "service_type": "udp_tracker",
      "info": "checking the udp tracker health check at: 0.0.0.0:6868",
      "result": {
        "Ok": "Connected"
      }
    },
    {
      "binding": "0.0.0.0:7070",
      "service_type": "http_tracker",
      "info": "checking http tracker health check at: http://0.0.0.0:7070/health_check",
      "result": {
        "Ok": "200 OK"
      }
    },
    {
      "binding": "0.0.0.0:1212",
      "service_type": "tracker_rest_api",
      "info": "checking api health check at: http://0.0.0.0:1212/api/health_check",
      "result": {
        "Ok": "200 OK"
      }
    },
    {
      "binding": "0.0.0.0:7171",
      "service_type": "http_tracker",
      "info": "checking http tracker health check at: http://0.0.0.0:7171/health_check",
      "result": {
        "Ok": "200 OK"
      }
    }
  ]
}

The field service_type has been added to the list of services.

This PR implements partially issue #1409.

@josecelano

Copy link
Copy Markdown
Member

ACK 99aa259

@josecelano
josecelano merged commit 9a10e3e into torrust:develop Mar 26, 2025
@nuts-rice
nuts-rice deleted the health_check branch March 26, 2025 16:31

This branch was previously deployed

1 inactive deployment
coverage — 99aa2594 Deployed Mar 25, 2025 by nuts-rice
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.

3 participants