Add exclusion pattern to package spec

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Enabled dynamically sized resource pools

- resource_pool.size is now optional
- added integration tests for scaling and reserving empty VMs
- broke up some integration tests into files by cli command

[#71252782]

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
Switch to MonoLogger to avoid deadlocks

MonoLogger is a Logger without mutexes. This is fixing an
issue when several threads are writing into same logger and
some of them getting locked indefintely.

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
Signed-off-by: Phan Le <ple@pivotallabs.com>
Delete unneeded vms and job instances before recreating missing vms

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>
Delete old VMs with static network reservations.

- Release all network reservations from old VMs if any are static.

[#68325788]
Added new bosh-director/spec/integration suite

- Added test to cover preparing and updating using a shared
DeploymentPlan::Planner.

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Re-enabled file buffering for test logging to /tmp/spec.log

- This fixes a logging deadlock error, because File.sync=true disables
  thread-safety

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
Fixing tests impacted by new logger injections

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
configure_networks is not supported (yet) for dummy agent used by integration tests

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>
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>
Adding final release for build 2619
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>