~ubuntu-server-qa/ubuntu-test-cases/server-tests-raring

« back to all changes in this revision

Viewing changes to testsuites/dns-server/test_open_ports/test.py

  • Committer: Joshua Powers
  • Date: 2018-04-17 17:39:57 UTC
  • Revision ID: josh.powers@canonical.com-20180417173957-to4pbb6mruyd48co
Verify >= 3 items, as Xenial tests still only have 3, while
Bionic has 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                         output.strip().split('\n')[2:])
39
39
        self.assertEqual(len(output2), 5)
40
40
 
41
 
        logging.debug("Check if 4 instances of deamon are on port53")
 
41
        logging.debug("Check if >3 instances of deamon are on port53")
42
42
        output53 = filter(lambda l: int(l.split()[3].split(':')[-1]) == 53,
43
43
                          output.strip().split('\n')[2:])
44
 
        self.assertEqual(len(output53), 4)
 
44
        self.assertGreaterEqual(len(output53), 3)
45
45
 
46
46
        logging.debug("Check if 2 instances rndc running on port953")
47
47
        output953 = filter(lambda l: int(l.split()[3].split(':')[-1]) == 953,