Merge "Trival: Remove unused logging import in some files"

This commit is contained in:
Jenkins 2016-01-13 11:15:59 +00:00 committed by Gerrit Code Review
commit 3cc592dbdd
35 changed files with 0 additions and 119 deletions

View File

@ -15,7 +15,6 @@
import time import time
from oslo_log import log as logging
import six import six
import testtools import testtools
@ -27,8 +26,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class ListImageFiltersTestJSON(base.BaseV2ComputeTest): class ListImageFiltersTestJSON(base.BaseV2ComputeTest):

View File

@ -13,13 +13,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest import config from tempest import config
import tempest.test import tempest.test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class BaseDatabaseTest(tempest.test.BaseTestCase): class BaseDatabaseTest(tempest.test.BaseTestCase):

View File

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from six import moves from six import moves
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
@ -22,8 +21,6 @@ import tempest.test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class BaseImageTest(tempest.test.BaseTestCase): class BaseImageTest(tempest.test.BaseTestCase):
"""Base test class for Image API tests.""" """Base test class for Image API tests."""

View File

@ -13,16 +13,12 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from oslo_log import log as logging
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import config from tempest import config
from tempest import test from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class BaseMessagingTest(test.BaseTestCase): class BaseMessagingTest(test.BaseTestCase):

View File

@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import logging
from six.moves.urllib import parse as urlparse from six.moves.urllib import parse as urlparse
from tempest_lib import decorators from tempest_lib import decorators
@ -24,7 +22,6 @@ from tempest import config
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
CONF = config.CONF CONF = config.CONF

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import logging
from tempest.api.messaging import base from tempest.api.messaging import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
@ -21,7 +20,6 @@ from tempest import config
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
CONF = config.CONF CONF = config.CONF

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import logging
from six import moves from six import moves
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
@ -24,9 +23,6 @@ from tempest.common.utils import data_utils
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
class TestQueues(base.BaseMessagingTest): class TestQueues(base.BaseMessagingTest):
@test.attr(type='smoke') @test.attr(type='smoke')

View File

@ -14,7 +14,6 @@
# under the License. # under the License.
import netaddr import netaddr
from oslo_log import log as logging
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
@ -24,8 +23,6 @@ import tempest.test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class BaseNetworkTest(tempest.test.BaseTestCase): class BaseNetworkTest(tempest.test.BaseTestCase):
"""Base class for the Neutron tests """Base class for the Neutron tests

View File

@ -12,16 +12,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.
from oslo_log import log as logging
from tempest.api.network import base from tempest.api.network import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
class MeteringTestJSON(base.BaseAdminNetworkTest): class MeteringTestJSON(base.BaseAdminNetworkTest):
"""Tests the following operations in the Neutron API: """Tests the following operations in the Neutron API:

View File

@ -12,7 +12,6 @@
import os.path import os.path
from oslo_log import log as logging
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
import yaml import yaml
@ -22,8 +21,6 @@ import tempest.test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class BaseOrchestrationTest(tempest.test.BaseTestCase): class BaseOrchestrationTest(tempest.test.BaseTestCase):
"""Base test case class for all Orchestration API tests.""" """Base test case class for all Orchestration API tests."""

View File

@ -10,8 +10,6 @@
# 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
from tempest.api.orchestration import base from tempest.api.orchestration import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import config from tempest import config
@ -19,7 +17,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class StackEnvironmentTest(base.BaseOrchestrationTest): class StackEnvironmentTest(base.BaseOrchestrationTest):

View File

@ -10,8 +10,6 @@
# 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
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from tempest.api.orchestration import base from tempest.api.orchestration import base
@ -21,8 +19,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestServerStackLimits(base.BaseOrchestrationTest): class TestServerStackLimits(base.BaseOrchestrationTest):

View File

@ -10,8 +10,6 @@
# 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
from tempest.api.orchestration import base from tempest.api.orchestration import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import config from tempest import config
@ -19,8 +17,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class StacksTestJSON(base.BaseOrchestrationTest): class StacksTestJSON(base.BaseOrchestrationTest):

View File

