Skip to content

Conversation

@javuto
Copy link
Collaborator

@javuto javuto commented Dec 24, 2025

Multiple fixes for osctrl-api and api_tester tool

@javuto javuto requested a review from Copilot December 24, 2025 13:35
@javuto javuto added osctrl-api osctrl-api related changes 🛠️ tools Tools related issues labels Dec 24, 2025
Copy link
Contributor

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

This PR fixes multiple issues in the osctrl-api and the api_tester tool, primarily focused on API authentication, endpoint corrections, and improved test flexibility.

Key changes:

  • Enhanced the api_tester.py tool to accept multiple expected HTTP status codes for API tests
  • Fixed authentication middleware application for the /checks-auth endpoint
  • Corrected API handler mapping from CarveShowHandler to CarveListHandler for the carves endpoint
  • Renamed method calls from VerifyType to VerifyService in settings handlers

Reviewed changes

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

File Description
tools/api_tester.py Enhanced test framework to support multiple expected status codes, improved documentation, fixed request payload field name from "target" to "identifier", and added 404 as valid response for node/carve endpoints
cmd/api/main.go Applied authentication middleware to /checks-auth endpoint and corrected carves endpoint handler from CarveShowHandler to CarveListHandler
cmd/api/handlers/settings.go Renamed method calls from VerifyType to VerifyService across all settings handlers

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

@javuto javuto merged commit 2165891 into main Dec 24, 2025
55 checks passed
@javuto javuto deleted the fix-crash-api branch December 24, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

osctrl-api osctrl-api related changes 🛠️ tools Tools related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants