summaryrefslogtreecommitdiff
path: root/watcher_tempest_plugin/infra_optim_clients.py
diff options
context:
space:
mode:
Diffstat (limited to 'watcher_tempest_plugin/infra_optim_clients.py')
-rw-r--r--watcher_tempest_plugin/infra_optim_clients.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/watcher_tempest_plugin/infra_optim_clients.py b/watcher_tempest_plugin/infra_optim_clients.py
deleted file mode 100644
index edf2091..0000000
--- a/watcher_tempest_plugin/infra_optim_clients.py
+++ /dev/null
@@ -1,42 +0,0 @@
1# -*- encoding: utf-8 -*-
2# Copyright (c) 2016 b<>com
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13# implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17import abc
18
19import six
20from tempest import clients
21from tempest.common import credentials_factory as creds_factory
22from tempest import config
23
24from watcher_tempest_plugin.services.infra_optim.v1.json import client as ioc
25
26CONF = config.CONF
27
28
29@six.add_metaclass(abc.ABCMeta)
30class BaseManager(clients.Manager):
31
32 def __init__(self, credentials):
33 super(BaseManager, self).__init__(credentials)
34 self.io_client = ioc.InfraOptimClientJSON(
35 self.auth_provider, 'infra-optim', CONF.identity.region)
36
37
38class AdminManager(BaseManager):
39 def __init__(self):
40 super(AdminManager, self).__init__(
41 creds_factory.get_configured_admin_credentials(),
42 )