blob: 1411286accdbbd5f55256f58c07c63cabe4c929c [file] [log] [blame]
Marc Koderer0abc93b2015-07-15 09:18:35 +02001# Copyright 2014 Mirantis Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# 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, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
16from tempest import clients
17from tempest.common import cred_provider
18
19from manila_tempest_tests.services.share.json import shares_client
20
21
22class Manager(clients.Manager):
23 def __init__(self, credentials=None, service=None):
24 super(Manager, self).__init__(credentials, service)
25 self.shares_client = shares_client.SharesClient(self.auth_provider)
26
27
28class AltManager(Manager):
29 def __init__(self, service=None):
30 super(AltManager, self).__init__(
31 cred_provider.get_configured_credentials('alt_user'), service)
32
33
34class AdminManager(Manager):
35 def __init__(self, service=None):
36 super(AdminManager, self).__init__(
37 cred_provider.get_configured_credentials('identity_admin'),
38 service)