6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 21:07:50 +00:00
tutor/tests
Régis Behmo ef189e7f67 fix: better logging during plugins disable
When disable a plugin that set config entried, such as the minio plugin, tutor was logging the following:

    Disabling plugin minio...
        Removed config entry OPENEDX_AWS_ACCESS_KEY=openedx
        Removed config entry OPENEDX_AWS_SECRET_ACCESS_KEY={{ MINIO_AWS_SECRET_ACCESS_KEY }}
        Plugin disabled

The config values were not rendered during printing, which is a shame, because
the whole point of this log line is to warn users of passwords/secrets that are
being removed. Here, we make sure that the config values are properly rendered.
The new logs are now:

    Disabling plugin minio...
        Removing config entry OPENEDX_AWS_ACCESS_KEY=openedx
        Removing config entry OPENEDX_AWS_SECRET_ACCESS_KEY=64vpCVLxhDxBuNjakSrX4CQg
        Plugin disabled
2021-06-22 12:28:58 +02:00
..
__init__.py Add unit tests! yay! 2019-03-23 16:16:44 -07:00
openedx-lms-common-settings Better dev environment 2019-10-24 20:03:36 +02:00
test_bindmounts.py fix: crash during local quickstart -p 2021-05-07 17:01:09 +02:00
test_config.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
test_env.py feat: upgrade to open-release/lilac.master 2021-06-08 23:29:12 +02:00
test_images.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
test_plugins.py fix: better logging during plugins disable 2021-06-22 12:28:58 +02:00
test_serialize.py fix: YamlParamType supports line terminators 2021-04-25 09:14:21 +02:00
test_utils.py refactor: add type annotations 2021-03-15 21:46:55 +01:00