Files
threshold/internal/tests/cli/boundary/_helpers.bash
T
Jeff Malnick dfa94c7990 tests: allow overriding auth variables in CLI tests (#647)
* tests: ensure default user can connect to default target and ensure created target has intended host sets

* docs: update readme for CLI tests with how to run against arbitrary clusters

* feat: override auth variables in CLI tests
2020-10-13 07:41:32 -07:00

23 lines
664 B
Bash

export BOUNDARY_ADDR="${BOUNDARY_ADDR:-http://127.0.0.1:9200}"
export DEFAULT_PASSWORD="${DEFAULT_PASSWORD:-password}"
export DEFAULT_LOGIN="${DEFAULT_LOGIN:-admin}"
export DEFAULT_AMPW="${DEFAULT_AMPW:-ampw_1234567890}"
export DEFAULT_P_ID='p_1234567890'
export DEFAULT_O_ID='o_1234567890'
export DEFAULT_GLOBAL='global'
export DEFAULT_TARGET='ttcp_1234567890'
export DEFAULT_HOST_SET='hsst_1234567890'
export DEFAULT_HOST_CATALOG='hcst_1234567890'
export DEFAULT_HOST='hst_1234567890'
export DEFAULT_USER='u_1234567890'
export DEFAULT_GLOBAL='global'
function strip() {
echo "$1" | tr -d '"'
}
function strip_all() {
echo "$1" | tr -d '"' | tr -d '\'\'
}