@ -10,17 +10,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 logging
from tempest.api.orchestration import base from tempest.api.orchestration import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
class NovaKeyPairResourcesYAMLTest(base.BaseOrchestrationTest): class NovaKeyPairResourcesYAMLTest(base.BaseOrchestrationTest):
_tpl_type = 'yaml' _tpl_type = 'yaml'
_resource = 'resources' _resource = 'resources'

View File

@ -10,7 +10,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from tempest.api.orchestration import base from tempest.api.orchestration import base
@ -18,7 +17,6 @@ from tempest.common.utils import data_utils
from tempest import config from tempest import config
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
CONF = config.CONF CONF = config.CONF

View File

@ -10,16 +10,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.
from oslo_log import log as logging
from tempest.api.orchestration import base from tempest.api.orchestration import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
class StacksTestJSON(base.BaseOrchestrationTest): class StacksTestJSON(base.BaseOrchestrationTest):
empty_template = "HeatTemplateFormatVersion: '2012-12-12'\n" empty_template = "HeatTemplateFormatVersion: '2012-12-12'\n"

View File

@ -10,8 +10,6 @@
# 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
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from tempest.api.orchestration import base from tempest.api.orchestration import base
@ -21,7 +19,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class CinderResourcesTest(base.BaseOrchestrationTest): class CinderResourcesTest(base.BaseOrchestrationTest):

View File

@ -10,7 +10,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
import six import six
from tempest.api.volume import base from tempest.api.volume import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
@ -19,8 +18,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class VolumeMultiBackendV2Test(base.BaseVolumeAdminTest): class VolumeMultiBackendV2Test(base.BaseVolumeAdminTest):

View File

@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest_lib import decorators from tempest_lib import decorators
from tempest.api.volume import base from tempest.api.volume import base
@ -22,7 +21,6 @@ from tempest import config
from tempest import test from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class VolumesBackupsV2Test(base.BaseVolumeAdminTest): class VolumesBackupsV2Test(base.BaseVolumeAdminTest):

View File

@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from tempest.common import compute from tempest.common import compute
@ -24,8 +23,6 @@ import tempest.test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class BaseVolumeTest(tempest.test.BaseTestCase): class BaseVolumeTest(tempest.test.BaseTestCase):
"""Base test case class for all Cinder API tests.""" """Base test case class for all Cinder API tests."""

View File

@ -15,15 +15,12 @@
# under the License. # under the License.
import operator import operator
from oslo_log import log as logging
from testtools import matchers from testtools import matchers
from tempest.api.volume import base from tempest.api.volume import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
class VolumesV2ListTestJSON(base.BaseVolumeTest): class VolumesV2ListTestJSON(base.BaseVolumeTest):
# NOTE: This test creates a number of 1G volumes. To run successfully, # NOTE: This test creates a number of 1G volumes. To run successfully,

View File

@ -10,14 +10,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.
from oslo_log import log as logging
from tempest.api.volume import base from tempest.api.volume import base
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import config from tempest import config
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
CONF = config.CONF CONF = config.CONF

View File

@ -14,14 +14,11 @@
import abc import abc
from oslo_log import log as logging
import six import six
from tempest_lib import auth from tempest_lib import auth
from tempest import exceptions from tempest import exceptions
LOG = logging.getLogger(__name__)
@six.add_metaclass(abc.ABCMeta) @six.add_metaclass(abc.ABCMeta)
class CredentialProvider(object): class CredentialProvider(object):

View File

@ -12,7 +12,6 @@
# limitations under the License. # limitations under the License.
from oslo_concurrency import lockutils from oslo_concurrency import lockutils
from oslo_log import log as logging
from tempest_lib import auth from tempest_lib import auth
from tempest import clients from tempest import clients
@ -23,7 +22,6 @@ from tempest import config
from tempest import exceptions from tempest import exceptions
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
"""This module provides factories of credential and credential providers """This module provides factories of credential and credential providers

View File

@ -17,11 +17,8 @@ import copy
import functools import functools
import jsonschema import jsonschema
from oslo_log import log as logging
import six import six
LOG = logging.getLogger(__name__)
def _check_for_expected_result(name, schema): def _check_for_expected_result(name, schema):
expected_result = None expected_result = None

