class TddDeploy::RemotePostfix
TddDeploy::RemotePostfix
¶ ↑
verifies that postfix executable is installed, running and will accept mail to local_admin_mail on all hosts
Public Instance Methods
test_postfix_accepts_mail()
click to toggle source
# File lib/tdd_deploy/host_tests/remote_postfix.rb, line 17 def test_postfix_accepts_mail deploy_test_on_hosts_as self.host_admin, self.hosts, "mail works\n", 'postfix accepts mail' do |host, login, userid| "echo \"test mail\" | mail -s 'test mail' -r #{userid}@#{host} #{self.local_admin_email} && echo 'mail works'" end end
test_postfix_installed()
click to toggle source
# File lib/tdd_deploy/host_tests/remote_postfix.rb, line 9 def test_postfix_installed deploy_test_file_exists_on_hosts_as 'root', self.hosts, '/usr/sbin/postfix', "postfix should be installed" end
test_postfix_running()
click to toggle source
# File lib/tdd_deploy/host_tests/remote_postfix.rb, line 13 def test_postfix_running deploy_test_process_running_on_hosts_as 'root', self.hosts, '/var/spool/postfix/pid/master.pid', "postfix should be running" end