1e69e44835
Closes-bug: #1540287 Change-Id: Ia8f1d41c828dd922559bf8fbcd1b331b0247faf1
29 lines
624 B
Bash
Executable File
29 lines
624 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FUNC_TEST_DIR=$(dirname $0)/../ironicclient/tests/functional/
|
|
CONFIG_FILE=$FUNC_TEST_DIR/test.conf
|
|
|
|
if [[ -n "$OS_AUTH_TOKEN" ]] && [[ -n "$IRONIC_URL" ]]; then
|
|
cat <<END >$CONFIG_FILE
|
|
[functional]
|
|
api_version = 1
|
|
auth_strategy=noauth
|
|
os_auth_token=$OS_AUTH_TOKEN
|
|
ironic_url=$IRONIC_URL
|
|
END
|
|
else
|
|
cat <<END >$CONFIG_FILE
|
|
[functional]
|
|
api_version = 1
|
|
os_auth_url=$OS_AUTH_URL
|
|
os_username=$OS_USERNAME
|
|
os_password=$OS_PASSWORD
|
|
os_tenant_name=$OS_TENANT_NAME
|
|
os_user_domain_id=$OS_USER_DOMAIN_ID
|
|
os_project_domain_id=$OS_PROJECT_DOMAIN_ID
|
|
os_service_type=baremetal
|
|
os_endpoint_type=public
|
|
END
|
|
fi
|
|
tox -e functional
|