Ensure tests are failing CI (#840)

This commit is contained in:
Radoslav Dimitrov 2025-12-11 09:56:57 +02:00 • committed by GitHub
commit c54a5ac277
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,8 +50,9 @@ func TestOpenAPIEndpointCompliance(t *testing.T) {
BuildTime: "test",
}
// Register V0 routes exactly like production does
router.RegisterV0Routes(api, cfg, nil, nil, versionInfo) // nil service and metrics for schema testing
// Register V0 and V0.1 routes exactly like production does
router.RegisterV0Routes(api, cfg, nil, nil, versionInfo) // nil service and metrics for schema testing
router.RegisterV0_1Routes(api, cfg, nil, nil, versionInfo) // Register v0.1 routes for compliance
// Get the OpenAPI schema
req := httptest.NewRequest(http.MethodGet, "/openapi.yaml", nil)