Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Email alert monitor

GOV.UK provides email alerts. This repo provides scripts that verify that emails have been sent for certain publications.

Currently the script looks at drug and medical advice alerts and foreign travel advice alerts.

The EMAIL_ADDRESSES_TO_CHECK environment variable configures the email addresses which should be sending and receiving any emails. It should be set in this format:

<to_email_address_1>,<from_email_address_1>:<to_email_address_2>,<from_email_address_2>:...

Drug and medical advice alerts

An email address has been subscribed to these alerts (via the email signup page).

Every hour, we look at the public RSS feed for alerts. We then check the email address has received an email for these publications via the Google Gmail API.

Travel advice alerts

An email address has been subscribed to these alerts (via the email signup page).

Every hour, we look at the content store feed for alerts. We then check the email address has received an email for these publications via the Google Gmail API.

Technical documentation

Running

bundle exec rake run for the drug and medical device alert checker

bundle exec rake run_travel_alerts for the travel advice alert checker

Both rake tasks will exit normally and not output anything if everything is OK.

If they find that some alerts have not been sent out, they will print the missing alerts and exit with a non-zero exit code. When reported to Icinga by Jenkins, this will alert developers.

Running the test suite

bundle exec rspec

Licence

MIT License

About

Script run by Jenkins that verifies GOV.UK email alerts have been sent

Topics

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.