Git Product home page Git Product logo

vcap-yeti-old's Introduction

Yeti

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

Running Tests

Don't forget to pull in all submodules.

Non-parallel

Tests require several environment variables to be set:

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

export VCAP_BVT_USER="[email protected]"
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="[email protected]"
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

Assets

Binary assets are stored in http://blobs.cloudfoundry.com which is a simple Sinatra application with blob service backend hosted on CloudFoundry. These assets are then synchronized via rake assets:sync into the .assets-binaries directory.

Refer to asset docs for more information.

vcap-yeti-old's People

Contributors

pxie avatar mariash avatar kushmerick avatar mmb avatar pbozeman avatar dsyer avatar andyzh avatar eaglechen avatar slimyang avatar vito avatar figof avatar mreider avatar pietern avatar

Watchers

Robert Gogolok avatar Julian Fischer avatar Ralf Ibelshäuser avatar Daniel Leidisch avatar Lucas Krebs-Pinto avatar  avatar Corinna avatar Tobias Feld avatar James Cloos avatar Heitor Meira avatar Floor Drees avatar Wolf Oliver avatar Thomas Himbert avatar  avatar Daniel Hoff avatar Steffen Zuber avatar Michael Lieser avatar Marcel Stegmann avatar Jens Breuer avatar Tim Kraut avatar Michael Reimsbach avatar  avatar Benjamin Guttmann avatar Noah Ispas avatar Christoph Lambert avatar Patrick Hartz avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.