Merge lp:~benji/charms/oneiric/buildbot-master/tests-with-config-up-front into lp:~yellow/charms/oneiric/buildbot-master/trunk
Proposed by
Benji York
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | 23 |
Merged at revision: | 23 |
Proposed branch: | lp:~benji/charms/oneiric/buildbot-master/tests-with-config-up-front |
Merge into: | lp:~yellow/charms/oneiric/buildbot-master/trunk |
Diff against target: |
89 lines (+51/-14) 1 file modified
tests/buildbot-master.test (+51/-14) |
To merge this branch: | bzr merge lp:~benji/charms/oneiric/buildbot-master/tests-with-config-up-front |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+92377@code.launchpad.net |
Description of the change
This branch adds tests for the configure-
All the configuration options for the buildbot-master should be covered
now except for config-user and config-private-key, both of which I
/think/ can go away.
Tests pass:
% python hooks/tests.py
..............
---
Ran 14 tests in 0.047s
% RESOLVE_
...
---
Ran 3 tests in 119.182s
To post a comment you must log in.
Firstly, let's not get rid of the user/key stuff just yet. It may need to be repurposed for the "persist history before dying" effort.
As we discussed on IRC please comment why you use flush() on the temporary file so someone doesn't inadvertantly "fix" it.
We also discussed how our test method encode_file doesn't work in the manner we'd use in real life so it may be better to rewrite it to use the UNIX 'base64' command. We used to suggest 'uuencode' which didn't work with our decoding. So I do think we should test the method we suggest people use.
Otherwise a nice addition to the tests.