Files
fuel-qa/fuelweb_test/tests/test_ha_one_controller_base.py
asledzinskiy c7cc8338a5 Refactor nova tests to use neutron
- Changed test_ha_one_controller_base to
use neutron
- Changed test_ha_one_controller to use neutron
- deploy_ha_one_controller_vlan test was deleted as
duplicate of deploy_ha_one_controller_neutron

Change-Id: Iff4fe9ce5876f8dd769873189c5c294c7a6c29fd
Closes-Bug: #1478915
2015-08-04 15:20:07 +03:00

60 lines
2.1 KiB
Python

# Copyright 2015 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.helpers import os_actions
from fuelweb_test.settings import DEPLOYMENT_MODE
from fuelweb_test.settings import NEUTRON_SEGMENT_TYPE
from fuelweb_test.tests.base_test_case import TestBasic
class HAOneControllerNeutronBase(TestBasic):
def deploy_ha_one_controller_neutron_base(self):
self.env.revert_snapshot("ready_with_3_slaves")
data = {
'tenant': 'neutronOneController',
'user': 'neutronOneController',
'password': 'neutronOneController',
"net_provider": 'neutron',
"net_segment_type": NEUTRON_SEGMENT_TYPE
}
cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__,
mode=DEPLOYMENT_MODE,
settings=data
)
self.fuel_web.update_nodes(
cluster_id,
{
'slave-01': ['controller'],
'slave-02': ['compute']
}
)
self.fuel_web.deploy_cluster_wait(cluster_id)
os_conn = os_actions.OpenStackActions(
self.fuel_web.get_public_vip(cluster_id),
data['user'], data['password'], data['tenant'])
self.fuel_web.assert_cluster_ready(os_conn, smiles_count=5,
networks_count=2, timeout=300)
self.fuel_web.verify_network(cluster_id)
self.fuel_web.run_ostf(
cluster_id=cluster_id)
self.env.make_snapshot("deploy_ha_one_controller_neutron",
is_make=True)