Browse code

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

Tim Burke authored on 2017/04/19 13:51:57
Showing 1 changed files
... ...
@@ -530,12 +530,16 @@ EOF
530 530
         local auth_vers
531 531
         auth_vers=$(iniget ${testfile} func_test auth_version)
532 532
         iniset ${testfile} func_test auth_host ${KEYSTONE_SERVICE_HOST}
533
-        iniset ${testfile} func_test auth_port ${KEYSTONE_AUTH_PORT}
533
+        if [[ "$KEYSTONE_AUTH_PROTOCOL" == "https" ]]; then
534
+            iniset ${testfile} func_test auth_port 443
535
+        else
536
+            iniset ${testfile} func_test auth_port 80
537
+        fi
534 538
         iniset ${testfile} func_test auth_uri ${KEYSTONE_AUTH_URI}
535
-        if [[ $auth_vers == "3" ]]; then
536
-            iniset ${testfile} func_test auth_prefix /v3/
539
+        if [[ "$auth_vers" == "3" ]]; then
540
+            iniset ${testfile} func_test auth_prefix /identity/v3/
537 541
         else
538
-            iniset ${testfile} func_test auth_prefix /v2.0/
542
+            iniset ${testfile} func_test auth_prefix /identity/v2.0/
539 543
         fi
540 544
     fi
541 545