summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCao Xuan Hoang <hoangcx@vn.fujitsu.com>2016-09-07 12:55:26 +0700
committerCao Xuan Hoang <hoangcx@vn.fujitsu.com>2016-09-07 12:56:32 +0700
commit062cf1dcd21b19734abada539523de676523b152 (patch)
tree802d6551bf527d9574bdfab531d91b33d59a0e9e
parent923c1231c4368fb18834c5a5e683dfca0860cd53 (diff)
TrivialFix: Remove logging import unused
This patch removes logging import unused in fuel_health/common/facts.py fuel_health/manager.py fuel_health/tests/sanity/*.py fuel_health/tests/smoke/test_create_flavor.py fuel_health/tests/tests_platform/test_heat.py fuel_plugin/ostf_adapter/nailgun_hooks.py fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py fuel_plugin/ostf_adapter/wsgi/controllers.py Change-Id: Ic47ced019c06e45ba0c9b669989bae83ceb049d0
Notes
Notes (review): Verified+1: Fuel CI <fuel-ci-bot@mirantis.com> Code-Review+2: tatyana-leontovich <tleontovich@mirantis.com> Code-Review+1: Vladimir Khlyunev <vkhlyunev@mirantis.com> Code-Review+1: Artem Grechanichenko <agrechanichenko@mirantis.com> Workflow+1: tatyana-leontovich <tleontovich@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 08 Sep 2016 08:56:09 +0000 Reviewed-on: https://review.openstack.org/366505 Project: openstack/fuel-ostf Branch: refs/heads/master
-rw-r--r--fuel_health/common/facts.py5
-rw-r--r--fuel_health/manager.py4
-rw-r--r--fuel_health/tests/sanity/test_sanity_compute.py4
-rw-r--r--fuel_health/tests/sanity/test_sanity_glance.py4
-rw-r--r--fuel_health/tests/sanity/test_sanity_heat.py4
-rw-r--r--fuel_health/tests/sanity/test_sanity_identity.py4
-rw-r--r--fuel_health/tests/sanity/test_sanity_networking.py4
-rw-r--r--fuel_health/tests/smoke/test_create_flavor.py5
-rw-r--r--fuel_health/tests/tests_platform/test_heat.py5
-rw-r--r--fuel_plugin/ostf_adapter/nailgun_hooks.py3
-rw-r--r--fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py3
-rw-r--r--fuel_plugin/ostf_adapter/wsgi/controllers.py5
12 files changed, 0 insertions, 50 deletions
diff --git a/fuel_health/common/facts.py b/fuel_health/common/facts.py
index 6197657..9deeba2 100644
--- a/fuel_health/common/facts.py
+++ b/fuel_health/common/facts.py
@@ -17,11 +17,6 @@
17import os 17import os
18import yaml 18import yaml
19 19
20from fuel_health.common import log as logging
21
22
23LOG = logging.getLogger(__name__)
24
25 20
26class Facts: 21class Facts:
27 __default_config_path = '/var/lib/puppet/yaml/facts/' 22 __default_config_path = '/var/lib/puppet/yaml/facts/'
diff --git a/fuel_health/manager.py b/fuel_health/manager.py
index dd2f85c..6ca6389 100644
--- a/fuel_health/manager.py
+++ b/fuel_health/manager.py
@@ -16,13 +16,9 @@
16# License for the specific language governing permissions and limitations 16# License for the specific language governing permissions and limitations
17# under the License. 17# under the License.
18 18
19from fuel_health.common import log as logging
20import fuel_health.config 19import fuel_health.config
21 20
22 21
23LOG = logging.getLogger(__name__)
24
25
26class Manager(object): 22class Manager(object):
27 """Base manager class 23 """Base manager class
28 24
diff --git a/fuel_health/tests/sanity/test_sanity_compute.py b/fuel_health/tests/sanity/test_sanity_compute.py
index 6afe9c4..578b7dc 100644
--- a/fuel_health/tests/sanity/test_sanity_compute.py
+++ b/fuel_health/tests/sanity/test_sanity_compute.py
@@ -12,12 +12,8 @@
12# License for the specific language governing permissions and limitations 12# License for the specific language governing permissions and limitations
13# under the License. 13# under the License.
14 14
15import logging
16
17from fuel_health import nmanager 15from fuel_health import nmanager
18 16
19LOG = logging.getLogger(__name__)
20
21 17
22class SanityComputeTest(nmanager.SanityChecksTest): 18class SanityComputeTest(nmanager.SanityChecksTest):
23 """TestClass contains tests that check basic Compute functionality.""" 19 """TestClass contains tests that check basic Compute functionality."""
diff --git a/fuel_health/tests/sanity/test_sanity_glance.py b/fuel_health/tests/sanity/test_sanity_glance.py
index def2509..dea77e1 100644
--- a/fuel_health/tests/sanity/test_sanity_glance.py
+++ b/fuel_health/tests/sanity/test_sanity_glance.py
@@ -12,12 +12,8 @@
12# License for the specific language governing permissions and limitations 12# License for the specific language governing permissions and limitations
13# under the License. 13# under the License.
14 14
15import logging
16
17from fuel_health import glancemanager 15from fuel_health import glancemanager
18 16
19LOG = logging.getLogger(__name__)
20
21 17
22class GlanceSanityTests(glancemanager.GlanceTest): 18class GlanceSanityTests(glancemanager.GlanceTest):
23 """GlanceSanityTests contains verifications of basic Glance functionality. 19 """GlanceSanityTests contains verifications of basic Glance functionality.
diff --git a/fuel_health/tests/sanity/test_sanity_heat.py b/fuel_health/tests/sanity/test_sanity_heat.py
index 9afcb16..82f4d8b 100644
--- a/fuel_health/tests/sanity/test_sanity_heat.py
+++ b/fuel_health/tests/sanity/test_sanity_heat.py
@@ -14,12 +14,8 @@
14# License for the specific language governing permissions and limitations 14# License for the specific language governing permissions and limitations
15# under the License. 15# under the License.
16 16
17import logging
18
19from fuel_health import nmanager 17from fuel_health import nmanager
20 18
21LOG = logging.getLogger(__name__)
22
23 19
24class SanityHeatTest(nmanager.SanityChecksTest): 20class SanityHeatTest(nmanager.SanityChecksTest):
25 """Class contains tests that check basic Heat functionality. 21 """Class contains tests that check basic Heat functionality.
diff --git a/fuel_health/tests/sanity/test_sanity_identity.py b/fuel_health/tests/sanity/test_sanity_identity.py
index c0dc18d..94262a3 100644
--- a/fuel_health/tests/sanity/test_sanity_identity.py
+++ b/fuel_health/tests/sanity/test_sanity_identity.py
@@ -14,12 +14,8 @@
14# License for the specific language governing permissions and limitations 14# License for the specific language governing permissions and limitations
15# under the License. 15# under the License.
16 16
17import logging
18
19from fuel_health import nmanager 17from fuel_health import nmanager
20 18
21LOG = logging.getLogger(__name__)
22
23 19
24class SanityIdentityTest(nmanager.SanityChecksTest): 20class SanityIdentityTest(nmanager.SanityChecksTest):
25 """TestClass contains tests that check basic authentication functionality. 21 """TestClass contains tests that check basic authentication functionality.
diff --git a/fuel_health/tests/sanity/test_sanity_networking.py b/fuel_health/tests/sanity/test_sanity_networking.py
index e748fa5..751bfae 100644
--- a/fuel_health/tests/sanity/test_sanity_networking.py
+++ b/fuel_health/tests/sanity/test_sanity_networking.py
@@ -14,12 +14,8 @@
14# License for the specific language governing permissions and limitations 14# License for the specific language governing permissions and limitations
15# under the License. 15# under the License.
16 16
17import logging
18
19from fuel_health import nmanager 17from fuel_health import nmanager
20 18
21LOG = logging.getLogger(__name__)
22
23 19
24class NetworksTest(nmanager.SanityChecksTest): 20class NetworksTest(nmanager.SanityChecksTest):
25 """TestClass contains tests check base networking functionality.""" 21 """TestClass contains tests check base networking functionality."""
diff --git a/fuel_health/tests/smoke/test_create_flavor.py b/fuel_health/tests/smoke/test_create_flavor.py
index 7818131..8af049e 100644
--- a/fuel_health/tests/smoke/test_create_flavor.py
+++ b/fuel_health/tests/smoke/test_create_flavor.py
@@ -14,14 +14,9 @@
14# License for the specific language governing permissions and limitations 14# License for the specific language governing permissions and limitations
15# under the License. 15# under the License.
16 16
17import logging
18
19from fuel_health import nmanager 17from fuel_health import nmanager
20 18
21 19
22LOG = logging.getLogger(__name__)
23
24
25class FlavorsAdminTest(nmanager.SmokeChecksTest): 20class FlavorsAdminTest(nmanager.SmokeChecksTest):
26 """Tests for flavor creation that require admin privileges.""" 21 """Tests for flavor creation that require admin privileges."""
27 22
diff --git a/fuel_health/tests/tests_platform/test_heat.py b/fuel_health/tests/tests_platform/test_heat.py
index 78ddd93..a2fec37 100644
--- a/fuel_health/tests/tests_platform/test_heat.py
+++ b/fuel_health/tests/tests_platform/test_heat.py
@@ -12,14 +12,9 @@
12# License for the specific language governing permissions and limitations 12# License for the specific language governing permissions and limitations
13# under the License. 13# under the License.
14 14
15import logging
16
17from fuel_health import heatmanager 15from fuel_health import heatmanager
18 16
19 17
20LOG = logging.getLogger(__name__)
21
22
23class HeatSmokeTests(heatmanager.HeatBaseTest): 18class HeatSmokeTests(heatmanager.HeatBaseTest):
24 """Test class verifies Heat API calls, rollback and 19 """Test class verifies Heat API calls, rollback and
25 autoscaling use-cases. 20 autoscaling use-cases.
diff --git a/fuel_plugin/ostf_adapter/nailgun_hooks.py b/fuel_plugin/ostf_adapter/nailgun_hooks.py
index 7995a96..c271421 100644
--- a/fuel_plugin/ostf_adapter/nailgun_hooks.py
+++ b/fuel_plugin/ostf_adapter/nailgun_hooks.py
@@ -13,7 +13,6 @@
13# under the License. 13# under the License.
14 14
15from distutils import version 15from distutils import version
16import logging
17 16
18from sqlalchemy import create_engine 17from sqlalchemy import create_engine
19from sqlalchemy.engine import reflection 18from sqlalchemy.engine import reflection
@@ -24,8 +23,6 @@ from sqlalchemy import schema
24 23
25from fuel_plugin.ostf_adapter.storage import alembic_cli 24from fuel_plugin.ostf_adapter.storage import alembic_cli
26 25
27LOG = logging.getLogger(__name__)
28
29 26
30def _get_enums(conn): 27def _get_enums(conn):
31 """Return names for db types. 28 """Return names for db types.
diff --git a/fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py b/fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py
index 19d8312..559d5d4 100644
--- a/fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py
+++ b/fuel_plugin/ostf_adapter/nose_plugin/nose_utils.py
@@ -14,7 +14,6 @@
14 14
15from distutils import version 15from distutils import version
16import itertools 16import itertools
17import logging
18import multiprocessing 17import multiprocessing
19import os 18import os
20import re 19import re
@@ -28,8 +27,6 @@ try:
28except ImportError: 27except ImportError:
29 from oslo_serialization import jsonutils 28 from oslo_serialization import jsonutils
30 29
31LOG = logging.getLogger(__name__)
32
33 30
34def parse_json_file(file_path): 31def parse_json_file(file_path):
35 current_directory = os.path.dirname(os.path.realpath(__file__)) 32 current_directory = os.path.dirname(os.path.realpath(__file__))
diff --git a/fuel_plugin/ostf_adapter/wsgi/controllers.py b/fuel_plugin/ostf_adapter/wsgi/controllers.py
index b9cf5f7..70fcec6 100644
--- a/fuel_plugin/ostf_adapter/wsgi/controllers.py
+++ b/fuel_plugin/ostf_adapter/wsgi/controllers.py
@@ -12,8 +12,6 @@
12# License for the specific language governing permissions and limitations 12# License for the specific language governing permissions and limitations
13# under the License. 13# under the License.
14 14
15import logging
16
17try: 15try:
18 from oslo.config import cfg 16 from oslo.config import cfg
19except ImportError: 17except ImportError:
@@ -34,9 +32,6 @@ from fuel_plugin.ostf_adapter import mixins
34from fuel_plugin.ostf_adapter.storage import models 32from fuel_plugin.ostf_adapter.storage import models
35 33
36 34
37LOG = logging.getLogger(__name__)
38
39
40class BaseRestController(rest.RestController): 35class BaseRestController(rest.RestController):
41 def _handle_get(self, method, remainder, request=None): 36 def _handle_get(self, method, remainder, request=None):
42 if len(remainder): 37 if len(remainder):