From b3d0bc1d2da6e65555e9bcbbbe0e0dc381c262ae Mon Sep 17 00:00:00 2001 From: dm1try Date: Sat, 20 Apr 2013 23:00:30 +0300 Subject: [PATCH] [cloudstack] add test volume to mock data --- lib/fog/cloudstack/compute.rb | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/fog/cloudstack/compute.rb b/lib/fog/cloudstack/compute.rb index 948593918..5bbfc7c02 100644 --- a/lib/fog/cloudstack/compute.rb +++ b/lib/fog/cloudstack/compute.rb @@ -420,7 +420,35 @@ module Fog :domains => {domain_id => domain}, :servers => {}, :jobs => {}, - :volumes => {}, + :volumes => { + "89198f7c-0245-aa1d-136a-c5f479ef9db7" => { + "id"=> "89198f7c-0245-aa1d-136a-c5f479ef9db7", + "name"=>"test volume", + "zoneid"=> zone_id, + "zonename"=>"zone-00", + "type"=>"DATADISK", + "deviceid"=>1, + "virtualmachineid"=> "51dcffee-5f9f-29a4-acee-2717e1a3656b", + "vmname"=>"i-2824-11621-VM", + "vmdisplayname"=>"test vm", + "vmstate"=>"Running", + "size"=>17179869184, + "created"=>"2013-04-16T12:33:41+0000", + "state"=>"Ready", + "account"=> 'accountname', + "domainid"=> domain_id, + "domain"=> domain_name, + "storagetype"=>"shared", + "hypervisor"=>"KVM", + "diskofferingid"=> "cc4de87d-672d-4353-abb5-6a8a4c0abf59", + "diskofferingname"=>"Small Disk", + "diskofferingdisplaytext"=>"Small Disk [16GB Disk]", + "storage"=>"ps1", + "attached"=>"2013-04-16T12:34:07+0000", + "destroyed"=>false, + "isextractable"=>false + }, + }, :security_groups => {}, :snapshots => {}, :disk_offerings => {