Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions splitgpg2tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,13 @@ def setUp(self):
# IMAP configuration
self.imap_pw = "pass"
self.frontend.run(
'echo "mail_location=maildir:~/Mail" |\
sudo tee /etc/dovecot/conf.d/100-mail.conf', wait=True)
self.frontend.run('sudo systemctl restart dovecot', wait=True)
self.frontend.run( # set a user password because IMAP needs one for auth
'sudo usermod -p `echo "{}" | openssl passwd --stdin` user'\
.format(self.imap_pw),
wait=True)
'echo "mail_location=maildir:~/Mail\nuserdb {\n driver = passwd\n}\npassdb {\n driver = static\n args = password=pass\n}" |\
tee /etc/dovecot/conf.d/100-mail.conf', wait=True, user="root")
self.frontend.run(
"sed -i 's/^!include/#\\0/' /etc/dovecot/conf.d/10-auth.conf",
wait=True, user="root")
self.frontend.run('systemctl restart dovecot',
wait=True, user="root")

self.setup_tb_profile(setup_openpgp=True)

Expand Down