Merge lp:~james-page/charm-helpers/is-relation-made into lp:charm-helpers
Proposed by
James Page
Status: | Merged |
---|---|
Merged at revision: | 92 |
Proposed branch: | lp:~james-page/charm-helpers/is-relation-made |
Merge into: | lp:charm-helpers |
Diff against target: |
260 lines (+109/-18) 7 files modified
charmhelpers/cli/host.py (+1/-0) charmhelpers/contrib/ssl/__init__.py (+7/-8) charmhelpers/core/hookenv.py (+20/-0) charmhelpers/fetch/bzrurl.py (+1/-1) tests/contrib/ssl/test_ssl.py (+1/-5) tests/core/test_hookenv.py (+79/-0) tests/fetch/test_bzrurl.py (+0/-4) |
To merge this branch: | bzr merge lp:~james-page/charm-helpers/is-relation-made |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Needs Resubmitting | ||
Adam Gandelman (community) | Needs Fixing | ||
Review via email: mp+191920@code.launchpad.net |
Description of the change
Add is_relation_made helper for deep testing of relation state.
For example, the ceph charm only passes an auth key to clients once
its bootstrapped; until then the client can do anything:
if is_relation_
configure_
else:
don_t()
Unit tests as well.
Thanks for looking.
To post a comment you must log in.
I also tidied the majority of lint in the project;
make lint is a good check when reviewing merge proposals; don't think everyone has been doing that!