======================================================================
FAIL: proboscis.case.MethodTest (test_expected_get_configuration_parameter)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/api/configurations.py", line 232, in test_expected_get_configuration_parameter
parameter.has_field('datastore_version_id', unicode)
File "/usr/lib/python2.7/dist-packages/proboscis/check.py", line 127, in __exit__
raise ASSERTION_ERROR(final_message)
AssertionError: Check failure! Traceback:
File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
result = function(*args, **kwargs)
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/util/event_simulator.py", line 62, in go
func(*args, **kwargs)
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/util/event_simulator.py", line 194, in thread_start
return func(*args, **kw)
* File "run_tests.py", line 193, in run_tests
proboscis.TestProgram().run_and_exit()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 577, in run_and_exit
self.__run()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 534, in run
*args, **kwargs
* File "/usr/lib/python2.7/dist-packages/nose/core.py", line 121, in __init__
**extra_args)
* File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
* File "/usr/lib/python2.7/dist-packages/nose/core.py", line 207, in runTests
result = self.testRunner.run(self.test)
* File "/usr/lib/python2.7/dist-packages/nose/core.py", line 62, in run
test(result)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 177, in __call__
return self.run(*arg, **kw)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 224, in run
test(orig)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 177, in __call__
return self.run(*arg, **kw)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 224, in run
test(orig)
* File "/usr/lib/python2.7/dist-packages/nose/case.py", line 45, in __call__
return self.run(*arg, **kwarg)
* File "/usr/lib/python2.7/dist-packages/nose/case.py", line 133, in run
self.runTest(result)
* File "/usr/lib/python2.7/dist-packages/nose/case.py", line 151, in runTest
test(result)
* File "/usr/lib/python2.7/unittest/case.py", line 395, in __call__
return self.run(*args, **kwds)
* File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
* File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
* File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/api/configurations.py", line 229, in test_expected_get_configuration_parameter
parameter.has_field('max', int)
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/util/check.py", line 201, in has_field
attribute_type))
AssertionError: ConfigurationParameter attribute max is of type <type 'long'> (expected one of the following: <type 'int'>).
-------------------- >> begin captured stdout << ---------------------
params: <ConfigurationParameter: {'name': u'key_buffer_size', 'min': 0, 'max': 4294967296L, 'manager': <troveclient.v1.configurations.ConfigurationParameters object at 0x57a6d46c>, 'restart_required': False, '_info': {u'name': u'key_buffer_size', u'min': 0, u'max': 4294967296L, u'restart_required': False, u'type': u'integer', u'datastore_version_id': u'b00000b0-00b0-0b00-00b0-000b000000bb'}, 'type': u'integer', 'datastore_version_id': u'b00000b0-00b0-0b00-00b0-000b000000bb', '_loaded': True}>
resp: {'status': '200', 'content-length': '166', 'content-type': 'application/json', 'content-location': u'http://localhost:8779/v1.0/2500/datastores/mysql/versions/5.5/parameters/key_buffer_size'}
body: {"name": "key_buffer_size", "min": 0, "max": 4294967296, "restart_required": false, "type": "integer", "datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"}
config_parameter_dict: {u'name': u'key_buffer_size', u'min': 0, u'max': 4294967296L, u'restart_required': False, u'type': u'integer', u'datastore_version_id': u'b00000b0-00b0-0b00-00b0-000b000000bb'}
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
trove.common.base_wsgi: DEBUG: Empty body provided in request
trove.common.wsgi: DEBUG: Getting schema for type:show
troveclient.compat.client: DEBUG: REQ: curl -i http://localhost:8779/v1.0/2500/datastores/mysql/versions/5.5/parameters/key_buffer_size -X GET -H "X-Auth-Project-Id: 2500" -H "User-Agent: python-troveclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 2500"
troveclient.compat.client: DEBUG: RESP:{'status': '200', 'content-length': '166', 'content-type': 'application/json', 'content-location': u'http://localhost:8779/v1.0/2500/datastores/mysql/versions/5.5/parameters/key_buffer_size'} {"name": "key_buffer_size", "min": 0, "max": 4294967296, "restart_required": false, "type": "integer", "datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"}
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
This bug was fixed in the package openstack-trove - 2015.1~rc1-0ubuntu2
--------------- rc1-0ubuntu2) vivid; urgency=medium
openstack-trove (2015.1~
* Ensure package tests pass on 32 and 64 bit systems (LP: #1446174): intlong- test.patch: Check for int *and* long values as valid
- d/p/fix-
types for max/min parameters.
-- James Page <email address hidden> Mon, 20 Apr 2015 12:20:31 +0100