Adding Java 7 as a runtime option

Change-Id: I423b79abfc75b83804a497c11e8ea3448acc4db3
Prevent provisioning a service when name taken

  This change adds a check before requesting the service gateway to
provision an instance of a service to ensure the uniqueness of service
alias for a user.
  The current behavior before this diff replies on the ORM layer
(ActiveRecord) to invalidate duplicate alias after a request has been
sent to the service gateway, resulting in orphaned service instances.

  Test plan:
  - Unit tests passed
  - Bug not visible to VMC / API users, no validation test added

  This fix is written by Felix Hu <hhu@vmware.com>

Change-Id: Ief0c1f52251e20fe88242a2853f3288533213118
[hm] add app_id to failed sanity check log message

Change-Id: Iefb8d0af4c7a48b1464d1ef5b9a630b854f5063b
Merge "Prevent provisioning a service when name taken"
Merge "[hm] add app_id to failed sanity check log message"
Merge "Adding Java 7 as a runtime option"
add provider column to CCDB

Change-Id: I67d02e45a0b09e12664a3c68ad7b6405bfef9112
Revert "Prevent provisioning a service when name taken"

This reverts commit 1c4120a3c57f43991373cd7c86262fd1e23bbb56 which introduces a regression
Merge "Revert "Prevent provisioning a service when name taken""
Add git hook to check trailing whitespace

Change-Id: Ib8ab4eace8773f93ce5abcb076b79fa2afab178f
Updated the uaa gem to 1.0.2

This coincides with the corresponding release of the uaa.

Change-Id: I4ba6d6be86fa8b6dc6f8990ea54a74ff8e945fb8
Use https for git sources

Some proxies deny traffic over the git transport.

Change-Id: Ib6fc21cff8e82c6eb3911b0cf198c502ee12b2da
[CC] Add unit tests for ServiceConfig.unprovision

  Test plans: unit tests passed

Change-Id: I5fcd193444c3ad6895e0cc08596ff88b8e7aa63e
[CC] Refactor ServiceConfig.unprovision

  This diff extracts the unprovision routine to a class method to
facilitate future (read: next diff) exception handling.

  Test plan: unit tests passed

Change-Id: Icf2d18ea156566bc20937a97bd7750edc64b3138
[cc][bulk] implement count call

Change-Id: Ief4c2fe76bd2d33219319da0f25407017af0353d
[CC] Add tests for ServiceConfig.provision

  This change adds tests for ServiceConfig.provision.

  Test plan: unit tests passed

Change-Id: Ic4ce65fa9aa4318ba742317d8a31a3b84155e542
Store service provider in ccdb

Change-Id: If5a85f68ed357bf214cd5ad57db6c913ebfcf70e
[FIX] Create directory skeleton before checking resources.

If all resources of a subdirectory in an application are cached, and that
directory isn't present in uploaded resources (as is the case with the Java
client) then AppPackage#resolve_path will fail. We now create the directory
skeleton prior to this check.

Test plan:
- Added unit tests verify expected behavior
- BVTs pass
- Manually verified using the issue no longer persists on my deployment:
-- Deployed a simple sinatra app with a 70k file named ``subdir/test'' in order
   to trigger resource matching.
-- Deleted the app.
-- Modified VMC to not create the empty ``subdir'' directory (corresponds to
   Java client behavior seen in prod.)
-- Re-pushed the app. Verified that it failed without the change applied and
   succeeded with the change applied.

Change-Id: Iea1015df3cc4762770894e07148bb34c71659596
[CC] Atomic service provisioning

  This change tries to minimize the un-atomicity in service provisioning
by:
    - Cleaning the local state (CCDB record) when validation (e.g.
      unique service alias in user scope) fails
    - Unprovisioning the service when change to the local state cannot
      persist

  Test plans:
    - Unit tests passed
    - BVTs passed
    - Provision using the same alias under two different user accounts
      and verify that it is allowed

NB. its inherent distributed nature means this operation cannot be
guaranteed to be atomic (api calls to service gateway can fail or
timeout), so eventually the service gateway still needs to be able to
garbage collect. Until then, this patch should be a good enough
stopgap.

Change-Id: Iaa884f4a8f62f416ff06fbf42e9b73db6a838d16
Merge "Store service provider in ccdb"