Normalize Telegram t.me channel IDs
This commit is contained in:
@@ -307,3 +307,9 @@ def test_gateway_queues_error_alert_for_internal_exception(monkeypatch):
|
||||
assert alerts[0]['service'] == 'api-gateway'
|
||||
assert alerts[0]['status'] == 500
|
||||
assert alerts[0]['path'] == '/proxy/sales/pipelines'
|
||||
|
||||
|
||||
def test_gateway_normalizes_channel_alias_for_t_me(monkeypatch):
|
||||
monkeypatch.setenv('ERROR_TELEGRAM_ALERT_CHANNEL_ID', 't.me/konturaitelecom')
|
||||
|
||||
assert gateway_module._error_alert_chat_ids() == ['@konturaitelecom']
|
||||
|
||||
Reference in New Issue
Block a user