refactor code to improve performance

1. if single app in a file, create_app / push only once
2. move some public methods from file to helper
3. refactor create_app/push/health_check to create_push_app

Change-Id: I9855f28ef0604d7a31dcab5118e784fc9ab04de6
Signed-off-by: michael zhang <zhangcheng@rbcon.com>
Add service quota cases

1. add service quota case (set default_postgresql_max_db_size = 128)
2. update app.get_response to support http delete
3. update assets pointer to the latest
4. update instance method to instances

Change-Id: Ieb31d58ad1c668084c3b1e82bb4ee05330b9854f
Signed-off-by: michael zhang <zhangcheng@rbcon.com>
parallel running

1. introduce parallel_test gem for parallel running
2. use file lock to sync multiply process index
3. refactor cfsession.new interface
4. set MAX_PARALLEL_USER to 8

Change-Id: I5281752981cbea2e922f71e664ea1bd453da8fe1
Signed-off-by: Pin Xie <pxie@vmware.com>
fix lifecycle script

script init session and app in before(:all) method,
but clean up session in after(:each) method.

After first case, @app object has been destroied, therefore,
all left three cases are always failed.

Change-Id: Ibbdd4841cd79b74e0927348efe801e9d472c16aa
Signed-off-by: Pin Xie <pxie@vmware.com>
add rubygems case and add app_name in assets.yml

Change-Id: Ibca5809c619f2c7edac510df6870dcf8ccd882e2
modify assets.yml correct 'rail3' to 'rails3'

Change-Id: I04d3c3fc0c122e16ea5fd4b1334ec5373d85d0a4
several bug fixes

1. should include bundle install in the upgrade.sh script
2. too many tabs in the rake menu between menu option and option description
3. support target url with or without http://api
4. fix sync_assets task failure
5. README.rd formatting looks terrible on github.
6. prompted for admin credentials even if you don't run admin tests

Change-Id: I78fea49a7db46d668671e0802ebaa613f8a0568a
Signed-off-by: michael zhang <zhangcheng@rbcon.com>
commit standalone test scripts

1. upgrade cfoundry lib to 0.1.1
2. add command and no_url support for app#push method
3. add test scripts for
   - ruby18
   - ruby19
   - node
   - node06

Change-Id: I4062290a93ed03fb2f7882804dbe6a29a05fe699
Signed-off-by: Pin Xie <pxie@vmware.com>
Merge "fix lifecycle script" into next
Merge "commit standalone test scripts" into next
Merge "several bug fixes" into next
add java autostaging cases

Change-Id: Iaeff2c30d97c0fb0893497fad0c1ec64103d6ad9
Signed-off-by: michael zhang <zhangcheng@rbcon.com>
add grails autostaging case

1. add grails autostaging cases
2. fix bugs in java spring autostaging

Change-Id: I81ec5010b0232d089414956c5af14c85721c46f1
Signed-off-by: michael zhang <zhangcheng@rbcon.com>
update uaa cases, add pending if webclient is nil

Change-Id: I2a06b5de4588ba86dd9ec3ffb57aed74a69c5b8d
Signed-off-by: hcao <hcao@rbcon.com>
add erlang,php,lift,python cases

Change-Id: I5ca49cec88658d3f3ca887b6d445ae3ffe797eca
Signed-off-by: michael zhang <zhangcheng@rbcon.com>
add service rebinding test scripts

1. check bind/unbind and bind again to same service
2. check two apps bind to save service instance

Change-Id: Ic3f1108842ddab53894449c0c70e1cc10ea3f5a7
Signed-off-by: Pin Xie <pxie@vmware.com>
add play framework test cases for java and scala.

Change-Id: Ia1be7960f3ab0f3b2a0360a4c9a0f39d49838141
fix exception if not set admin user for rake tests

1. run rake tests without admin setting
2. but in set_config method, it will print admin user account
3. therefore, it will raise exception
4. add admin user config check, before printing it

Change-Id: I39ff82694a334b93b5d3d53e085c0e5ba5c6bbbf
Signed-off-by: Pin Xie <pxie@vmware.com>
fix uaa misusing admin session

1. uaa feature do not require admin privilege
2. session#cleanup! can only remove test apps and services
   It is unnecessary for uaa

Change-Id: Ie0e582f6eb08651a2215e7e1a4b10a072c27899f
Signed-off-by: Pin Xie <pxie@vmware.com>
fix parallel running admin input exception

1. Now rake tests did not require admin credential input
2. However, parallel running need admin session to create concurrent user
3. Therefore, rake tests will request admin crecentail input on demond

Change-Id: Iec3799678d36bac91c6f47c3ad084a664b27a66f
Signed-off-by: Pin Xie <pxie@vmware.com>