summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/tests/integrated/integrated_helpers.py6
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