Minor refactoring in PackageBuilder.

Also convert to Rspec 3 styles assertions.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Bump rugged gem.
Rescue KeepAliveDisconnected when trying to connect to the director.

- Change required when HTTPClient updated
- Also change to Rspec 3 syntax.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Benchmark running Bosh commands in integration tests.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Merge final release for build 2619 to develop
Truncate database between integration tests

  Instead of dropping and recreating each time.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Only restart director in integration tests if configuration changed

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Switch to using go agent in shipit

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
bd/spec/integration -> bd/spec/unit/deployment_plan

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Stub Redis in prepare_and_update_spec

Redis doesn't run on Travis, which caused a test to fail.

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Renamed DeploymentPlan::IdleVm to Vm

- Models::Vm is now referenced by 'vm_model' variables
- DeploymentPlan::Vm is now referenced by 'vm' variables
- IdleVm.vm renamed to Vm.model for consistancy with other domain objects
- 'idle_vm' now only refers to VMs in/from ResourcePool.idle_vms

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
removing unused internal_to hack

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
Refactored ResourcePool & Instance

- Removed active_vm_count in favor of adding vms to allocated_vms
- Moved extra_vm_count into ResourcePool from ResourcePool Updater
- Moved bind_existing_instance, apply_partial_vm_state & apply_vm_state into
	Instance
- Added loggers to ResourcePool & Instance
- Refactored several tests to use rspec allow/expect syntax

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Fix lying comment

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Lock NATS dependency

Latest NATS bump thin dependency which conflicts
with other gems.
Install only open-vm-tools.

Install open-vm-tools from the package manager.
Get OS type via function call

sourcing prelude_apply can set OS_TYPE incorrectly at different stages

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Remove unneeded assets for stemcell building.

- Remove vmware-tools deb packages and install scripts.
- Remove open-vm-tools deb packages.
- Install VMWare repository from the included deb package.

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
add tests for open-vm-tools package
Fix ubuntu_trusty_spec grub.conf assertion

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>