1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog
Jeff McCune 743882f032 Refactor requests to return simple hashes and add unit tests
This massive commit refactors all of the request methods on the
Fog::Compute[:vsphere] instance to return simple hashes.  The behavior
before this commit returned full vmware object references which was a
problem because it was difficult to unit test.

With this patch, it is much easier to add and maintain Mock
implementations of the request methods.  This makes adding behavior
tests for the server model much easier.

In addition, test coverage using Shindo has been added.  Previously
there was little test coverage of the behavior.

To run the tests:

    shindont tests/vsphere/
2011-09-10 15:11:18 -07:00
..
aws [compute|aws] Fix NameError. 2011-09-09 16:50:04 +02:00
bin (#9241) Add skeleton VMware vSphere platform support 2011-09-10 13:32:58 -07:00
bluebox [bluebox|compute] Create and destroy images 2011-09-07 12:43:12 -07:00
brightbox [compute|brightbox] Reset times to the correct type so not string attributes 2011-09-09 17:56:44 +01:00
compute/models [compute|glesys] rearrange to match current naming conventions 2011-09-08 16:07:04 -05:00
core (#9241) Add skeleton VMware vSphere platform support 2011-09-10 13:32:58 -07:00
dnsimple [core] work toward separate requires 2011-08-31 15:52:53 -05:00
dnsmadeeasy [core] work toward separate requires 2011-08-31 15:52:53 -05:00
dynect [dynect|dns] support reauth for inactivity logout too. 2011-09-09 11:36:28 -07:00
ecloud [core] use logger throughout for warnings 2011-09-02 12:30:10 -05:00
glesys [compute|glesys] rearrange to match current naming conventions 2011-09-08 16:07:04 -05:00
go_grid [core] work toward separate requires 2011-08-31 15:52:53 -05:00
google [core] use logger throughout for warnings 2011-09-02 12:30:10 -05:00
libvirt [core] work toward separate requires 2011-08-31 15:52:53 -05:00
linode [core] work toward separate requires 2011-08-31 15:52:53 -05:00
local [core] work toward separate requires 2011-08-31 15:52:53 -05:00
new_servers [core] work toward separate requires 2011-08-31 15:52:53 -05:00
ninefold [core] work toward separate requires 2011-08-31 15:52:53 -05:00
rackspace [storage|rackspace] Fixed NotFound namespace 2011-09-03 15:52:51 +02:00
slicehost [core] work toward separate requires 2011-08-31 15:52:53 -05:00
storm_on_demand [core] work toward separate requires 2011-08-31 15:52:53 -05:00
terremark [core] use logger throughout for warnings 2011-09-02 12:30:10 -05:00
vcloud [core] work toward separate requires 2011-08-31 15:52:53 -05:00
virtual_box [core] work toward separate requires 2011-08-31 15:52:53 -05:00
voxel [core] work toward separate requires 2011-08-31 15:52:53 -05:00
vsphere Refactor requests to return simple hashes and add unit tests 2011-09-10 15:11:18 -07:00
zerigo [core] work toward separate requires 2011-08-31 15:52:53 -05:00
aws.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
bin.rb (#9241) Add skeleton VMware vSphere platform support 2011-09-10 13:32:58 -07:00
bluebox.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
brightbox.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
cdn.rb [cdn|rackspace] move rackspace cdn to its own shared area (namespacing should probably be corrected) 2011-08-24 14:25:17 -05:00
compute.rb (#9241) Add skeleton VMware vSphere platform support 2011-09-10 13:32:58 -07:00
core.rb [core] prototype logger 2011-09-01 17:48:43 -05:00
dns.rb [dns|rackspace] move rackspace dns to its own shared area (namespacing should probably be corrected) 2011-08-29 10:37:01 -05:00
dnsimple.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
dnsmadeeasy.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
dynect.rb Merge pull request #492 from dylanegan/dynect_mocking 2011-09-01 10:27:10 -07:00
ecloud.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
glesys.rb [compute|glesys] rearrange to match current naming conventions 2011-09-08 16:07:04 -05:00
go_grid.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
google.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
libvirt.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
linode.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
local.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
new_servers.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
ninefold.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
providers.rb (#9241) Add skeleton VMware vSphere platform support 2011-09-10 13:32:58 -07:00
rackspace.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
slicehost.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
storage.rb [storage|rackspace] move rackspace storage to its own shared area (namespacing should probably be corrected) 2011-08-24 14:12:29 -05:00
storm_on_demand.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
terremark.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
vcloud.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
virtual_box.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
voxel.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
vsphere.rb (#9241) Add model for Fog::Compute[:vsphere].servers 2011-09-10 13:32:58 -07:00
zerigo.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00