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 that
/v0/publish,GET /v0/servers, andGET /v0/servers/{serverName}/versions/latestwork 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 PostgreSQL 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 — see the prerequisites in the root README for the required version
- 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.