1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests
Jeff McCune a36f3888e3 [vsphere] (#10644) Add servers filter to improve clone performance
The behavior without this patch is that the performance of the vm_clone
operation in unacceptably slow for VMware vCenter deployments with
multiple hundreds of virtual machines.

Performance is unacceptable because the vm_clone operation makes
multiple API calls to list _all_ of the VM's in the inventory.  This
patch eliminates the need to list all VM's by adding path and folder
filters to limit our API calls to subtrees of the VMware inventory.

= API Changes =

 * New datacenters request that caches the Datacenter objects for the
   life of the process.
 * New clone() method on the server model that returns a server model of
   the new VM even if it is not yet done cloning.
 * Ability to limit collections to inventory paths by passing the
 * 'folder' filter to the servers collection.  For example:
   `conn = Fog::Compute[:vsphere];
    conn.servers('path' => '/Datacenters/DC1/vm/Templates')`
   this filter will greatly reduce the number of SOAP API calls by
   limiting the server models in the collection to only those in the
   Templates inventory folder.  Note, this is not recursive yet.

= Tests =

Tests have been updated.  The vm_clone request no longer takes an
instance_uuid because we cannot actually use this to search the
inventory efficiently.  Instead, the vm_clone request now requires a
path attribute to allow Fog to search only a subset of the inventory.
2011-11-12 09:39:14 -08:00
..
aws [aws|compute] update ami for windows 2011-11-10 11:35:53 -06:00
bluebox/requests [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
brightbox/requests/compute [brightbox|compute] format fixes for tests 2011-11-09 14:47:32 -06:00
compute [glesys|compute] skip flavor tests 2011-09-27 16:34:33 -05:00
core Adding a method to unmock Fog. Addresses issue #594 2011-11-09 11:30:33 -08:00
dns [dns] Made model tests use uniq domain names 2011-11-10 20:56:32 -05:00
dnsimple/requests/dns [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
dnsmadeeasy/requests/dns [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
dynect/requests/dns [dynect|dns] support reauth for inactivity logout too. 2011-09-09 11:36:28 -07:00
glesys/requests/compute [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
go_grid/requests/compute [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
google/requests/storage [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
helpers Add support for non-strict validations, and nullable arrays/hashes. 2011-09-28 15:24:40 -04:00
linode/requests [linode|compute] update format for plans 2011-09-26 16:56:43 -05:00
ninefold [ninefold|compute] fix for network formats 2011-09-27 16:16:54 -05:00
openstack/requests/compute Additions and updates to the OpenStack API tests. 2011-09-29 14:10:21 -04:00
rackspace [rackspace|dns] Fixed request tests that need unique domain name 2011-11-10 19:34:04 -05:00
slicehost/requests Fixing parsing of zone.records.get(id) so that it parses a single record properly rather than attempting to parse a list of records improperly. Fixing tests to match this (expected) behavior rather than work-around the broken way. 2011-11-08 18:54:08 +09:00
storage [storage] Fixed what appeared to be broken test (I only verified with Rackspace provider) 2011-09-20 11:03:56 -05:00
storm_on_demand/requests/compute [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
vcloud [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
voxel/requests/compute [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
vsphere [vsphere] (#10644) Add servers filter to improve clone performance 2011-11-12 09:39:14 -08:00
zerigo/requests/dns [tests] rearrange to match new lib structure 2011-09-08 16:37:58 -05:00
helper.rb [aws|compute] Update security group operations. 2011-10-28 13:49:55 -03:00
lorem.txt [aws|storage] continuing to flesh out tests 2010-10-12 18:07:36 -07:00
watchr.rb Refactor requests to return simple hashes and add unit tests 2011-09-10 15:11:18 -07:00