This patch is a prerequiste for moving away from TaskRunner instances.
Currently our mocking in tests relies heavily on our code using the rich cinder
objects returned by cinderclient. The purpose of this patch then is to
first move away from using those and modify mocking in tests accordingly,
so that subsequent patch that removes TaskRunner instances from volume
resources will modify as few tests as possible, which will better prove
its correctness.
Also, modified all deprecated rsrc.cinder() calls to rsrc.client() calls
(using default_client_name) and optimized reuse of clients inside single
methods.
Reviewed: https:/ /review. openstack. org/154429 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=2971d8a345f b953aeff076bbce 8bbfd420bbebd2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2971d8a345fb953 aeff076bbce8bbf d420bbebd2
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Mon Feb 2 19:17:20 2015 +0000
Do not use volume objects in volume resources
This patch is a prerequiste for moving away from TaskRunner instances.
Currently our mocking in tests relies heavily on our code using the rich cinder
objects returned by cinderclient. The purpose of this patch then is to
first move away from using those and modify mocking in tests accordingly,
so that subsequent patch that removes TaskRunner instances from volume
resources will modify as few tests as possible, which will better prove
its correctness.
Also, modified all deprecated rsrc.cinder() calls to rsrc.client() calls client_ name) and optimized reuse of clients inside single
(using default_
methods.
Change-Id: I10c991f9949149 c2f4d4b7de00f17 ddc4980ae96
Related-Bug: #1393268