Ensure tests are failing CI (#840)
This commit is contained in:
parent
fdcb38537f
commit
c54a5ac277
1 changed files with 105 additions and 37 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue