This directory contains an end-to-end test for publishing to the registry.
- Publisher Tool: Tests the
publisherCLI that publishes metadata to the registry - Registry API: Validates the
/v0/publishand/v0/servers/{server_id}endpoints work correctly - Example Validation: Ensures all example JSON in
docs/reference/server-json/generic-server-json.mdis valid and can be published - Data Consistency: Verifies published data matches what's retrieved from the registry
- Build: Build
publisherandregistry - Start Services: Launch registry and MongoDB using Docker Compose with test configuration
- Publish Examples: Extract JSON examples from documentation and run
publisherto publish each one - Validate Responses: GET each published server from the registry and compare it to the example JSON
- Cleanup: Stop Docker containers and remove temporary files
- Docker and Docker Compose
- Go 1.24
- Make sure you're in the repository root directory
./tests/integration/run.shNote: Integration tests use isolated container names (registry-integration-test, postgres-integration-test) to prevent conflicts with development containers from make dev-compose.