unit-tests failing for trove/tests/unittests/mgmt/test_models.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
High
|
Sushil Kumar |
Bug Description
The unittests in module trove/tests/
The log for failing tests is as follows:
(py27)ubuntu@
Tests running...
No handlers could be found for logger "trove.
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 420, in test_show_
active_instance = db_infos_
IndexError: list index out of range
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 444, in test_rpc_ping
status, task_status=
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 371, in test_public_
status, task_status=
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 129, in test_tranformer
status, InstanceTasks.
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 190, in test_tranformer
status, InstanceTasks.
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 326, in test_tranformer
status, InstanceTasks.
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 228, in test_tranformer
status, InstanceTasks.
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 300, in test_tranformer
instance, service_status = self.build_
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
=======
ERROR: test_models.
-------
Traceback (most recent call last):
File "test_models.py", line 272, in test_tranformer
instance, service_status = self.build_
File "test_models.py", line 100, in build_db_instance
datastore_
AttributeError: 'NoneType' object has no attribute 'id'
Ran 13 tests in 24.286s
FAILED (failures=9)
Changed in trove: | |
importance: | Undecided → High |
milestone: | none → liberty-2 |
Changed in trove: | |
assignee: | nobody → Sushil Kumar (sushil-kumar2) |
status: | New → In Progress |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | liberty-2 → 4.0.0 |
Reviewed: https:/ /review. openstack. org/196676 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=eb7e9c50bad a65884fb5d9c751 6f18723e552a58
Committed: https:/
Submitter: Jenkins
Branch: master
commit eb7e9c50bada658 84fb5d9c7516f18 723e552a58
Author: Sushil Kumar <email address hidden>
Date: Mon Jun 29 14:02:45 2015 +0000
Fixed the tests in test_models.py
The tests were failing when run as a single module unittests. mgmt.test_ models
for the test-module trove.tests.
There were two reasons of failure: TestMgmtInstanc eDeleted. test_show_ deleted_ mgmt_instances fails eTest.build_ db_instance
- test_models.
because this test expects some deleted/active instances to pre-exist.
- other tests were failing because MockMgmtInstanc
was trying to create test-instances using a non-existent version.
Change-Id: Ie0b4bb9b60f451 f97961744d19f62 cd7f0240458
Closes-Bug: #1469724