Skip to content

Test Kibana Platform plugins cannot use @kbn/config-schema #61652

@azasypkin

Description

@azasypkin

In #61614 we started to migrate fixture plugins we use in API integration tests to the New Platform, everything works fine locally, but not on this CI. These plugins define routes with validation based on the @kbn/config-schema and when these used with the Kibana built for integration tests on CI, Kibana fails to start with the following error:

Error: Expected a valid validation logic declared with '@kbn/config-schema' package or a RouteValidationFunction at key: [body].

Most likely the instanceof check here fails because "Type" that plugin creates isn't the same as expected by the Core (I think we had something similar with RxJS package in the past).

You can use #61614 to reproduce the issue (without last commit with a workaround that removed @kbn/config-schema dependency from test plugins entirely).

I'm tagging both Platform and Operations since it's not exactly clear what the root cause is.

Metadata

Metadata

Assignees

Labels

Feature:New PlatformTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Team:OperationsKibana-Operations TeambugFixes for quality problems that affect the customer experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions