# Path: barbicanclient/client.py
# LOG = logging.getLogger(__name__)
# _DEFAULT_SERVICE_TYPE = 'key-manager'
# _DEFAULT_SERVICE_INTERFACE = 'public'
# _DEFAULT_API_VERSION = 'v1'
# _SUPPORTED_API_VERSION_MAP = {'v1': 'barbicanclient.v1.client.Client'}
# class _HTTPClient(adapter.Adapter):
# class _LazyImporter(object):
#     def __init__(self, session, project_id=None, **kwargs):
#     def request(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, path, *args, **kwargs):
#     def _fix_path(self, path):
#     def _get_raw(self, path, *args, **kwargs):
#     def _check_status_code(self, resp):
#     def _get_error_message(self, resp):
# def Client(version=None, session=None, *args, **kwargs):
# def env(*vars, **kwargs):
#     def __init__(self, module):
#     def __getattr__(self, name):
# 
# Path: functionaltests/common/config.py
# TEST_CONF = None
#     TEST_CONF = cfg.ConfigOpts()
# def setup_config(config_file=''):
# def get_config():


from barbicanclient import client
from functionaltests.base import BaseTestCase
from functionaltests.common import config
from keystoneauth1 import identity
from keystoneauth1 import session
See the License for the specific language governing permissions and
limitations under the License.
"""


CONF = config.get_config()


class TestCase(BaseTestCase):

    def setUp(self):
        self.LOG.info('Starting: %s', self._testMethodName)
        super(TestCase, self).setUp()

        if 'v2' in CONF.identity.auth_version:
            self.auth = identity.Password(
                auth_url=CONF.identity.uri,
                username=CONF.keymanager.username,
                password=CONF.keymanager.password,
                tenant_name=CONF.keymanager.project_name)
        else:
            self.auth = identity.Password(
                auth_url=CONF.identity.uri,
                username=CONF.keymanager.username,
                user_domain_name=CONF.identity.domain_name,
                password=CONF.keymanager.password,
                project_name=CONF.keymanager.project_name,
                project_domain_name=CONF.keymanager.project_domain_name)

        self.sess = session.Session(auth=self.auth)

# Path: barbicanclient/client.py
# LOG = logging.getLogger(__name__)
# _DEFAULT_SERVICE_TYPE = 'key-manager'
# _DEFAULT_SERVICE_INTERFACE = 'public'
# _DEFAULT_API_VERSION = 'v1'
# _SUPPORTED_API_VERSION_MAP = {'v1': 'barbicanclient.v1.client.Client'}
# class _HTTPClient(adapter.Adapter):
# class _LazyImporter(object):
#     def __init__(self, session, project_id=None, **kwargs):
#     def request(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, path, *args, **kwargs):
#     def _fix_path(self, path):
#     def _get_raw(self, path, *args, **kwargs):
#     def _check_status_code(self, resp):
#     def _get_error_message(self, resp):
# def Client(version=None, session=None, *args, **kwargs):
# def env(*vars, **kwargs):
#     def __init__(self, module):
#     def __getattr__(self, name):
# 
# Path: functionaltests/common/config.py
# TEST_CONF = None
#     TEST_CONF = cfg.ConfigOpts()
# def setup_config(config_file=''):
# def get_config():


# Path: functionaltests/client/base.py
from barbicanclient import client
from functionaltests.base import BaseTestCase
from functionaltests.common import config
from keystoneauth1 import identity
from keystoneauth1 import session

See the License for the specific language governing permissions and
limitations under the License.
"""


CONF = config.get_config()


class TestCase(BaseTestCase):

    def setUp(self):
        self.LOG.info('Starting: %s', self._testMethodName)
        super(TestCase, self).setUp()

        if 'v2' in CONF.identity.auth_version:
            self.auth = identity.Password(
                auth_url=CONF.identity.uri,
                username=CONF.keymanager.username,
                password=CONF.keymanager.password,
                tenant_name=CONF.keymanager.project_name)
        else:
            self.auth = identity.Password(
                auth_url=CONF.identity.uri,
                username=CONF.keymanager.username,
                user_domain_name=CONF.identity.domain_name,
                password=CONF.keymanager.password,
                project_name=CONF.keymanager.project_name,
                project_domain_name=CONF.keymanager.project_domain_name)

        self.sess = session.Session(auth=self.auth)

        self.barbicanclient = client.Client(