Add test for all default configuration to ensure schema exists and is correct

Created on 5 January 2014, almost 11 years ago
Updated 12 March 2024, 10 months ago

Problem/Motivation

Over in #1653026: [META] Use properly typed values in module configuration we stopped casting all configuration to strings. In #2130811: Use config schema in saving and validating configuration form to ensure data is consistent and correct we started to use config schema to ensure that config was saved with the correct data types. Unfortunately many of schemas are incomplete or incorrect and where they are correct the default configuration might be wrong.

Proposed resolution

We should add a test that reads all the default configuration provided by modules and profiles and checks to see if it complies with the provided schema. The test should also report that if schema are missing.

Remaining tasks

Not to be solved in this issue

User interface changes

None

API changes

None

Suggested commit message

Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.

🐛 Bug report
Status

Fixed

Version

8.0 ⚰️

Component
Configuration 

Last updated 3 days ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • Avoid commit conflicts

    A large, comprehensive, important patch that is close to being ready to commit, and would be really painful to re-roll if another commit rendered it impossible to apply. Use sparingly! Less important, conflicting commits will be delayed by these issues.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024