export VCAP_BVT_API_ENDPOINT="http://api.10.0.3.199.xip.io"
export VCAP_BVT_UAA_CC_SECRET="habr"
export VCAP_BVT_ADMIN_USER="admin"
export VCAP_BVT_ADMIN_USER_PASSWD="admin"
export VCAP_BVT_USER="test"
export VCAP_BVT_USER_PASSWD="password"
cf api $VCAP_BVT_API_ENDPOINT
cf login -u $VCAP_BVT_ADMIN_USER -p $VCAP_BVT_ADMIN_USER_PASSWD
cf create-space my-space
cf target -s my-space
cf create-user $VCAP_BVT_USER $VCAP_BVT_USER_PASSWD
cf set-org-role $VCAP_BVT_USER my-org OrgManager
cf set-space-role $VCAP_BVT_USER my-org my-space SpaceManager
cf set-space-role $VCAP_BVT_USER my-org my-space SpaceDeveloper