View File

@ -15,13 +15,9 @@
import copy import copy
from oslo_log import log as logging
import tempest.common.generator.base_generator as base import tempest.common.generator.base_generator as base
import tempest.common.generator.valid_generator as valid import tempest.common.generator.valid_generator as valid
LOG = logging.getLogger(__name__)
class NegativeTestGenerator(base.BasicGeneratorSet): class NegativeTestGenerator(base.BasicGeneratorSet):
@base.generator_type("string") @base.generator_type("string")

View File

@ -13,15 +13,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.
from oslo_log import log as logging
import six import six
import tempest.common.generator.base_generator as base import tempest.common.generator.base_generator as base
LOG = logging.getLogger(__name__)
class ValidTestGenerator(base.BasicGeneratorSet): class ValidTestGenerator(base.BasicGeneratorSet):
@base.generator_type("string") @base.generator_type("string")
@base.simple_generator @base.simple_generator

View File

@ -13,17 +13,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest.common import tempest_fixtures as fixtures from tempest.common import tempest_fixtures as fixtures
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest.scenario import manager from tempest.scenario import manager
from tempest import test from tempest import test
LOG = logging.getLogger(__name__)
class TestAggregatesBasicOps(manager.ScenarioTest): class TestAggregatesBasicOps(manager.ScenarioTest):
"""Creates an aggregate within an availability zone """Creates an aggregate within an availability zone

View File

@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest_lib import exceptions as lib_exc from tempest_lib import exceptions as lib_exc
from tempest.common import fixed_network from tempest.common import fixed_network
@ -26,9 +25,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestLargeOpsScenario(manager.ScenarioTest): class TestLargeOpsScenario(manager.ScenarioTest):
"""Test large operations. """Test large operations.

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest.common import custom_matchers from tempest.common import custom_matchers
from tempest.common import waiters from tempest.common import waiters
from tempest import config from tempest import config
@ -24,8 +22,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestMinimumBasicScenario(manager.ScenarioTest): class TestMinimumBasicScenario(manager.ScenarioTest):

View File

@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
import testtools import testtools
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
@ -23,7 +22,6 @@ from tempest.scenario import manager
from tempest import test from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestNetworkAdvancedServerOps(manager.NetworkScenarioTest): class TestNetworkAdvancedServerOps(manager.NetworkScenarioTest):

View File

@ -14,7 +14,6 @@
# under the License. # under the License.
import functools import functools
from oslo_log import log as logging
import six import six
from tempest import config from tempest import config
@ -23,7 +22,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestGettingAddress(manager.NetworkScenarioTest): class TestGettingAddress(manager.NetworkScenarioTest):

View File

@ -13,16 +13,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest import config from tempest import config
from tempest.scenario import manager from tempest.scenario import manager
from tempest import test from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestObjectStorageBasicOps(manager.ObjectStorageScenarioTest): class TestObjectStorageBasicOps(manager.ObjectStorageScenarioTest):
"""Test swift basic ops. """Test swift basic ops.

View File

@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_log import log as logging
from tempest import clients from tempest import clients
from tempest.common.utils import data_utils from tempest.common.utils import data_utils
from tempest import config from tempest import config
@ -23,8 +21,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestSecurityGroupsBasicOps(manager.NetworkScenarioTest): class TestSecurityGroupsBasicOps(manager.NetworkScenarioTest):

View File

@ -14,8 +14,6 @@
# under the License. # under the License.
from oslo_log import log as logging
from tempest import config from tempest import config
from tempest import exceptions from tempest import exceptions
from tempest.scenario import manager from tempest.scenario import manager
@ -23,8 +21,6 @@ from tempest import test
CONF = config.CONF CONF = config.CONF
LOG = logging.getLogger(__name__)
class TestServerMultinode(manager.ScenarioTest): class TestServerMultinode(manager.ScenarioTest):
"""This is a set of tests specific to multinode testing.""" """This is a set of tests specific to multinode testing."""