From 8f900bef446cd73ea33adaf1373dbed85d293f02 Mon Sep 17 00:00:00 2001 From: Rohan Kanade Date: Tue, 30 Sep 2014 12:31:40 +0200 Subject: [PATCH] Allow user specified endpoint_type in config * Use user specified endpoint_type (public|internal|admin) for creating openstack clients in Rally Change-Id: I4af74d21417045df966c7fbe1ee735b15a36ae5f Closes-Bug: #1351567 --- rally/consts.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rally/consts.py b/rally/consts.py index 71a0caf4..efe86a67 100644 --- a/rally/consts.py +++ b/rally/consts.py @@ -68,6 +68,12 @@ class _EndpointPermission(utils.ImmutableMixin, utils.EnumMixin): USER = "user" +class _EndpointType(utils.ImmutableMixin, utils.EnumMixin): + INTERNAL = "internal" + ADMIN = "admin" + PUBLIC = "public" + + class _RunnerType(utils.ImmutableMixin, utils.EnumMixin): SERIAL = "serial" CONSTANT = "constant" @@ -148,3 +154,4 @@ EndpointPermission = _EndpointPermission() RunnerType = _RunnerType() ServiceType = _ServiceType() Service = _Service() +EndpointType = _EndpointType()