← Back to team overview

ubuntu-server-iso-testing-dev team mailing list archive

[Merge] lp:~hggdh2/ubuntu-server-iso-testing/usit-mail-server into lp:ubuntu-server-iso-testing

 

C de-Avillez has proposed merging lp:~hggdh2/ubuntu-server-iso-testing/usit-mail-server into lp:ubuntu-server-iso-testing.

Requested reviews:
  Ubuntu Server Iso Testing Developers (ubuntu-server-iso-testing-dev)

For more details, see:
https://code.launchpad.net/~hggdh2/ubuntu-server-iso-testing/usit-mail-server/+merge/67903

Simple change, splitting the Dovecot check into IPv4 and IPv6. We are now enabling IPv6 by default on Oneiric.
-- 
https://code.launchpad.net/~hggdh2/ubuntu-server-iso-testing/usit-mail-server/+merge/67903
Your team Ubuntu Server Iso Testing Developers is requested to review the proposed merge of lp:~hggdh2/ubuntu-server-iso-testing/usit-mail-server into lp:ubuntu-server-iso-testing.
=== modified file 'templates/test_cases/mail-server/test'
--- templates/test_cases/mail-server/test	2010-12-01 17:48:05 +0000
+++ templates/test_cases/mail-server/test	2011-07-13 21:27:30 +0000
@@ -49,8 +49,17 @@
         mbox = mailbox.mbox(spool_file)
         self.assertEquals(len(mbox.keys()), 1, mbox)
 
-    def testDovecot(self):
-        cmd = ["netstat", "-ltnp"]
+    def testDovecotTcp4(self):
+        cmd = ["netstat", "-4", "-ltnp"]
+        logging.debug("Cmd: %s" % (cmd))
+        output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
+        logging.debug("Cmd output: %s" % (output))
+        output2 = filter(lambda l: l.split()[6].split('/')[1] == 'dovecot',
+                         output.strip().split('\n')[2:])
+        self.assertEquals(len(output2), 4, output2)
+
+    def testDovecotTcp6(self):
+        cmd = ["netstat", "-6", "-ltnp"]
         logging.debug("Cmd: %s" % (cmd))
         output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
         logging.debug("Cmd output: %s" % (output))


Follow ups