Skip to content
 
 

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assert Mail

Test your mail ✉️ configuration with TestInfra.

Build

Build the venv with make and set your environement variables, you need a canary imap account.

  • MAIL_SENDER
  • MAIL_TARGET
  • MAIL_IMAP
  • MAIL_PASSWORD

Test

Then run your tests with your favorite connection backend : https://testinfra.readthedocs.io/en/latest/invocation.html

Test with ansible inventory

You need :

  • your ansible.cfg
  • target group
  • inventory
ANSIBLE_CONFIG=ansible.cfg py.test --hosts='ansible://all' --ansible-inventory=hosts.machin  -v tests/test_sendmail.py

About

Testinfra for emails

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages