1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

More accurate disk tests that fail

This commit is contained in:
Nat Welch 2013-04-16 20:42:54 -07:00
parent 35995d34ea
commit bded73bfb3

View file

@ -11,6 +11,7 @@ Shindo.tests('Fog::Compute[:google] | disk requests', ['google']) do
'status' => String,
'user' => String,
'progress' => Integer,
'zone' => String,
'insertTime' => String,
'startTime' => String,
'operationType' => String
@ -38,6 +39,7 @@ Shindo.tests('Fog::Compute[:google] | disk requests', ['google']) do
'user' => String,
'progress' => Integer,
'insertTime' => String,
'zone' => String,
'startTime' => String,
'operationType' => String
}
@ -46,28 +48,38 @@ Shindo.tests('Fog::Compute[:google] | disk requests', ['google']) do
'kind' => String,
'id' => String,
'selfLink' => String,
'items' => []
'items' => [{
'kind'=> String,
'id'=> String,
'creationTimestamp'=>String,
'selfLink'=>String,
'name'=> String,
'sizeGb'=> String,
'zone'=> String,
'status'=>String,
}]
}
tests('success') do
disk_name = 'new-disk-test'
disk_size = '2'
zone_name = 'us-central1-a'
tests("#insert_disk").formats(@insert_disk_format) do
@google.insert_disk(disk_name, disk_size).body
@google.insert_disk(disk_name, disk_size, zone_name).body
end
tests("#get_disk").formats(@get_disk_format) do
@google.get_disk(disk_name).body
@google.get_disk(disk_name, zone_name).body
end
tests("#list_disks").formats(@list_disks_format) do
@google.list_disks.body
@google.list_disks(zone_name).body
end
tests("#delete_disk").formats(@delete_disk_format) do
@google.delete_disk(disk_name).body
@google.delete_disk(disk_name, zone_name).body
end
end