Two unittests in the test_glance_service.py module was depending on
getting an instance of the real glanceclient and it was failing due a
new glanceclient release. This patch is fixing the problem by mocking
the client instanciation.
Closes-bug: #1552839
Closes-Bug: #1552834
Co-Authored-By: Lucas Alvares Gomes <email address hidden>
Change-Id: Ic9dc3f1016667c6d7ec5ee324d5fff48af82c581
(cherry picked from commit 036b959b9245ba44b5ea895ea48584dedc282fdf)
Reviewed: https:/ /review. openstack. org/288207 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=e9f49ad1958 84a973e32105f4e 3f22512d967f0e
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit e9f49ad195884a9 73e32105f4e3f22 512d967f0e
Author: Vladyslav Drok <email address hidden>
Date: Thu Mar 3 20:09:33 2016 +0200
Fix unittests after new release of glanceclient
Two unittests in the test_glance_ service. py module was depending on
getting an instance of the real glanceclient and it was failing due a
new glanceclient release. This patch is fixing the problem by mocking
the client instanciation.
Closes-bug: #1552839 6d7ec5ee324d5ff f48af82c581 4b5ea895ea48584 dedc282fdf)
Closes-Bug: #1552834
Co-Authored-By: Lucas Alvares Gomes <email address hidden>
Change-Id: Ic9dc3f1016667c
(cherry picked from commit 036b959b9245ba4