Currently, we set 'NAME_ATTR' attribute for Volume and Snapshot
class in volume.client.py. When we test test_find_resource alone,
the Volume and Snapshot class do not have 'NAME_ATTR' attribute since
we do not import volume.client, which causes the tests to fail.
Reviewed: https:/ /review. openstack. org/112458 /git.openstack. org/cgit/ openstack/ python- openstackclient /commit/ ?id=ddb7e189749 64abbe3fc50dab4 7ab55286a7328c
Committed: https:/
Submitter: Jenkins
Branch: master
commit ddb7e18974964ab be3fc50dab47ab5 5286a7328c
Author: wanghong <email address hidden>
Date: Thu Aug 7 11:14:00 2014 +0800
test_ find_resource fails if run alone
Currently, we set 'NAME_ATTR' attribute for Volume and Snapshot
class in volume.client.py. When we test test_find_resource alone,
the Volume and Snapshot class do not have 'NAME_ATTR' attribute since
we do not import volume.client, which causes the tests to fail.
Change-Id: I06f727ffa8d37a fe1a1191c365748 87fecc7a733
Closes-Bug: #1353788