diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2012-05-01 11:04:17 -0400 |
|---|---|---|
| committer | Brian Lamar <brian.lamar@rackspace.com> | 2012-05-01 11:06:41 -0400 |
| commit | bd17bfbbfeb741affd73d6a7f7a1018cb32db1a0 (patch) | |
| tree | d4a7d7f455b892dcad9786d0d63fb0ca10e01fa7 | |
| parent | fb58a57af6c9e88cc1696378fbd4bb72307bcbcb (diff) | |
| download | nova-bd17bfbbfeb741affd73d6a7f7a1018cb32db1a0.tar.gz nova-bd17bfbbfeb741affd73d6a7f7a1018cb32db1a0.tar.xz nova-bd17bfbbfeb741affd73d6a7f7a1018cb32db1a0.zip | |
Update integration tests to listen on 127.0.0.1
Currently tests are listening on 0.0.0.0 which causes tests to
unnecessarily listen on all IPs.
Change-Id: Iaad79bd449e61e0639b153d81205a0e666bc29df
| -rw-r--r-- | nova/tests/integrated/integrated_helpers.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/tests/integrated/integrated_helpers.py b/nova/tests/integrated/integrated_helpers.py index 9909382ca..e205dfb18 100644 --- a/nova/tests/integrated/integrated_helpers.py +++ b/nova/tests/integrated/integrated_helpers.py @@ -96,6 +96,12 @@ class _IntegratedTestBase(test.TestCase): """An opportunity to setup flags, before the services are started.""" f = {} + # Ensure tests only listen on localhost + f['ec2_listen'] = '127.0.0.1' + f['osapi_compute_listen'] = '127.0.0.1' + f['osapi_volume_listen'] = '127.0.0.1' + f['metadata_listen'] = '127.0.0.1' + # Auto-assign ports to allow concurrent tests f['ec2_listen_port'] = 0 f['osapi_compute_listen_port'] = 0 |
