Merge lp:~bloodearnest/charms/trusty/postgresql/trunk into lp:charms/trusty/postgresql
Proposed by
Simon Davy
Status: | Merged |
---|---|
Merged at revision: | 132 |
Proposed branch: | lp:~bloodearnest/charms/trusty/postgresql/trunk |
Merge into: | lp:charms/trusty/postgresql |
Diff against target: |
208 lines (+135/-14) 2 files modified
hooks/service.py (+23/-14) tests/test_pg_hba_conf.py (+112/-0) |
To merge this branch: | bzr merge lp:~bloodearnest/charms/trusty/postgresql/trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Review Queue (community) | automated testing | Approve | |
Stuart Bishop (community) | Approve | ||
Review via email: mp+278077@code.launchpad.net |
Commit message
* Add tests for pg_hba.conf generation
- found/fixed bug in extra_pg_auth handiling
- found/fixed 2 bugs in master relation handling
- found/fixed bug in admin_addresses handling
* Slight refactor of update_pg_hba_conf to make more testable, moving the main
logic into a separate function with params, rather than embedding stateful
functions in amongst the logic
Description of the change
Add test coverage of the pg_hba.conf generation, and fix several bugs in the process.
To post a comment you must log in.
The results (PASS) are in and available here: http:// juju-ci. vapour. ws:8080/ job/charm- bundle- test-lxc/ 1470/