Merge lp://staging/~jseutter/charms/precise/haproxy/trunk into lp://staging/charms/haproxy
Proposed by
Jerry Seutter
Status: | Merged |
---|---|
Merged at revision: | 72 |
Proposed branch: | lp://staging/~jseutter/charms/precise/haproxy/trunk |
Merge into: | lp://staging/charms/haproxy |
Diff against target: |
183 lines (+99/-4) 3 files modified
hooks/hooks.py (+27/-3) hooks/tests/test_helpers.py (+37/-0) hooks/tests/test_peer_hooks.py (+35/-1) |
To merge this branch: | bzr merge lp://staging/~jseutter/charms/precise/haproxy/trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Ceppi (community) | Approve | ||
Jerry Seutter (community) | Abstain | ||
Chris Glass (community) | Approve | ||
Adam Collard (community) | Approve | ||
Review via email: mp+198646@code.staging.launchpad.net |
Description of the change
This adds support for the backend service to specify errorfiles in the service configuration. If errorfiles are supplied, the haproxy charm will write them to /var/lib/
Currently only the Landscape charm supplies errorfiles.
To post a comment you must log in.
8 +import base64
Move this up to the first import line so the imports stay in alphabetical order
57 + path = "%s/service_%s" % (default_ haproxy_ lib_dir, service_name) exists( path): "http_status" ])
58 + if not os.path.
59 + os.makedirs(path)
60 + full_path = "%s/%s.html" % (path, errorfile[
Use os.path.join() for the path constructions.
121 +
One too many blank lines?
+ self.assertTrue (create_ listen_ stanza. called)
171 +
move that outside of the with-block - you don't need the patching in place for this