Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Cloud Foundry - the open platform as a service project

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets @ 4131e11
config
lib
scripts
services_spec/services
spec
vendor/cache
.gitignore
.gitmodules
.rspec
.ruby-version
Gemfile
Gemfile.lock
LICENSE.TXT
NOTICE.TXT
README.md
Rakefile
warden_rspec

README.md

Yeti

Yeti stands for "Yet Extraordinary Test Infrastructure" and is a collection of integration tests for the CloudFoundry platform.

Running Tests

Prepare for tests:

git submodule update --init
bundle
bundle exec rake prepare

Non-parallel

Tests require several environment variables to be set:

export VCAP_BVT_API_ENDPOINT="http://api.example.com"

export VCAP_BVT_USER="non-admin-user@example.com"
export VCAP_BVT_USER_PASSWD="non-admin-password"

After setting up your environment you can use regular rspec to run tests:

bundle exec rspec
bundle exec rspec spec/apps/ruby_spec.rb

Tip: If you do not want to set VCAP_BVT_USER and VCAP_BVT_USER_PASSWD you can run rake prepare (task used with parallel set up) once and after that tests will just use first parallel user. (You will have to set the VCAP_BVT_ADMIN_USER and VCAP_BVT_ADMIN_USER_PASSWD for this. See below.)

Parallel

Tests require several environment variables to be set:

export VCAP_BVT_API_ENDPOINT="http://api.example.com"
export VCAP_BVT_UAA_CC_SECRET="some-secret"

export VCAP_BVT_ADMIN_USER="admin-user@example.com"
export VCAP_BVT_ADMIN_USER_PASSWD="admin-password"

Optional environment variables:

Will create organizations with this string - useful for automated clean-up. export VCAP_BVT_ORG_NAMESPACE="jenkins"

(Admin credentials are only used for creating other users.)

Run rake prepare to create 16 users to be used in parallel specs. (User credentials will be stored in ~/.bvt/config.yml)

After setting up your environment here is how to run tests in parallel:

parallel_rspec spec
parallel_rspec spec -o '--tag=some-tag'

See parallel_tests gem for more information.

Debugging Tips

  • VCAP_BVT_TRACE=1 turns on tracing of cfoundry calls
Something went wrong with that request. Please try again.