/cf-tcp-router-acceptance-tests

Acceptance tests for CF tcp router

Primary LanguageGoApache License 2.0Apache-2.0

Router Acceptance Tests

This test suite exercises Router.

Running Acceptance tests

Test setup

To run the Router Acceptance tests, you will need:

  • a running router deployment
  • make sure that all the dependencies of this module are installed in your GOPATH (alternatively if you have cloned the router-release make sure that your GOPATH is set to root directory of router-release)
  • an environment variable ROUTER_API_CONFIG which points to a .json file that contains the router api endpoint

The following commands will setup the ROUTER_API_CONFIG for a bosh-lite installation. Replace config as appropriate for your environment.

cd ~/workspace/router-release/src/github.com/GESoftware-CF/cf-tcp-router-acceptance-tests/
cat > router_config.json <<EOF
{
  "address": "10.244.8.2",
    "port": 9999
}
EOF

Running the tests

After correctly setting the ROUTER_API_CONFIG environment variable, the following command will run the tests:

    ginkgo -r -nodes=3 router