Merge "Send useful auth_port and auth_prefix to swift's test.conf"
This commit is contained in:
commit
041a5d9d83
14
lib/swift
14
lib/swift
@ -530,12 +530,16 @@ EOF
|
||||
local auth_vers
|
||||
auth_vers=$(iniget ${testfile} func_test auth_version)
|
||||
iniset ${testfile} func_test auth_host ${KEYSTONE_SERVICE_HOST}
|
||||
iniset ${testfile} func_test auth_port ${KEYSTONE_AUTH_PORT}
|
||||
iniset ${testfile} func_test auth_uri ${KEYSTONE_AUTH_URI}
|
||||
if [[ $auth_vers == "3" ]]; then
|
||||
iniset ${testfile} func_test auth_prefix /v3/
|
||||
if [[ "$KEYSTONE_AUTH_PROTOCOL" == "https" ]]; then
|
||||
iniset ${testfile} func_test auth_port 443
|
||||
else
|
||||
iniset ${testfile} func_test auth_prefix /v2.0/
|
||||
iniset ${testfile} func_test auth_port 80
|
||||
fi
|
||||
iniset ${testfile} func_test auth_uri ${KEYSTONE_AUTH_URI}
|
||||
if [[ "$auth_vers" == "3" ]]; then
|
||||
iniset ${testfile} func_test auth_prefix /identity/v3/
|
||||
else
|
||||
iniset ${testfile} func_test auth_prefix /identity/v2.0/
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user