Merge lp:~allenap/rabbitfixture/untangle-host into lp:rabbitfixture
Proposed by
Gavin Panella
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gavin Panella | ||||
Approved revision: | 34 | ||||
Merged at revision: | 30 | ||||
Proposed branch: | lp:~allenap/rabbitfixture/untangle-host | ||||
Merge into: | lp:rabbitfixture | ||||
Diff against target: |
144 lines (+48/-20) 2 files modified
rabbitfixture/server.py (+24/-15) rabbitfixture/tests/test_server.py (+24/-5) |
||||
To merge this branch: | bzr merge lp:~allenap/rabbitfixture/untangle-host | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+185836@code.launchpad.net |
Commit message
Fix port reuse issues when restarting the fixture.
Previously RabbitMQ was started on all addresses, the fq_hostname property was incorrectly using gethostname() regardless of the hostname given, and allocate_ports() only ever checked ports on localhost.
Description of the change
As suggested in the bug report, this branch:
- Only starts RabbitMQ on the specified address. The environment
variable RABBITMQ_
- fq_hostname uses the configured hostname.
- allocate_ports() takes a *args of addresses.
To post a comment you must log in.