Merge lp:~psivaa/qa-iso-static-validation-test/qa-iso-static-validation-test into lp:qa-iso-static-validation-test

Proposed by Para Siva
Status: Merged
Approved by: Para Siva
Approved revision: 18
Merged at revision: 15
Proposed branch: lp:~psivaa/qa-iso-static-validation-test/qa-iso-static-validation-test
Merge into: lp:qa-iso-static-validation-test
Diff against target: 48 lines (+16/-6)
1 file modified
iso_static_validation.py (+16/-6)
To merge this branch: bzr merge lp:~psivaa/qa-iso-static-validation-test/qa-iso-static-validation-test
Reviewer Review Type Date Requested Status
Para Siva Approve
Review via email: mp+125130@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Para Siva (psivaa) :
review: Approve
Revision history for this message
Para Siva (psivaa) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'iso_static_validation.py'
2--- iso_static_validation.py 2012-09-18 13:30:01 +0000
3+++ iso_static_validation.py 2012-09-19 08:42:19 +0000
4@@ -33,9 +33,8 @@
5 import shutil
6
7 # Defaults
8-#DEFAULT_ISOROOT = os.path.expanduser(
9-# '/var/lib/ubuntu-server-iso-testing/isos/ubuntu/')
10 DEFAULT_URL = 'http://cdimage.ubuntu.com/'
11+ARCHIVE_TEST_URL = 'http://people.canonical.com/~ubuntu-archive/testing/'
12
13 #constants
14 ONE_MB_BLOCK = 2 ** 20
15@@ -106,6 +105,9 @@
16 else:
17 self.fail("Image name be in the form of release-variant-arch.iso")
18
19+ self.probs_url = os.path.join(ARCHIVE_TEST_URL, self.st_release +
20+ '_probs.html')
21+
22 # Test if the sha check sum of the iso matches that is given in the server
23 def test_sha256_checksum(self):
24 current_iso_digest = {}
25@@ -382,11 +384,19 @@
26 logging.error("Failed to fetch URL '%s': %s .", report_url, e)
27 self.fail("Failed to fetch report.html from the server")
28
29- # check the number of failed packages
30- report_page_lines = re.findall('there were ["]?([^" >]+)',
31+ uninst_pkgs = re.findall('"?([^" >]+ )produces uninstallable binaries',
32 fh_report_page)
33- logging.debug('Check for conflicting packages in the report file')
34- self.assertEqual(['0'], report_page_lines)
35+
36+ try:
37+ fh_probs_page = urllib2.urlopen(self.probs_url).read()
38+ except urllib2.HTTPError, e:
39+ logging.error("Failed to fetch URL '%s': %s .", self.probs_url, e)
40+ self.fail("Failed to fetch problems.html from the server")
41+
42+ # If a package is listed in report.html and not in problems page
43+ # then it's a concern and needs attention
44+ for uninst_pkg in uninst_pkgs:
45+ self.assertIn(uninst_pkg.rstrip(), fh_probs_page)
46
47 # Test if the size of the image fits a 700MB disc
48 def test_size(self):

Subscribers

People subscribed via source and target branches

to all changes: