Name: routing-acceptance-tests
Owner: Cloud Foundry
Description: null
Created: 2016-02-24 19:53:03.0
Updated: 2018-04-05 16:43:10.0
Pushed: 2018-04-05 16:43:08.0
Homepage: null
Size: 7751
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This test suite exercises Cloud Foundry Routing deployment.
Note: This repository should be imported as code.cloudfoundry.org/routing-acceptance-tests
.
To run the Routing Acceptance tests or Smoke tests, you will need:
CONFIG
which points to a .json
file that contains the router api endpointclone https://github.com/cloudfoundry/routing-release.git
outing-release
ripts/update
ce .envrc
The following commands will create a config file integration_config.json
for a bosh-lite installation and set the CONFIG
environment variable to the path for this file. Edit integration_config.json
as appropriate for your environment.
/workspace/routing-release/src/code.cloudfoundry.org/routing-acceptance-tests/
> integration_config.json <<EOF
ddresses": ["10.244.14.2"],
pi": "api.bosh-lite.com",
dmin_user": "admin",
dmin_password": "admin",
kip_ssl_validation": true,
se_http":true,
pps_domain": "bosh-lite.com",
nclude_http_routes": true,
efault_timeout": 120,
f_push_timeout": 120,
erbose": true,
est_password": "test",
auth": {
"token_endpoint": "https://uaa.bosh-lite.com",
"client_name": "tcp_emitter",
"client_secret": "tcp-emitter-secret",
"port": 443,
"skip_ssl_validation": true
cp_router_group": "default-tcp"
rt CONFIG=$PWD/integration_config.json
n/test
Note:
addresses
- contains the IP addresses of the TCP Routers and/or the Load Balancer's IP address. IP 10.24.14.2
is IP address of tcp_router_z1/0
job in routing-release. If this IP address happens to be different in your deployment then change the entry accordingly. The addresses
property also accepts DNS entry for tcp router, e.g. tcp.bosh-lite.com
.admin_user
and admin_password
- refers to the admin user used to perform a CF login with the cf CLI.skip_ssl_validation
- used for the cf CLI when targeting an environment.include_http_routes
(optional) - a boolean used to run tests for the experimental HTTP routing endpoints of the Routing API.verbose
(optional) - a boolean which allows for the -v
flag to be passed when running the router acceptance tests errandtest_password
(optional) - By default, users created during the routing acceptance tests are configured with a random name and password. If manually configured, this property enables specifying the password for the user created during the test. test_password
performs the same function as the manifest property, user_password
.tcp_router_group
- The router group to use for creating tcp routes./workspace/routing-release/src/code.cloudfoundry.org/routing-acceptance-tests/
> integration_config.json <<EOF
ddresses": ["10.244.14.2"],
pi": "api.bosh-lite.com",
dmin_user": "admin",
dmin_password": "admin",
kip_ssl_validation": true,
se_http":true,
efault_timeout": 120,
pps_domain": "bosh-lite.com",
cp_apps_domain": "tcp.bosh-lite.com",
auth": {
"token_endpoint": "https://uaa.bosh-lite.com",
"client_name": "tcp_emitter",
"client_secret": "tcp-emitter-secret",
"port": 443,
"skip_ssl_validation": true
cp_router_group": "default-tcp"
rt CONFIG=$PWD/integration_config.json
n/smoke_tests
Note:
tcp_apps_domain
property is empty, smoke tests create a temporary shared domain and use the addresses
field to connect to TCP application../bin/smoke_tests -v
.tcp_router_group
- The router group to use for creating tcp routes.