Modify bvt test

* mark as comments iptables rules in system_test.sh
* Correct scenario for bvt test

Change-Id: I32ceeb0e0d606f11587edb5aab288fe6578b0681
This commit is contained in:
Oleksandr Kosse 2016-08-30 15:55:04 +03:00 committed by okosse
parent 7c1551dd93
commit bc6975ccd5
2 changed files with 23 additions and 33 deletions

View File

@ -14,7 +14,6 @@
"""Module with set of basic test cases.""" """Module with set of basic test cases."""
from proboscis.asserts import assert_equal
from proboscis import test from proboscis import test
from fuelweb_test.helpers.decorators import log_snapshot_after_test from fuelweb_test.helpers.decorators import log_snapshot_after_test
@ -89,32 +88,29 @@ class GcsTestClass(GcsTestBase):
"""Deploy HA cluster with GCS plugin installed and enabled. """Deploy HA cluster with GCS plugin installed and enabled.
Scenario: Scenario:
1. Create cluster 1. Install GCS plugin
2. Add 3 node with controller role 2. Create an environment
3. Add 1 node with compute role 3. Add 3 nodes with controller role
4. Add 1 node with cinder role 4. Add a node with compute role
5. Install GCS plugin 5. Add a node with cinder role
6. Deploy the cluster 6. Configure GCS plugin
7. Run network verification 7. Deploy the cluster
8. Run OSTF 8. Run OSTF
9. Verify GCS plugin
""" """
self.env.revert_snapshot("ready_with_5_slaves") self.env.revert_snapshot("ready_with_5_slaves")
logger.info('Creating GCS HA cluster...') self.show_step(1)
segment_type = 'vlan' self.install_plugin()
self.show_step(2)
cluster_id = self.fuel_web.create_cluster( cluster_id = self.fuel_web.create_cluster(
name=self.__class__.__name__, name=self.__class__.__name__,
mode=DEPLOYMENT_MODE, mode=DEPLOYMENT_MODE)
settings={
"net_provider": 'neutron',
"net_segment_type": segment_type,
'tenant': gcs_settings.default_tenant,
'user': gcs_settings.default_user,
'password': gcs_settings.default_user_pass,
'assign_to_all_nodes': True
}
)
self.show_step(3)
self.show_step(4)
self.show_step(5)
self.fuel_web.update_nodes( self.fuel_web.update_nodes(
cluster_id, cluster_id,
{ {
@ -126,25 +122,19 @@ class GcsTestClass(GcsTestBase):
} }
) )
self.install_plugin() self.show_step(6)
self.fuel_web.update_plugin_settings(cluster_id, self.fuel_web.update_plugin_settings(cluster_id,
gcs_settings.plugin_name, gcs_settings.plugin_name,
gcs_settings.plugin_version, gcs_settings.plugin_version,
gcs_settings.options) gcs_settings.options)
cluster = self.fuel_web.client.get_cluster(cluster_id) self.show_step(7)
assert_equal(str(cluster['net_provider']), 'neutron')
self.fuel_web.verify_network(cluster_id)
self.fuel_web.deploy_cluster_wait( self.fuel_web.deploy_cluster_wait(
cluster_id, cluster_id,
check_services=False check_services=False
) )
self.fuel_web.security.verify_firewall(cluster_id) self.show_step(8)
self.fuel_web.run_ostf( self.fuel_web.run_ostf(
cluster_id=cluster_id, cluster_id=cluster_id,
test_sets=['smoke', 'sanity', 'ha', 'tests_platform', test_sets=['smoke', 'sanity', 'ha'])
'cloudvalidation'])
self.env.make_snapshot("gcs_bvt")

View File

@ -33,9 +33,9 @@ if [ -z "$SLAVE_NODE_CPU" ]; then export SLAVE_NODE_CPU=4; fi
# Init and update submodule # Init and update submodule
git submodule update --init --recursive --remote git submodule update --init --recursive --remote
sudo /sbin/iptables -F #sudo /sbin/iptables -F
sudo /sbin/iptables -t nat -F #sudo /sbin/iptables -t nat -F
sudo /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #sudo /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ShowHelp() { ShowHelp() {