diff --git a/.env.test b/.env.test index eb92b7582..2495522d8 100644 --- a/.env.test +++ b/.env.test @@ -9,6 +9,6 @@ IDENTITY_API_URL=https://preprod.teaching-identity.education.gov.uk/ IDENTITY_SHARED_SECRET_KEY=testkey IDENTITY_USER_TOKEN=testkey REDIS_URL=redis://localhost:6379/1 -SLACK_WEBHOOK_URL=test +SLACK_WEBHOOK=test SUPPORT_PASSWORD=test SUPPORT_USERNAME=test diff --git a/app/services/slack_client.rb b/app/services/slack_client.rb index 9ca599e7a..d5eff9a8c 100644 --- a/app/services/slack_client.rb +++ b/app/services/slack_client.rb @@ -17,7 +17,7 @@ def create_message(message) private def client - Faraday.new(url: ENV.fetch("SLACK_WEBHOOK_URL")) do |faraday| + Faraday.new(url: ENV.fetch("SLACK_WEBHOOK")) do |faraday| faraday.request :json faraday.response :json faraday.response :logger, nil, { bodies: true, headers: true }