From f43ea4776668e259b3053e0c1d4b7d13685f424d Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 18 Apr 2017 21:51:57 -0700 Subject: [PATCH] Send useful auth_port and auth_prefix to swift's test.conf Until we can test with a version of swiftclient that knows how to eat auth_uri, swift still needs a working gate. Change-Id: I09f9ad5c87b542df962a79898e06fbf1e968b1e3 Related-Change: I46294fb24e3c23fa19fcfd7d6c9ee8a932354702 Related-Change: Ie427f3b0b9eb834ff940fa5d52444a5a6cdcab15 --- lib/swift | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/swift b/lib/swift index d764b25fdb..8b75fcc505 100644 --- a/lib/swift +++ b/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