fuel-qa/system_test/tests/base.py
Dmitriy Kruglov 4289bee5de Fix fuel master node migration test
- Move assigned_slaves attribute from class scope of BaseActions
class to instance scope of ActionTest class. This is to have this
attribute reset before each template based test of the same run
(otherwise it brings slave info from the 1st test to 2nd and so on).
- Add waiting for cluster nodes to be online after migration.

Change-Id: Ie6e6df4932603e84f66023c6843d58a0d9470f68
Partial-Bug: #1559050
(cherry picked from commit ac04cb9c94)
2016-04-22 09:46:49 +00:00

26 lines
982 B
Python

# Copyright 2016 Mirantis, Inc.
#
# 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 fuelweb_test.tests import base_test_case
from system_test.core import ActionsFactory
class ActionTest(base_test_case.TestBasic, ActionsFactory):
"""ActionTest is TestBasic wraper for system tests"""
def __init__(self, config_file=None):
super(ActionTest, self).__init__()
self.config_file = config_file
self.assigned_slaves = set()