Merge lp:~ivoks/charms/precise/quantum-gateway/cert-decode into lp:~charmers/charms/precise/quantum-gateway/trunk
Proposed by
Ante Karamatić
Status: | Merged |
---|---|
Merged at revision: | 42 |
Proposed branch: | lp:~ivoks/charms/precise/quantum-gateway/cert-decode |
Merge into: | lp:~charmers/charms/precise/quantum-gateway/trunk |
Diff against target: |
55 lines (+11/-2) 3 files modified
hooks/quantum_hooks.py (+4/-1) revision (+1/-1) unit_tests/test_quantum_hooks.py (+6/-0) |
To merge this branch: | bzr merge lp:~ivoks/charms/precise/quantum-gateway/cert-decode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Approve | ||
Ante Karamatić (community) | Needs Resubmitting | ||
Review via email: mp+204605@code.launchpad.net |
Description of the change
Quantum gateway doesn't decode certificate from relation. This branch fixes that problem.
To post a comment you must log in.
Change looks OK
Please can you update the units tests as well:
jamespage@ armstrong[ ubuntu] :~/src/ charms/ landing/ quantum- gateway$ make test ....... ....... ....... ....... F...... ....... ....... ....... ======= ======= ======= ======= ======= ======= ======= ======= ======= test_quantum_ hooks.TestQuant umHooks) ------- ------- ------- ------- ------- ------- ------- ------- ------- jamespage/ src/charms/ landing/ quantum- gateway/ unit_tests/ test_quantum_ hooks.py" , line 143, in test_nm_changed install_ ca_cert. assert_ called_ with('cert' ) python2. 7/dist- packages/ mock.py" , line 835, in assert_called_with ca_cert( 'cert') ca_cert( 'q\xea\ xed')
Starting tests...
.......
=======
FAIL: test_nm_changed (unit_tests.
-------
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
raise AssertionError(msg)
AssertionError: Expected call: install_
Actual call: install_
Name Stmts Miss Cover Missing ------- ------- ------- ------- ------- ------- ----- contexts 92 3 97% 168-170 ------- ------- ------- ------- ------- ------- ----- ------- ------- ------- ------- ------- ------- ------- ------- -------
-------
hooks/quantum_
hooks/quantum_hooks 64 0 100%
hooks/quantum_utils 160 0 100%
-------
TOTAL 316 3 99%
-------
Ran 63 tests in 0.856s
FAILED (failures=1)
make: *** [test] Error 1
I'd use the passthrough approach used in the dashboard change to cover this.