From e28db4c2f297c8438fdc614954339f9178c07d54 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 1 Jun 2017 16:07:32 -0700 Subject: [PATCH] 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 --- lib/swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/swift b/lib/swift index 8fad6b8f97..79ead6c104 100644 --- a/lib/swift +++ b/lib/swift @@ -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