diff --git a/components/notifications-service/server/lib/formatters/slack.compliance.ex b/components/notifications-service/server/lib/formatters/slack.compliance.ex index 79c0f2d26d7..1e6ef21455e 100644 --- a/components/notifications-service/server/lib/formatters/slack.compliance.ex +++ b/components/notifications-service/server/lib/formatters/slack.compliance.ex @@ -13,7 +13,7 @@ defmodule Notifications.Formatters.Slack.Compliance do "InSpec found a critical control failure on node #{c.node_name}") %{ username: "Chef Automate", - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", text: msg, attachments: [attachment_note(c)], } diff --git a/components/notifications-service/server/lib/formatters/slack.ex b/components/notifications-service/server/lib/formatters/slack.ex index 7011ab10326..70d243892ac 100644 --- a/components/notifications-service/server/lib/formatters/slack.ex +++ b/components/notifications-service/server/lib/formatters/slack.ex @@ -16,7 +16,7 @@ defmodule Notifications.Formatters.Slack do def format(%{__struct__: type} = n) when type in [CCRFailure, CCRSuccess] do payload = Message.new( username: "Chef Automate", - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", attachments: [attachment_note(n)], text: alert_text(n) ) diff --git a/components/notifications-service/server/test/formatters/slack.compliance_test.exs b/components/notifications-service/server/test/formatters/slack.compliance_test.exs index bf0bb2ff924..3c37633a2d4 100644 --- a/components/notifications-service/server/test/formatters/slack.compliance_test.exs +++ b/components/notifications-service/server/test/formatters/slack.compliance_test.exs @@ -23,7 +23,7 @@ defmodule Notifications.Formatters.Slack.Compliance.Test do mrkdwn_in: ["text", "pretext"], text: "```expected File /etc/ssh not to be readable by others```\n" }], - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", text: "", username: "Chef Automate" } @@ -52,7 +52,7 @@ defmodule Notifications.Formatters.Slack.Compliance.Test do mrkdwn_in: ["text", "pretext"], text: "```2 of 3 tests failed. View in Chef Automate for full details.```\n" }], - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", text: "", username: "Chef Automate" } @@ -81,7 +81,7 @@ defmodule Notifications.Formatters.Slack.Compliance.Test do mrkdwn_in: ["text", "pretext"], text: "```2 of 3 tests failed. View in Chef Automate for full details.```\n" }], - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", text: "", username: "Chef Automate" } @@ -110,7 +110,7 @@ defmodule Notifications.Formatters.Slack.Compliance.Test do mrkdwn_in: ["text", "pretext"], text: "```97 of 174 tests failed. View in Chef Automate for full details.```\n" }], - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", text: "", username: "Chef Automate" } diff --git a/components/notifications-service/server/test/formatters/slack_test.exs b/components/notifications-service/server/test/formatters/slack_test.exs index 3edf170f47a..6fbfa7d0377 100644 --- a/components/notifications-service/server/test/formatters/slack_test.exs +++ b/components/notifications-service/server/test/formatters/slack_test.exs @@ -29,7 +29,7 @@ defmodule Notifications.Formatters.Slack.Test do Line: 26``` """) }], - icon_url: "https://docs.chef.io/_static/chef_logo_v2.png", + icon_url: "https://docs.chef.io/images/chef-icon.png", text: "\n", username: "Chef Automate" }