Graphql server composable schema can't be installed in kernel tests

Created on 6 September 2024, 7 months ago

Problem/Motivation

When trying to perform kernel tests that creates a grapqhl server, the following error appears:

Schema errors for graphql.graphql_servers.my_server with the following errors: graphql.graphql_servers.my_server:schema_configuration.composable missing schema

Steps to reproduce

  1. Create a graphql server with a composable schema and enable one or more schema extensions.
  2. Export it to a custom / Contrib module into the config/install folder
  3. Create a kernel test that installs that module configuration

Proposed resolution

Update schema according the configuration that is currently exported. Currently, for the composable property, the schema is:

  composable:
    extensions:
      my_schema_extension: my_schema_extension
      ...

So a correct schema must be provided for this configuration.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024