Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved configuration mechanism for testing #1352

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

haarg
Copy link
Member

@haarg haarg commented Feb 5, 2025

This ensures that the configuration used by Catalyst is the same as what is used by the scripts and everything else. And it allows a metacpan_server_testing_local config file to be used.

haarg added 2 commits February 5, 2025 02:55
While the ConfigLoader plugin for Catalyst mostly matches the behavior
of our Config module, it can have some differences. In particular, it
may not properly load the testing config.
It can be useful to modify the testing config, such as to point to an
alternate Elasticsearch server. When loading the testing config using a
modified config suffix, it will merge the data with the main config. But
this also prevents loading a local testing config.

Instead, we can use a custom config file name, and still allow a _local
suffix. Copy the extra config options from the main config to the test
config, since it will no longer be merging them.
@haarg haarg force-pushed the haarg/config-in-cat branch from b79a6d2 to 38853d4 Compare February 5, 2025 02:05
@haarg haarg merged commit 41c022f into master Feb 5, 2025
1 check passed
@haarg haarg deleted the haarg/config-in-cat branch February 5, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants