refactor create or get image process to eliminate reduplicate 39/19639/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Tue, 23 Aug 2016 05:44:36 +0000 (13:44 +0800)
committerMorgan Richomme <morgan.richomme@orange.com>
Fri, 26 Aug 2016 06:48:33 +0000 (06:48 +0000)
commitf3da85065e34b3058cace165443f6f919f959a0b
treee5716aad90288dfaa9d39fc550571862381f6e87
parent224f176cee5544483f3a37bb59a3d9aae1791e44
refactor create or get image process to eliminate reduplicate

Some places when create image is referred, they check if image exist,
if exist use it directly, else create a new one.
Abstract a method to integrate the process

JIRA: FUNCTEST-432

Change-Id: I83d1112aa5cb0d3cdfab92fd49cd5f2c1cceff82
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
(cherry picked from commit 5f5af6b1d8d0af19db143e67f04f67a643af863c)
testcases/OpenStack/rally/run_rally-cert.py
testcases/OpenStack/tempest/run_tempest.py
testcases/OpenStack/vPing/vping_util.py
utils/openstack_utils.py