From e84096852f17ec14feb9b600ba5a07174fdab7ec Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 26 Aug 2014 06:39:05 +0200 Subject: [PATCH] Update requirements, fix testsuite Manually update from global requirements. Remove obsolete docutils pin. Regenerate climate config file. Fix testsuite for testtools change. Workaround PYTHONHASHSEED setting in tox, disable for now so that tests always pass. Change-Id: I8c4a458371b28c91c5b848094e56038a16d6afc3 --- climate/tests/test_context.py | 2 +- etc/climate/climate.conf.sample | 29 ++++++++++++++++------------- requirements.txt | 12 ++++++------ test-requirements.txt | 1 - tox.ini | 1 + 5 files changed, 24 insertions(+), 21 deletions(-) diff --git a/climate/tests/test_context.py b/climate/tests/test_context.py index 3a2bc303..1d88d8a3 100644 --- a/climate/tests/test_context.py +++ b/climate/tests/test_context.py @@ -45,7 +45,7 @@ class TestBaseContext(tests.TestCase): super(TestBaseContext, self).setUp() self.context = TestContext(first=1, second=2) - def test_get_defined(self): + def tearDown(self): super(TestBaseContext, self).tearDown() self.assertEqual(self.context.first, 1) diff --git a/etc/climate/climate.conf.sample b/etc/climate/climate.conf.sample index a2f85d3b..e4f0b4b7 100644 --- a/etc/climate/climate.conf.sample +++ b/etc/climate/climate.conf.sample @@ -14,10 +14,6 @@ # Size of RPC connection pool. (integer value) #rpc_conn_pool_size=30 -# Modules of exceptions that are permitted to be recreated -# upon receiving exception data from an rpc call. (list value) -#allowed_rpc_exception_modules=oslo.messaging.exceptions,nova.exception,cinder.exception,exceptions - # Qpid broker hostname. (string value) #qpid_hostname=localhost @@ -156,15 +152,6 @@ # Heartbeat time-to-live. (integer value) #matchmaker_heartbeat_ttl=600 -# Host to locate redis. (string value) -#host=127.0.0.1 - -# Use this port to connect to redis host. (integer value) -#port=6379 - -# Password for Redis server (optional). (string value) -#password= - # Size of RPC greenthread pool. (integer value) #rpc_thread_pool_size=64 @@ -740,6 +727,22 @@ #notify_hours_before_lease_end=48 +[matchmaker_redis] + +# +# Options defined in oslo.messaging +# + +# Host to locate redis. (string value) +#host=127.0.0.1 + +# Use this port to connect to redis host. (integer value) +#port=6379 + +# Password for Redis server (optional). (string value) +#password= + + [matchmaker_ring] # diff --git a/requirements.txt b/requirements.txt index 1fece11a..24ffdd8d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,20 +1,20 @@ pbr>=0.6,!=0.7,<1.0 -alembic>=0.6.2 +alembic>=0.6.4 Babel>=1.3 eventlet>=0.13.0 Flask>=0.10,<1.0 iso8601>=0.1.9 kombu>=2.4.8 -oslo.config>=1.2.1 -oslo.messaging>=1.3.0 +oslo.config>=1.4.0.0a3 +oslo.messaging>=1.4.0.0a3 posix_ipc python-novaclient>=2.17.0 netaddr>=0.7.6 -python-keystoneclient>=0.9.0 -pecan>=0.4.5 +python-keystoneclient>=0.10.0 +pecan>=0.5.0 Routes>=1.12.3,!=2.0 -SQLAlchemy>=0.8.4,!=0.9.5,<=0.9.99 +SQLAlchemy>=0.8.4,<=0.8.99,>=0.9.7,<=0.9.99 stevedore>=0.14 WebOb>=1.2.3 WSME>=0.6 diff --git a/test-requirements.txt b/test-requirements.txt index 99f01b1e..4972001d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,5 @@ hacking>=0.8.0,<0.9 -docutils==0.9.1 nose mock>=1.0 mox>=0.5.3 diff --git a/tox.ini b/tox.ini index 941cc22c..63a5bdc5 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,7 @@ deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt setenv = VIRTUAL_ENV={envdir} DISCOVER_DIRECTORY=climate/tests + PYTHONHASHSEED=0 commands = python -m climate.openstack.common.lockutils python setup.py testr --slowest --testr-args="{posargs}"