Skip to content

Conversation

@0x8000-0000
Copy link
Contributor

Enhances the protocol conformance tests to verify that all documentation and schema URLs provided in the UCP discovery profile are reachable and return valid content.

  • Added test_discovery_urls to ProtocolTest.
  • Implemented _extract_document_urls helper to collect URLs with their JSON paths for better debugging.
  • Validates that spec, schema, config_schema, and instrument_schemas fields return 200 OK.
  • Checks content type validity (parseable JSON or valid HTML).
  • Reports all broken links in a single failure message with their exact location in the discovery profile.

Enhances the protocol conformance tests to verify that all documentation
and schema URLs provided in the UCP discovery profile are reachable and
return valid content.

- Added `test_discovery_urls` to `ProtocolTest`.
- Implemented `_extract_document_urls` helper to collect URLs with their
  JSON paths for better debugging.
- Validates that `spec`, `schema`, `config_schema`, and `instrument_schemas`
  fields return 200 OK.
- Checks content type validity (parseable JSON or valid HTML).
- Reports all broken links in a single failure message with their exact
  location in the discovery profile.
@0x8000-0000 0x8000-0000 requested a review from a team January 15, 2026 22:22
@0x8000-0000
Copy link
Contributor Author

Fixes #7

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.

2 participants