]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Override osapi_volume_listen_port for test_workers
authorMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Fri, 18 Dec 2015 16:02:27 +0000 (11:02 -0500)
committerMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Fri, 18 Dec 2015 16:02:27 +0000 (11:02 -0500)
commit99bf66b5aebac23892ba4a41595e65f890585e72
tree152bf2a2e0db3338a07d4ce9b8dc5bdef4f3493f
parent2eb613d536e3d4e9c1668b41c23fe29a2861e3d1
Override osapi_volume_listen_port for test_workers

After removing WSGI from Cinder, following test cases hit
"socket.error: [Errno 98] Address already in use" error.

- test_workers_set_default
- test_workers_set_good_user_setting
- test_workers_set_zero_user_setting

The root cause is that these test cases try to use 8776 port,
but the port is used by c-api if the service exists.
This patch override default port number to avoid the error.

Change-Id: I8e2b505c2aff511969cd55851272b10c013aef6c
Closes-Bug: #1527566
cinder/tests/unit/test_service.py