blob: 65ee64efaa1f2bf907b8a7ca1e1c09d2309cc7b5 [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
Clinton Knighte5c8f092015-08-27 15:00:23 -040020from manila_tempest_tests.services.share.v2.json import shares_client \
21 as shares_v2_client
Marc Koderer0abc93b2015-07-15 09:18:35 +020022
23
24class Manager(clients.Manager):
25 def __init__(self, credentials=None, service=None):
26 super(Manager, self).__init__(credentials, service)
27 self.shares_client = shares_client.SharesClient(self.auth_provider)
Clinton Knighte5c8f092015-08-27 15:00:23 -040028 self.shares_v2_client = shares_v2_client.SharesV2Client(
29 self.auth_provider)
Marc Koderer0abc93b2015-07-15 09:18:35 +020030
31
32class AltManager(Manager):
33 def __init__(self, service=None):
34 super(AltManager, self).__init__(
35 cred_provider.get_configured_credentials('alt_user'), service)
36
37
38class AdminManager(Manager):
39 def __init__(self, service=None):
40 super(AdminManager, self).__init__(
41 cred_provider.get_configured_credentials('identity_admin'),
42 service)