crashappsec / chalk

Chalk allows you to follow code from development, through builds and into production.
https://crashoverride.com/
GNU General Public License v3.0
322 stars 11 forks source link

fix: chalk load revalidates already cached components #313

Closed miki725 closed 1 month ago

miki725 commented 1 month ago

Issue

fixes https://github.com/crashappsec/chalk/issues/312

Description

test config function reloads all cached components which means if previously cached component would be reloaded, the test funcion would reload its previous definition hence not actually testing the new definition. By ignoring the component to be loaded, this ensures the new definition is not replaced by anything hence all components can be successfully validated.

Testing

➜ make tests args="test_config.py::test_load_valid_then_invalid --pdb"