Skip to content

feat: add /logs endpoint verification to smoke tests#51

Merged
bburda merged 4 commits intomainfrom
feature/logs-smoke-tests
Mar 22, 2026
Merged

feat: add /logs endpoint verification to smoke tests#51
bburda merged 4 commits intomainfrom
feature/logs-smoke-tests

Conversation

@bburda
Copy link
Contributor

@bburda bburda commented Mar 22, 2026

Description

Add logs endpoint verification to all 3 demo smoke tests (sensor_diagnostics, turtlebot3, moveit). Each test now checks:

  • GET /logs returns 200 with non-empty items
  • GET /apps/{entity}/logs returns 200 with non-empty items (lidar-sim for sensor demo, medkit-gateway for turtlebot3/moveit)

Related Issue

closes #44

Checklist

  • Tested locally
  • README updated (if needed) - N/A, no README changes needed

Verify global /logs and per-entity /apps/{id}/logs endpoints return
non-empty data in all 3 demo smoke tests.

Closes #44
Copilot AI review requested due to automatic review settings March 22, 2026 18:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds smoke-test coverage to verify the gateway’s logs API is functional across all three demos, aligning with issue #44’s goal of showcasing /logs support.

Changes:

  • Add GET /logs verification (expects 200 and non-empty .items) to each demo’s smoke test.
  • Add GET /apps/{entity}/logs verification for a representative app in each demo (e.g., lidar-sim, medkit-gateway).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/smoke_test.sh Adds /logs and /apps/lidar-sim/logs assertions to the sensor_diagnostics smoke test.
tests/smoke_test_turtlebot3.sh Adds /logs and /apps/medkit-gateway/logs assertions to the turtlebot3 demo smoke test.
tests/smoke_test_moveit.sh Adds /logs and /apps/medkit-gateway/logs assertions to the moveit demo smoke test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bburda added 3 commits March 22, 2026 19:56
The gateway only exposes logs per-entity (e.g. /apps/{id}/logs), not
a global /logs endpoint. Use anomaly-detector for sensor demo (active
logger) and medkit-gateway for turtlebot3/moveit.
DRY up the repeated api_get + jq '.items | length > 0' pattern
used across data, configurations, and logs checks in all 3 demos.
anomaly-detector and lidar-sim don't emit /rosout logs in CI,
so use medkit-gateway which always has log entries from startup.
@bburda bburda requested a review from mfaferek93 March 22, 2026 19:20
@bburda bburda self-assigned this Mar 22, 2026
@bburda bburda merged commit 8ac1696 into main Mar 22, 2026
4 checks passed
@bburda bburda deleted the feature/logs-smoke-tests branch March 22, 2026 19:23
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.

Add logs showcase

3 participants