Merge "Adjust import items according to hacking import rule"
This commit is contained in:
@@ -16,8 +16,10 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import pbr.version
|
import pbr.version
|
||||||
|
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||||
'..', '..')))
|
'..', '..')))
|
||||||
|
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
from keystoneclient import discover
|
from keystoneclient import discover
|
||||||
from keystoneclient import httpclient
|
from keystoneclient import httpclient
|
||||||
|
|
||||||
|
|
||||||
# Using client.HTTPClient is deprecated. Use httpclient.HTTPClient instead.
|
# Using client.HTTPClient is deprecated. Use httpclient.HTTPClient instead.
|
||||||
HTTPClient = httpclient.HTTPClient
|
HTTPClient = httpclient.HTTPClient
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from keystoneclient import exceptions
|
from keystoneclient import exceptions
|
||||||
@@ -20,6 +21,7 @@ from keystoneclient import httpclient
|
|||||||
from keystoneclient.v2_0 import client as v2_client
|
from keystoneclient.v2_0 import client as v2_client
|
||||||
from keystoneclient.v3 import client as v3_client
|
from keystoneclient.v3 import client as v3_client
|
||||||
|
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -16,11 +16,13 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from six.moves.urllib import parse as urlparse
|
from six.moves.urllib import parse as urlparse
|
||||||
|
|
||||||
from keystoneclient import exceptions
|
from keystoneclient import exceptions
|
||||||
from keystoneclient import httpclient
|
from keystoneclient import httpclient
|
||||||
|
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -15,10 +15,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from keystoneclient.generic import client
|
from keystoneclient.generic import client
|
||||||
from keystoneclient import utils
|
from keystoneclient import utils
|
||||||
|
|
||||||
import six
|
|
||||||
|
|
||||||
CLIENT_CLASS = client.Client
|
CLIENT_CLASS = client.Client
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@ OpenStack Client interface. Handles the REST calls and responses.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from six.moves.urllib import parse as urlparse
|
from six.moves.urllib import parse as urlparse
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@@ -164,6 +164,7 @@ from keystoneclient.openstack.common import memorycache
|
|||||||
from keystoneclient.openstack.common import timeutils
|
from keystoneclient.openstack.common import timeutils
|
||||||
from keystoneclient import utils
|
from keystoneclient import utils
|
||||||
|
|
||||||
|
|
||||||
CONF = None
|
CONF = None
|
||||||
# to pass gate before oslo-config is deployed everywhere,
|
# to pass gate before oslo-config is deployed everywhere,
|
||||||
# try application copies first
|
# try application copies first
|
||||||
|
@@ -20,6 +20,7 @@ import six
|
|||||||
from keystoneclient import exceptions
|
from keystoneclient import exceptions
|
||||||
from keystoneclient.openstack.common import jsonutils
|
from keystoneclient.openstack.common import jsonutils
|
||||||
|
|
||||||
|
|
||||||
USER_AGENT = 'python-keystoneclient'
|
USER_AGENT = 'python-keystoneclient'
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
@@ -28,11 +28,11 @@ import argparse
|
|||||||
import getpass
|
import getpass
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import six
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import keystoneclient
|
import six
|
||||||
|
|
||||||
|
import keystoneclient
|
||||||
from keystoneclient import access
|
from keystoneclient import access
|
||||||
from keystoneclient.contrib.bootstrap import shell as shell_bootstrap
|
from keystoneclient.contrib.bootstrap import shell as shell_bootstrap
|
||||||
from keystoneclient import exceptions as exc
|
from keystoneclient import exceptions as exc
|
||||||
|
@@ -16,20 +16,20 @@
|
|||||||
|
|
||||||
import calendar
|
import calendar
|
||||||
import datetime
|
import datetime
|
||||||
import iso8601
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import stat
|
import stat
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import testtools
|
|
||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import fixtures
|
import fixtures
|
||||||
import httpretty
|
import httpretty
|
||||||
|
import iso8601
|
||||||
import mock
|
import mock
|
||||||
import testresources
|
import testresources
|
||||||
|
import testtools
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
from keystoneclient.common import cms
|
from keystoneclient.common import cms
|
||||||
|
@@ -23,6 +23,7 @@ from keystoneclient.tests import utils
|
|||||||
from keystoneclient.v2_0 import client as v2_client
|
from keystoneclient.v2_0 import client as v2_client
|
||||||
from keystoneclient.v3 import client as v3_client
|
from keystoneclient.v3 import client as v3_client
|
||||||
|
|
||||||
|
|
||||||
BASE_HOST = 'http://keystone.example.com'
|
BASE_HOST = 'http://keystone.example.com'
|
||||||
BASE_URL = "%s:5000/" % BASE_HOST
|
BASE_URL = "%s:5000/" % BASE_HOST
|
||||||
UPDATED = '2013-03-06T00:00:00Z'
|
UPDATED = '2013-03-06T00:00:00Z'
|
||||||
|
@@ -14,8 +14,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import httpretty
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import httpretty
|
||||||
import six
|
import six
|
||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@ from keystoneclient import httpclient
|
|||||||
from keystoneclient import session
|
from keystoneclient import session
|
||||||
from keystoneclient.tests import utils
|
from keystoneclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
RESPONSE_BODY = '{"hi": "there"}'
|
RESPONSE_BODY = '{"hi": "there"}'
|
||||||
|
|
||||||
|
|
||||||
|
@@ -13,13 +13,13 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from keystoneclient import httpclient
|
from keystoneclient import httpclient
|
||||||
from keystoneclient import session
|
from keystoneclient import session
|
||||||
from keystoneclient.tests import utils
|
from keystoneclient.tests import utils
|
||||||
|
|
||||||
|
|
||||||
FAKE_RESPONSE = utils.TestResponse({
|
FAKE_RESPONSE = utils.TestResponse({
|
||||||
"status_code": 200,
|
"status_code": 200,
|
||||||
"text": '{"hi": "there"}',
|
"text": '{"hi": "there"}',
|
||||||
|
@@ -28,6 +28,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
keyring = None
|
keyring = None
|
||||||
|
|
||||||
|
|
||||||
PROJECT_SCOPED_TOKEN = client_fixtures.PROJECT_SCOPED_TOKEN
|
PROJECT_SCOPED_TOKEN = client_fixtures.PROJECT_SCOPED_TOKEN
|
||||||
|
|
||||||
# These mirror values from PROJECT_SCOPED_TOKEN
|
# These mirror values from PROJECT_SCOPED_TOKEN
|
||||||
|
@@ -22,6 +22,7 @@ from keystoneclient.tests import client_fixtures as token_data
|
|||||||
from keystoneclient.tests.v2_0 import client_fixtures
|
from keystoneclient.tests.v2_0 import client_fixtures
|
||||||
from keystoneclient.tests.v2_0 import utils
|
from keystoneclient.tests.v2_0 import utils
|
||||||
|
|
||||||
|
|
||||||
UNSCOPED_TOKEN = client_fixtures.UNSCOPED_TOKEN
|
UNSCOPED_TOKEN = client_fixtures.UNSCOPED_TOKEN
|
||||||
PROJECT_SCOPED_TOKEN = client_fixtures.PROJECT_SCOPED_TOKEN
|
PROJECT_SCOPED_TOKEN = client_fixtures.PROJECT_SCOPED_TOKEN
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ import httpretty
|
|||||||
from keystoneclient.tests import utils
|
from keystoneclient.tests import utils
|
||||||
from keystoneclient.v2_0 import client
|
from keystoneclient.v2_0 import client
|
||||||
|
|
||||||
|
|
||||||
TestResponse = utils.TestResponse
|
TestResponse = utils.TestResponse
|
||||||
|
|
||||||
|
|
||||||
|
@@ -19,6 +19,7 @@ from keystoneclient.openstack.common import timeutils
|
|||||||
from keystoneclient.tests.v3 import client_fixtures
|
from keystoneclient.tests.v3 import client_fixtures
|
||||||
from keystoneclient.tests.v3 import utils
|
from keystoneclient.tests.v3 import utils
|
||||||
|
|
||||||
|
|
||||||
TOKEN_RESPONSE = utils.TestResponse({
|
TOKEN_RESPONSE = utils.TestResponse({
|
||||||
"headers": client_fixtures.AUTH_RESPONSE_HEADERS
|
"headers": client_fixtures.AUTH_RESPONSE_HEADERS
|
||||||
})
|
})
|
||||||
|
@@ -21,6 +21,7 @@ from keystoneclient.openstack.common import jsonutils
|
|||||||
from keystoneclient.tests import utils
|
from keystoneclient.tests import utils
|
||||||
from keystoneclient.v3 import client
|
from keystoneclient.v3 import client
|
||||||
|
|
||||||
|
|
||||||
TestResponse = utils.TestResponse
|
TestResponse = utils.TestResponse
|
||||||
|
|
||||||
|
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from keystoneclient import exceptions
|
from keystoneclient import exceptions
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from keystoneclient import exceptions
|
from keystoneclient import exceptions
|
||||||
|
Reference in New Issue
Block a user