Fix /v2/domains/<guid>/spaces

Signed-off-by: Phan Le <ple@pivotallabs.com>
[finished #62524114]
Clean up domains in cloud controller

We were specifying special noop functions for adding, deleting, and
clearing domains from organizations because the meta-programmed tests
epxected those to exist.  We removed this functionality and moved the
organizations/domains specs and the spaces/domains specs out of
meta-programming.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Add debug print out for debugging flakey test.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Remove unused test and update test example description
Bump loggregator_emitter gem to 3.0

Signed-off-by: Matthew McNew <mmcnew@pivotallabs.com>
Merge pull request #137 from cloudfoundry/remove_src_type

Bump loggregator_emitter gem to 3.0
Add app usage events.

[#62480432]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Endpoint for getting app usage events.

Also add ability to authorize index endpoints.

[fisnished #62480432]

Signed-off-by: Phan Le <ple@pivotallabs.com>
AppUsageEvents created when you scale a started app

[finishes #62480744]

Signed-off-by: Phan Le <ple@pivotallabs.com>
AppUsageEvent when deleting an app

[finishes #62480766]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Make error handling more generic in specs so it works for mysql too.

Signed-off-by: Phan Le <ple@pivotallabs.com>
undo pull request that led to performance regression

This would make anything trying to start an app take much longer as it
did a GET of the first page of the entire S3 bucket. This would lead to
a bunch of app starts snowballing and the CC becoming unresponsive.

Revert "Added tests to confirm pull request fix"

This reverts commit e07a5124ee2c08ab33210d45881b17b198c86d21.

Revert "Fixed indentation on shared tests"

This reverts commit e68e8df4c803351ba5157f366499d36eb5176545.

Revert "Fix issue with S3 blobstore in non-standard endpoint"

This reverts commit 9d6c6f6dc3481d9ceb5bb3e9a4116c55bdb4348f.
Fix spec under postgres. Postgres clobbers the model changes during insert so we cannot properly detect that the state has changed. Changed test to not create app in STARTED state since this is not possible anyway.
Add a spec for app usage events. Alslo stopping telling not-true things in the API

Signed-off-by: Phan Le <ple@pivotallabs.com>
Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
App Usage Events can be queried using after_guid filter.

[finishes #62482432]

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
Test to verify destroying a space creates AppUsageEvents

for any started apps
[finishes #62480924]

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
new field in api endpoint to allow configurable health check timeout
DB validation
Add maximum_health_check_timeout for app

Signed-off-by: Aakash Shah <ashah@mines.edu>
Test to verify destroying a space creates AppUsageEvents

for any started apps
[finishes #62480924]

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>