cinder/cinder/tests
Gorka Eguileor 2abd8a68bb Fix DetachedInstanceError for VolumeAttachment
Patch I253123d5451b32f0e3143916e41aaa1af75561c2 fixed the
DetachedInstanceError for VolumeAttachment OVOs but only partially, as
apparently it was dependent on the SQLAlchemy version due to the use os
"hasattr".

This patch replaces "hasattr" with a check on the object's dictionary,
which will never trigger a Lazy Load.

Closes-Bug: #1834845
Change-Id: Iac785eef9be4b9cdb5c739ee0a87949805282867
(cherry picked from commit 2e73bede80)
(cherry picked from commit 44a15be6a7)
Conflicts:
    cinder/tests/unit/volume/drivers/test_lvm_driver.py
(cherry picked from commit eabf648b7a)
2019-10-03 07:36:03 -07:00
..
compliance Use assertEqual/Less/Greater/In/IsNone 2016-07-04 17:58:16 +02:00
functional Fix incorrect use of assertFalse causing CI failed 2017-10-26 11:01:02 +07:00
unit Fix DetachedInstanceError for VolumeAttachment 2019-10-03 07:36:03 -07:00
README.rst Update the documentation link 2017-08-26 06:52:48 -07:00
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_driver.py Fix: Incorrect replication status on clusters 2018-08-20 21:36:02 +00:00
fixtures.py Add fixture to only emit DeprecationWarning once 2017-11-21 16:54:45 -06:00

README.rst

IMPORTANT DEFINITION OF TESTS IN CINDER

Cinder has a number of different test types, PLEASE be sure to refer to the Cinder Testing Docs to familiarize yourself with the various options before creating any new tests.

Please check Cinder-Testing.