Checks Module
- action_triggers.checks.check_action_triggers_set(app_configs, **kwargs)[source]
Check that ACTION_TRIGGERS has been set.
- Parameters:
app_configs – The app configuration.
kwargs – Additional keyword arguments.
- action_triggers.checks.check_broker_types_are_valid(app_configs, **kwargs)[source]
Test that the broker_type`s provied in `ACTION_TRIGGERS.brorkers are valid.
- Parameters:
app_config – The app configuration.
kwargs – Additional keyword arguments.
- action_triggers.checks.warning_whitelist_content_types_set(app_configs, **kwargs)[source]
Check that ACTION_TRIGGERS.whitelisted_content_types has been set. If it has not, show a depreciation warning that in the future, the allowed content types will be set in the action trigger configuration.
- Parameters:
app_configs – The app configuration.
kwargs – Additional keyword arguments.
- action_triggers.checks.warning_whitelisted_webhook_endpoint_patterns_not_provided(app_configs, **kwargs)[source]
Check that ACTION_TRIGGERS.whitelisted_webhook_endpoint_patterns has been set. If it has not, show a message that any webhook endpoint will be allowed and that this is a security risk.
- Parameters:
app_configs – The app configuration.
kwargs – Additional keyword arguments.