vSphere cluster config class.

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
vSphere CPI config is no longer a singleton

We are also renaming the stub method to soap_stub to avoid confusion.
unit tests are green, although we still need to remove some pending tests in the resources

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Makes the vSphere cloud.rb reference a local configuration object, rather than a global singleton.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Removes half-baked cluster picking code and makes use of refactored Datacenter object

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Reintroduces datacenter as a readable attribute on clusters

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
re-instated the old tests

And they are all passing.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Correctly delete stemcells after vSphere CPI lifecycle tests

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
clean up specs

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
start back-filling for create_vm

Signed-off-by: Yulia Tolskaya <ytolskaya@pivotallabs.com>
Extraction of vsphere #create_vm into its own class

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Test input validation of #create_vm
backfill tests on creating vsphere vm

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Stricter tests

* Adds argument matchers to all stubs
* Set return value to non-nil to all stubs
* Adds coverage for inner iterations
* better matcher for vCenter data types

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
rename arguments

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
factory for the vm creator

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
lift up resource pool properties to the factory method

This commit changes the way we construct VmCreator: instead of a hash of
resource pool properties we now explicitly specify the memory size, disk
size and number of cpus. Lifting the resource pool spec to the factory
also prepares us for injecting a different placement policy into the
creator.

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Added new placer for fixed cluster placement.

Moved resource pool to let in vSphere CPI lifecycle.

[#62927424]

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Use FixedClusterPlacer if cloud properties include cluster.

[#62927424]

:shipit:

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>