From 194fed24f4bb766c5bf980031788aabc5ef9d013 Mon Sep 17 00:00:00 2001 From: Joel Sugarman Date: Thu, 19 Oct 2023 07:50:34 +0100 Subject: [PATCH] Revert "AP-4499: Add test mail job" This reverts commit 12afdc6f273f8888afdcca869ad60eaf5db08ac9. --- .simplecov | 1 - app/jobs/test_mail_job.rb | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 app/jobs/test_mail_job.rb diff --git a/.simplecov b/.simplecov index fcb17c2de8..49889aa450 100644 --- a/.simplecov +++ b/.simplecov @@ -7,7 +7,6 @@ SimpleCov.start "rails" do add_filter "lib/tasks/helpers/cfe_payload_recorder.rb" add_filter "lib/tasks/helpers/cy_helper.rb" add_filter "lib/utilities/redis_scanner.rb" - add_filter "app/jobs/test_mail_job.rb" enable_coverage :branch diff --git a/app/jobs/test_mail_job.rb b/app/jobs/test_mail_job.rb deleted file mode 100644 index e5bb65aeed..0000000000 --- a/app/jobs/test_mail_job.rb +++ /dev/null @@ -1,19 +0,0 @@ -class TestMailJob - include Sidekiq::Worker - sidekiq_options queue: :default - - CLIENT_CONFIRMATION_EMAIL = "3b18efe5-7d09-4042-927c-7d1ae03fdd7e".freeze - - def perform(email, name) - client = Notifications::Client.new(Rails.configuration.x.govuk_notify_api_key) - - client.send_email( - email_address: email, - template_id: CLIENT_CONFIRMATION_EMAIL, - personalisation: { - client_name: name, - ref_number: "testing-whatever", - }, - ) - end -end