Merge lp:~adeuring/charmworld/bump-charmtools-version into lp:~juju-jitsu/charmworld/trunk

Proposed by Abel Deuring
Status: Merged
Approved by: Abel Deuring
Approved revision: 417
Merged at revision: 417
Proposed branch: lp:~adeuring/charmworld/bump-charmtools-version
Merge into: lp:~juju-jitsu/charmworld/trunk
Diff against target: 42 lines (+7/-4)
2 files modified
charmworld/jobs/tests/test_proof.py (+6/-3)
requirements.txt (+1/-1)
To merge this branch: bzr merge lp:~adeuring/charmworld/bump-charmtools-version
Reviewer Review Type Date Requested Status
Juju Gui Bot continuous-integration Approve
Brad Crittenden (community) code Approve
Review via email: mp+190648@code.launchpad.net

Commit message

Use a version of the charmtools source tarball that includes checks of config.yaml

Description of the change

Testing the branch that was merged yesterday (lp:~adeuring/charmworld/use-charmtools-tarball), I noticed that version 1.0.1 of charmtools cannot yet check config.yaml files.

This branch changes the version of charmtools we want; I built a "private" tarball with this version -- waiting for an "official" release may need some patience...

Running the test suite, I noticed a failure in test_proof: the results of prrofing our test data changed. This failure is an implicit test that we now do indeed check the config.yaml files -- but it also shows that it was probably right to use a tarball as the source of charmtools, instead of using a reguler installation from a deb package that, originating from a PPA, might occasionally change and thus casuing unexpected test failures.

To post a comment you must log in.
Revision history for this message
Brad Crittenden (bac) wrote :

Looks good. Thanks.

review: Approve (code)
Revision history for this message
Juju Gui Bot (juju-gui-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charmworld/jobs/tests/test_proof.py'
2--- charmworld/jobs/tests/test_proof.py 2013-10-10 11:31:24 +0000
3+++ charmworld/jobs/tests/test_proof.py 2013-10-11 13:17:40 +0000
4@@ -35,7 +35,7 @@
5 ' Unknown root metadata field (dotted.name)',
6 ' no copyright file',
7 ' relation ssl_website is not a map',
8- ' relation sql_db is not a map'
9+ ' relation sql_db is not a map',
10 ],
11 'w': [
12 ' Metadata is missing categories.',
13@@ -44,11 +44,14 @@
14 ' install not executable',
15 ' start not executable',
16 ' stop not executable',
17- ' config-changed not executable'
18+ ' config-changed not executable',
19+ ' config.yaml: option source has an invalid type (string)',
20+ (' config.yaml: option error-email has an invalid '
21+ 'type (string)'),
22 ],
23 'i': [
24 ' relation ssl_website has no hooks',
25- ' relation sql_db has no hooks'
26+ ' relation sql_db has no hooks',
27 ],
28 },
29 charm['proof'])
30
31=== modified file 'requirements.txt'
32--- requirements.txt 2013-10-10 11:27:55 +0000
33+++ requirements.txt 2013-10-11 13:17:40 +0000
34@@ -3,7 +3,7 @@
35 Beaker==1.6.4
36 bzr==2.5.1
37 Chameleon==2.5.1
38-charmtools==1.0.1
39+charmtools==1.1.0-252-cw
40 colander==0.9.9
41 configobj==4.7.2
42 deform==0.9.5

Subscribers

People subscribed via source and target branches