Skip to content

Latest commit

 

History

History
148 lines (138 loc) · 4.61 KB

testing_with_bbl.md

File metadata and controls

148 lines (138 loc) · 4.61 KB

Running DRATs with a BOSH-bootloader environment

In order to run DRATs with a BOSH-bootloader environment, you can use scripts/run_acceptance_tests_with_bbl_env.sh <PATH_TO_BBL_STATE_DIR>.

Vanilla DRATs

For a vanilla run of DRATs, you need to set the following environment variables (which can be taken from the BOSH_ALL_PROXY environment variable):

Environment Variable Usage
`BOSH_GW_HOST` Gateway host to use for BOSH SSH connection
`BOSH_GW_USER` Gateway user to use for BOSH SSH connection

For further configure the run of DRATs, you can set the following environment variables:

Optional Environment Variable Usage
`DEFAULT_TIMEOUT_MINS` Timeout for commands run in the test (defaults to 15 minutes)
`SSH_DESTINATION_CIDR` Default to "10.0.0.0/8"; change if your CF deployment is deployed in a different internal network range
`DELETE_AND_REDEPLOY_CF` Set to "true" to have the CF deployment destroyed and redeployed from scratch during the test cycle. **Exercise extreme care when using this option!**
`FOCUSED_SUITE_NAME` A regex matching the name(s) of test suites that you **do** want DRATs to run
`SKIP_SUITE_NAME` A regex matching the name(s) of test suites that you **do not** want DRATs to run

**If these variables are not set, all test suites will be run.


DRATs with NFS Broker

To also run the test case for the optional component NFS Broker, set the following variables:

NFS Broker Environment Variable Usage
`INCLUDE_NFS_BROKER_TESTCASE` Set to "true" to run the NFS test case
`NFS_SERVICE_NAME` Required to run the NFS test case
`NFS_PLAN_NAME` Required to run the NFS test case
`NFS_CREATE_SERVICE_BROKER` Set to "true" to register the NFS service broker in the NFS test case
`NFS_BROKER_USER` Required to register the NFS service broker when running the NFS test case
`NFS_BROKER_PASSWORD` Required to register the NFS service broker when running the NFS test case
`NFS_BROKER_URL` Required to register the NFS service broker when running the NFS test case

DRATs with SMB Broker

To also run the test case for the optional component SMB Broker, set the following variables:

SMB Broker Environment Variable Usage
`INCLUDE_SMB_BROKER_TESTCASE` Set to "true" to run the SMB test case
`SMB_SERVICE_NAME` Required to run the SMB test case
`SMB_PLAN_NAME` Required to run the SMB test case
`SMB_CREATE_SERVICE_BROKER` Set to "true" to register the SMB service broker in the SMB test case
`SMB_BROKER_USER` Required to register the SMB service broker when running the SMB test case
`SMB_BROKER_PASSWORD` Required to register the SMB service broker when running the SMB test case
`SMB_BROKER_URL` Required to register the SMB service broker when running the SMB test case

DRATs with Selective Backup

If you have deployed your cf-deployment to selectively backup blobs, set the following variables:

Selective Backup Environment Variable Usage
`SELECTIVE_BACKUP` Set to "true" to run the EnsureAfterSelectiveRestore test case step
`SELECTIVE_BACKUP_TYPE` set to droplets or droplets_and_packages