Move api/auth.py into osc_lib
Change-Id: I425925af37979a98a15a3fb13dd3586b5cdcd456
This commit is contained in:
parent
e0084e35a1
commit
d97ebdc553
@ -1,22 +0,0 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
||||
import pbr.version
|
||||
|
||||
version_info = pbr.version.VersionInfo('python-openstackclient')
|
||||
try:
|
||||
__version__ = version_info.version_string()
|
||||
except AttributeError:
|
||||
__version__ = None
|
@ -19,11 +19,11 @@ import copy
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from openstackclient.api import auth
|
||||
from oslo_utils import strutils
|
||||
import requests
|
||||
import six
|
||||
|
||||
from osc_lib.api import auth
|
||||
from osc_lib import exceptions
|
||||
from osc_lib import session as osc_session
|
||||
|
||||
|
@ -29,7 +29,6 @@ from cliff import help
|
||||
from oslo_utils import importutils
|
||||
from oslo_utils import strutils
|
||||
|
||||
# import openstackclient
|
||||
from osc_lib import clientmanager
|
||||
from osc_lib.command import commandmanager
|
||||
from osc_lib.command import timing
|
||||
|
@ -18,9 +18,9 @@ import mock
|
||||
|
||||
from keystoneauth1.access import service_catalog
|
||||
from keystoneauth1.identity import v2 as auth_v2
|
||||
from openstackclient.api import auth
|
||||
from requests_mock.contrib import fixture
|
||||
|
||||
from osc_lib.api import auth
|
||||
from osc_lib import clientmanager
|
||||
from osc_lib import exceptions as exc
|
||||
from osc_lib.tests import fakes
|
||||
@ -388,7 +388,7 @@ class TestClientManager(utils.TestCase):
|
||||
client_manager.setup_auth,
|
||||
)
|
||||
|
||||
@mock.patch('openstackclient.api.auth.check_valid_auth_options')
|
||||
@mock.patch('osc_lib.api.auth.check_valid_auth_options')
|
||||
def test_client_manager_auth_setup_once(self, check_auth_options_func):
|
||||
client_manager = clientmanager.ClientManager(
|
||||
cli_options=FakeOptions(
|
||||
|
Loading…
Reference in New Issue
Block a user