Run specs locally more like Travis would

- Randomly pick a DB locally
- [#72354910]
- Run different suites in series

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
cleaning up diego client

Signed-off-by: Ted Young <tyoung@pivotallabs.com>
renamed update_staging_complete to update_start_command

Signed-off-by: Ted Young <tyoung@pivotallabs.com>
staging on diego is triggered if an app has no detected start command

Signed-off-by: Ted Young <tyoung@pivotallabs.com>
removed unused react_to_package_state_change method from AppObserver

Signed-off-by: Ted Young <tyoung@pivotallabs.com>
when increasing/decreasing instances for a diego app, take the diego route
can now stop apps running on diego
Slim down spec_helper.rb

[#72354932]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Avoid relying on OSX require order
Extract SpecEnvironment into its own file

To make spec_helper smaller [#72354932]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Extract SpecEnvironment into its own file

To slim down spec_helper.rb [#72354932]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Update handling for duplicate service bindings
Add App Security Groups.

- add model
- add CRUD endpoints
- add api docs
[#71584314]

Signed-off-by: Zach Robinson <zrobinson@pivotallabs.com>
Add security group rule validation

* Can specify icmp, tcp, and udp rules
* Up size of rules field to 2048 (~ 30 rules)

[#71584450]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Consolidate after :each in spec_helper
Upgrade to RSpec 2.99

Should make it easier to get to RSpec 3 eventually [#72481862]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Merge pull request #256 from cloudfoundry/bug/71068038-repeat-bind-request

Update handling for duplicate service bindings
Re-organize many specs under spec/unit

To make it easier to run specs in separate suites, ideally one per "layer"

[#72355828]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Organize suite by layer

- Previous split by team and transactional/non was arbitrary
- New split should give us more insight into what is slow
- Group the fastest tests to avoid some of the overhead of bundling on Travis
- Split controller tests by runtime and services since they are the slowest suite
- [#72355828]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Remove "ci" namespace and run integration tests using the folder

Using the folder for integration tests makes it less likely a new tests will get missed

[#72355828]