Merge lp:~psivaa/utah/changetopending into lp:utah

Proposed by Para Siva
Status: Merged
Approved by: Javier Collado
Approved revision: 907
Merged at revision: 912
Proposed branch: lp:~psivaa/utah/changetopending
Merge into: lp:utah
Diff against target: 30 lines (+3/-3)
1 file modified
utah/isotest/iso_static_validation.py (+3/-3)
To merge this branch: bzr merge lp:~psivaa/utah/changetopending
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Javier Collado (community) Approve
Review via email: mp+163701@code.launchpad.net

Description of the change

The images will first be available in 'pending' stub and not under 'current'. So the test should check the image contents against the 'pending' repositories.

To post a comment you must log in.
Revision history for this message
Javier Collado (javier.collado) wrote :

Thanks for the merge request.

I see in iso_static_validation.py a few more places in which current is being
used either as a variable name, a documentation string or a path. Have you
checked if the change to pending is needed also in some of those places?

Revision history for this message
Para Siva (psivaa) wrote :

I have not touched the variable names. They could remain as they are, technically. Also making the variable names to pending does not make a lot of sense. We are in fact testing the current image but only difference is that before certain smoke tests the current images will be under 'pending' stub in cdimages.

The only place where 'current' value is not changes is in line 292, where buildid is compared. This is intentional because in the cdimage schema, the buildid stub is right above 'current'

Revision history for this message
Javier Collado (javier.collado) wrote :

Thanks for the explanation. It looks good to me, but I'd like Max to take a look at it as well
before merging.

review: Approve
Revision history for this message
Max Brustkern (nuclearbob) wrote :

Looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'utah/isotest/iso_static_validation.py'
2--- utah/isotest/iso_static_validation.py 2013-04-19 11:24:33 +0000
3+++ utah/isotest/iso_static_validation.py 2013-05-14 13:00:36 +0000
4@@ -184,7 +184,7 @@
5 def test_sha256_checksum(self):
6 """Test if the ISO SHA checksum matches what is given in the server."""
7 current_iso_digest = {}
8- sha256sum_url = os.path.join(self.url, 'current', 'SHA256SUMS')
9+ sha256sum_url = os.path.join(self.url, 'pending', 'SHA256SUMS')
10 try:
11 fh = urllib2.urlopen(sha256sum_url)
12 except urllib2.HTTPError, e:
13@@ -222,7 +222,7 @@
14 def test_files_list(self):
15 """Test if the list repository file matches the content of the ISO."""
16 list_url = os.path.join(
17- self.url, 'current', '{}.list'
18+ self.url, 'pending', '{}.list'
19 .format('-'.join([self.st_release, st_variant, self.st_arch])))
20
21 try:
22@@ -251,7 +251,7 @@
23 def test_manifest(self):
24 """Test if the ISO manifest matches the one in the server."""
25 manifest_url = os.path.join(
26- self.url, 'current', '{}.manifest'
27+ self.url, 'pending', '{}.manifest'
28 .format('-'.join([self.st_release, st_variant, self.st_arch])))
29
30 try:

Subscribers

People subscribed via source and target branches

to all changes: