Bug 1000614

Prefer `*_DNS` to `*_UUID`.
Fix env var subscription tests
Bug 999859 - Check required arguments for oo-app-create command
Merge pull request #3504 from pmorie/dev/fix_tests

Merged by openshift-bot
Merge pull request #3465 from mfojtik/bugzilla/999859

Merged by openshift-bot
Merge pull request #3495 from BanzaiMan/dev/hasari/bz1000614

Merged by openshift-bot
Build & deployment improvements

Add support for OPENSHIFT_AUTO_DEPLOY to enable/disable automatic
deployments after building

Add support for OPENSHIFT_DEPLOYMENT_TYPE - disallow git push if set
to binary

Add support for deploying branches other than master

Add "gear deploy <mybranch>"

Add support for preserving previous deployments (to support rollback)

Switch to using date/time based deployment directories

Add initial support for 'gear prepare FILE'

Add support for distributing a deployment to child gears

Add creation of app-deployments and app-archives directories to app
setup

Add 'activate' deployment action

Add writing of deployment metadata w/deployment id and state

Add support for app-dependencies to be unique per deployment

Update cartridges to support app-root/runtime/dependencies

Add deployment rollback support

Add PathUtils#oo_lchown to change symlink ownership of repo and
dependencies symlinks

Add old deployment directory pruning

Reduce list of dirs to sync in sdk#sync_gear_repos

Add copying of dependencies between deployments (to save on build
time) unless force_clean_build is specified

Move app dependencies from the previous deployment to the new build and
delete the previous deployment prior to performing the new build if the
app isn't configured to allow rollbacks (thus avoiding having 2 copies
of the dependencies and repo for a brief period of time)

Move the haproxy cartridge's gear registry to the runtime
platform

Add oo-ssh to use for rsync/ssh as the gear user

Add "primary" endpoint option that indicates that the endpoint should
be load balanced if the app is scalable (along with
OPENSHIFT_LOAD_BALANCER_PORT env var)

Add initial functional tests for build & deployment improvements

Add basic scaling test that:
- creates an app
- validates the gear registry contents
- verifies the <title> retrieved from /
- scales up to 2
- verifies <title> from both gears
- modifies the <title> and pushes the change
- verifies <title> was updated on both gears
- scales to 3
- verifies <title> is still updated on all 3
- issues rollback
- verifies <title> matches rolled back version

Update all jenkins shell command files to create deployment dirs and
sync the repo and dependencies back to the upstream gear

Add "gear archive" command to create binary artifact from current
deployment on a gear

Add primary:true option to 8080 endpoint for scalable carts

Don't stop/start web proxy cart during pre-receive, activation

Use the current deployment dir instead of creating a new one if
hot_deploy is enabled

Don't stop the web proxy cart on rollback

Add 'gear deployments' command