diff --git a/tezt/lib_cloud/alert_manager.ml b/tezt/lib_cloud/alert_manager.ml index 41aaad259997853466c750abeadfe230ef7c83ce..498919f10555274478312ca8c7a17d8c32da1aab 100644 --- a/tezt/lib_cloud/alert_manager.ml +++ b/tezt/lib_cloud/alert_manager.ml @@ -58,7 +58,7 @@ let slack_bottoken_receiver ~name ~channel ~bot_token ?title ?text () = { name; channel; - api_url = "https://api.slack.com/methods/chat.postMessage"; + api_url = "https://slack.com/api/chat.postMessage"; bot_token = Some bot_token; title; text; @@ -108,12 +108,8 @@ let jingoo_receiver_template receiver = ( "http_config", Tobj [ - ( "authorization", - Tobj - [ - ("type", Tstr "Bearer"); - ("credentials", Tstr bot_token); - ] ); + ("type", Tstr "Bearer"); + ("credentials", Tstr bot_token); ] ); ]) ); ] diff --git a/tezt/lib_cloud/alert_manager/alert_manager.yml.jingoo b/tezt/lib_cloud/alert_manager/alert_manager.yml.jingoo index 6ed2353edc1dd86b92dcaab985b804b57d892569..495098fd48f3ba757343550d16e7c3f9f7fe462f 100644 --- a/tezt/lib_cloud/alert_manager/alert_manager.yml.jingoo +++ b/tezt/lib_cloud/alert_manager/alert_manager.yml.jingoo @@ -33,13 +33,18 @@ receivers: slack_configs: - channel: '{{ receiver.config.channel }}' api_url: '{{ receiver.config.api_url }}' - {%- if receiver.config.text %} text: '{{ receiver.config.text|safe }}' {%- endif -%} {%- if receiver.config.title %} title: '{{ receiver.config.title }}' {%- endif -%} + {%- if receiver.config.http_config %} + http_config: + authorization: + type: '{{ receiver.config.http_config.type }}' + credentials: '{{ receiver.config.http_config.credentials }}' + {% endif -%} {% endif -%} {% endfor %}