Commit f94bc27d authored by georg's avatar georg

Merge branch 'paz/do-not-ask-for-passphrase' into 'master'

Do not ask for a passphrase ever when running tests.

Closes #448

See merge request schleuder/schleuder!316
parents b749fd06 8072408e
Pipeline #34362 passed with stages
in 26 minutes and 35 seconds
...@@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ...@@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
* Handle incoming mails encrypted to an absent key, using symmetric encryption or containing PGP-garbage in a more graceful manner: Don't throw an exception, don't notify (and annoy) the admins, instead inform the sender of the mail how to do better. (#337) * Handle incoming mails encrypted to an absent key, using symmetric encryption or containing PGP-garbage in a more graceful manner: Don't throw an exception, don't notify (and annoy) the admins, instead inform the sender of the mail how to do better. (#337)
* Add missing List-Id header to notification mails sent to admins. This should help with filtering such messages, which is currently not easy to do in a reliable way. * Add missing List-Id header to notification mails sent to admins. This should help with filtering such messages, which is currently not easy to do in a reliable way.
* Fix running Schleuder with ruby 2.7. * Fix running Schleuder with ruby 2.7.
* Ensure that GnuPG never asks for a passphrase, even if it wants one. (#448)
## [3.4.1] / 2019-09-16 ## [3.4.1] / 2019-09-16
......
...@@ -68,6 +68,9 @@ ENV["SCHLEUDER_CONFIG"] ||= '/etc/schleuder/schleuder.yml' ...@@ -68,6 +68,9 @@ ENV["SCHLEUDER_CONFIG"] ||= '/etc/schleuder/schleuder.yml'
ENV["SCHLEUDER_LIST_DEFAULTS"] ||= '/etc/schleuder/list-defaults.yml' ENV["SCHLEUDER_LIST_DEFAULTS"] ||= '/etc/schleuder/list-defaults.yml'
ENV["SCHLEUDER_ENV"] ||= 'production' ENV["SCHLEUDER_ENV"] ||= 'production'
ENV["SCHLEUDER_ROOT"] = rootdir.to_s ENV["SCHLEUDER_ROOT"] = rootdir.to_s
# Ensure that gnupg never-ever tries to ask for a passphrase.
ENV["GPG_TTY"] = "/nonexistant-#{rand}"
ENV["DISPLAY"] = nil
GPGME::Ctx.set_gpg_path_from_env GPGME::Ctx.set_gpg_path_from_env
GPGME::Ctx.check_gpg_version GPGME::Ctx.check_gpg_version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment