Unit test failure building Newton b2 in debian
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Expired
|
Undecided
|
Unassigned |
Bug Description
I experienced the below unit test failures when buildng Senlin Debian package for Newton b2. Note that it only happens in Sid + Experimental, it seems to build well in Jessie.
=======
FAIL: senlin.
senlin.
-------
_StringException: Empty attachments:
pythonlogging:''
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
Traceback (most recent call last):
File "senlin/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.
reference = {'auth_token': '123',
'auth_token_info': {'123info': 'woop'},
'auth_url': 'http://
'domain': 'domain-id',
'domain_name': 'this domain',
'is_admin': False,
'is_admin_
'password': 'foo',
'project': 'project-id',
'project_domain': 'project-
'project_
'project_name': 'a project',
'read_only': False,
'region_name': 'regionOne',
'roles': ['arole', 'notadmin'],
'show_deleted': False,
'trusts': None,
'user': 'fooUser',
'user_domain': 'user-domain',
'user_
'user_name': 'mick'}
actual = {'auth_token': '123',
'auth_token_info': {'123info': 'woop'},
'auth_url': 'http://
'domain': 'domain-id',
'domain_name': 'this domain',
'is_admin': False,
'password': 'foo',
'project': 'project-id',
'project_domain': 'project-
'project_
'project_name': 'a project',
'read_only': False,
'region_name': 'regionOne',
'roles': ['arole', 'notadmin'],
'show_deleted': False,
'trusts': None,
'user': 'fooUser',
'user_domain': 'user-domain',
'user_
'user_name': 'mick'}
=======
FAIL: senlin.
senlin.
-------
_StringException: Empty attachments:
pythonlogging:''
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
Traceback (most recent call last):
File "senlin/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.
reference = {'auth_token': '123',
'auth_token_info': {'123info': 'woop'},
'auth_url': 'http://
'domain': 'domain-id',
'domain_name': 'this domain',
'is_admin': False,
'is_admin_
'password': 'foo',
'project': 'project-id',
'project_domain': 'project-
'project_
'project_name': 'a project',
'read_only': False,
'region_name': 'regionOne',
'roles': ['arole', 'notadmin'],
'show_deleted': False,
'trusts': None,
'user': 'fooUser',
'user_domain': 'user-domain',
'user_
'user_name': 'mick'}
actual = {'auth_token': '123',
'auth_token_info': {'123info': 'woop'},
'auth_url': 'http://
'domain': 'domain-id',
'domain_name': 'this domain',
'is_admin': False,
'password': 'foo',
'project': 'project-id',
'project_domain': 'project-
'project_
'project_name': 'a project',
'read_only': False,
'region_name': 'regionOne',
'roles': ['arole', 'notadmin'],
'show_deleted': False,
'trusts': None,
'user': 'fooUser',
'user_domain': 'user-domain',
'user_
'user_name': 'mick'}
=======
FAIL: senlin.
senlin.
-------
_StringException: Empty attachments:
pythonlogging:''
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
pythonlogging
Traceback (most recent call last):
File "senlin/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.
-------
Ran 1838 tests in 158.513s
FAILED (failures=3)
debian/rules:30: recipe for target 'override_
make[1]: *** [override_
make[1]: Leaving directory '/home/
debian/rules:13: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Changed in senlin: | |
status: | New → Incomplete |
summary: |
- Unit test failure buildnig Newton b2 in debian + Unit test failure building Newton b2 in debian |
this looks like a version problem of the oslo.context package. Newer oslo.context package has added an 'is_admin_project' property. Senlin has been doing a very strict testing of the properties it is using. /review. openstack. org/#/c/ 342869/
A patch has been proposed here which has a more forward friendly testing implementation: https:/