From 1c0d8a0bfa9016bbc40a2f3c88d02b7124dd0009 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Tue, 2 Apr 2019 16:24:04 +0100 Subject: [PATCH] Add endpoint types to tempest config This commit allows configuration of the endpoint type. Change-Id: Id602b676ff08e9d2ccdf6e3f6ddfde7755449c03 --- rally_openstack/verification/tempest/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rally_openstack/verification/tempest/config.py b/rally_openstack/verification/tempest/config.py index 26e02a61..0d3d7001 100644 --- a/rally_openstack/verification/tempest/config.py +++ b/rally_openstack/verification/tempest/config.py @@ -132,6 +132,11 @@ class TempestConfigfileManager(object): self.conf.set(section_name, "auth_version", "v%s" % target_version) self.conf.set(section_name, "uri", uri) self.conf.set(section_name, "uri_v3", uri_v3) + if self.credential.endpoint_type: + self.conf.set(section_name, "v2_endpoint_type", + self.credential.endpoint_type) + self.conf.set(section_name, "v3_endpoint_type", + self.credential.endpoint_type) self.conf.set(section_name, "disable_ssl_certificate_validation", str(self.credential.https_insecure))