]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make test_server work with older versions of oslo.service
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 13 Oct 2015 12:46:02 +0000 (14:46 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Tue, 13 Oct 2015 12:46:02 +0000 (14:46 +0200)
commit7bb40921660cf29beb68e338e205499efd6ffa36
tree1e7b26d4c5b1ff7195903758c1eea0ea894ad8ff
parent090fe713592c2b6398d999bfa03b80cbb2054609
Make test_server work with older versions of oslo.service

Change I18a11283925369bc918002477774f196010a1bc3 fixed the test for
oslo.service >= 0.10.0, but it also broke it for older versions of
oslo.service. Since the library has minimal version of >= 0.7.0 in
requirements.txt, test should pass for those versions too.

Now, instead of validating that either reset() or restart() of workers
are triggered on SIGHUP, just validate that .start() is triggered the
expected number of times (either way, no matter how oslo.service decide
to clean up the children, they exit and then are respawned).

Change-Id: I41f9d3af780b3178b075bc1e7084f417a2bd1378
Closes-Bug: #1505645
neutron/tests/functional/test_server.py