Add test to import all upgrade handlers, fix octane.handlers

Change-Id: Ib77478cd47fad5fd965c8c12f514fa378983cc58
This commit is contained in:
Yuriy Taraday 2015-08-27 12:32:05 +03:00
parent 70ec638ecd
commit a9e818a64c
2 changed files with 18 additions and 3 deletions

View File

@ -19,12 +19,10 @@ LOG = logging.getLogger(__name__)
class _GetNodesHandlersFactory(object):
_extension_manager = None
def __init__(self, name):
self.name = name
def on_load_failure_callback(self, endpoint, exc):
def on_load_failure_callback(self, manager, endpoint, exc):
LOG.error('Failed to load %s: %s', endpoint.name, exc)
raise # Avoid unexpectedly skipped steps

View File

@ -0,0 +1,17 @@
# 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.
from octane.handlers import upgrade
def test_upgrade_handlers_import():
upgrade.get_nodes_handlers.extensions