mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fixed up tests
This commit is contained in:
parent
f318240b7f
commit
44e400db41
1 changed files with 6 additions and 4 deletions
|
@ -4,18 +4,20 @@ Shindo.tests("Fog::Compute[:vsphere] | vm_clone request", 'vsphere') do
|
|||
response = nil
|
||||
response_linked = nil
|
||||
|
||||
template = "/Datacenters/Solutions/vm/rhel64"
|
||||
template = "rhel64"
|
||||
datacenter = "Solutions"
|
||||
tests("Standard Clone | The return value should") do
|
||||
response = compute.vm_clone('path' => template, 'name' => 'cloning_vm', 'wait' => 1)
|
||||
response = compute.vm_clone('template_path' => template, 'name' => 'cloning_vm', 'wait' => 1)
|
||||
test("be a kind of Hash") { response.kind_of? Hash }
|
||||
%w{ vm_ref task_ref }.each do |key|
|
||||
test("have a #{key} key") { response.has_key? key }
|
||||
end
|
||||
end
|
||||
|
||||
template = "/Datacenters/Solutions/vm/rhel64"
|
||||
template = "rhel64"
|
||||
datacenter = "Solutions"
|
||||
tests("Linked Clone | The return value should") do
|
||||
response = compute.vm_clone('path' => template, 'name' => 'cloning_vm_linked', 'wait' => 1, 'linked_clone' => true)
|
||||
response = compute.vm_clone('template_path' => template, 'name' => 'cloning_vm_linked', 'wait' => 1, 'linked_clone' => true)
|
||||
test("be a kind of Hash") { response.kind_of? Hash }
|
||||
%w{ vm_ref task_ref }.each do |key|
|
||||
test("have a #{key} key") { response.has_key? key }
|
||||
|
|
Loading…
Reference in a new issue