Set swift functest config when using tls

Because the swift functests (which use test.conf) run out of a
virtualenv they don't get access to the system wide trust of the
devstack CA. Handle this by explicitly configuring the cafile to trust
in the test.conf file.

We also set the web_front_end to apache2 as that is what is terminating
TLS for us. The tests handle different web server behaviors using this
flag.

Swift's functests will need to read these values in and properly
configure things on its end.

Change-Id: I4cdba36ccab6acd76205184882ee29e4f1e12333
This commit is contained in:
Clark Boylan
2017-06-01 16:07:32 -07:00
parent dc9ef55fc6
commit e28db4c2f2

View File

@@ -541,6 +541,10 @@ EOF
else
iniset ${testfile} func_test auth_prefix /identity/v2.0/
fi
if is_service_enabled tls-proxy; then
iniset ${testfile} func_test cafile ${SSL_BUNDLE_FILE}
iniset ${testfile} func_test web_front_end apache2
fi
fi
local user_group