Rename core fixtures to match the drivetrain component names
The following changes:
common_services_deployed -> core_deployed
sl_deployed -> stacklight_deployed
Change-Id: I6e505d2ef96053b19b2d43b0214f5a30f71ae8ea
diff --git a/tcp_tests/tests/component/conftest.py b/tcp_tests/tests/component/conftest.py
index d16387d..f33b1b4 100644
--- a/tcp_tests/tests/component/conftest.py
+++ b/tcp_tests/tests/component/conftest.py
@@ -18,7 +18,7 @@
from tcp_tests.fixtures.underlay_fixtures import * # noqa
from tcp_tests.fixtures.rally_fixtures import * # noqa
from tcp_tests.fixtures.salt_fixtures import * # noqa
-from tcp_tests.fixtures.common_services_fixtures import * # noqa
+from tcp_tests.fixtures.core_fixtures import * # noqa
from tcp_tests.fixtures.openstack_fixtures import * # noqa
from tcp_tests.fixtures.opencontrail_fixtures import * # noqa
from tcp_tests.fixtures.oss_fixtures import * # noqa
@@ -39,8 +39,8 @@
'rally',
# salt_fixtures
'salt_actions',
- # common_services_fixtures
- 'common_services_actions',
+ # core_fixtures
+ 'core_actions',
# openstack_fixtures
'openstack_actions',
# oss_fixtures
diff --git a/tcp_tests/tests/environment/conftest.py b/tcp_tests/tests/environment/conftest.py
index 47ca68a..a1db84c 100644
--- a/tcp_tests/tests/environment/conftest.py
+++ b/tcp_tests/tests/environment/conftest.py
@@ -17,7 +17,7 @@
from tcp_tests.fixtures.underlay_fixtures import * # noqa
from tcp_tests.fixtures.rally_fixtures import * # noqa
from tcp_tests.fixtures.salt_fixtures import * # noqa
-from tcp_tests.fixtures.common_services_fixtures import * # noqa
+from tcp_tests.fixtures.core_fixtures import * # noqa
from tcp_tests.fixtures.openstack_fixtures import * # noqa
from tcp_tests.fixtures.opencontrail_fixtures import * # noqa
@@ -36,9 +36,9 @@
# salt_fixtures
'salt_actions',
'salt_deployed',
- # common_services_fixtures
- 'common_services_actions',
- 'common_services_deployed',
+ # core_fixtures
+ 'core_actions',
+ 'core_deployed',
# openstack_fixtures
'openstack_actions',
'openstack_deployed',
diff --git a/tcp_tests/tests/system/conftest.py b/tcp_tests/tests/system/conftest.py
index 61dd8e2..0bd4232 100644
--- a/tcp_tests/tests/system/conftest.py
+++ b/tcp_tests/tests/system/conftest.py
@@ -18,7 +18,7 @@
from tcp_tests.fixtures.underlay_fixtures import * # noqa
from tcp_tests.fixtures.rally_fixtures import * # noqa
from tcp_tests.fixtures.salt_fixtures import * # noqa
-from tcp_tests.fixtures.common_services_fixtures import * # noqa
+from tcp_tests.fixtures.core_fixtures import * # noqa
from tcp_tests.fixtures.openstack_fixtures import * # noqa
from tcp_tests.fixtures.opencontrail_fixtures import * # noqa
from tcp_tests.fixtures.oss_fixtures import * # noqa
@@ -46,9 +46,9 @@
# salt_fixtures
'salt_actions',
'salt_deployed',
- # common_services_fixtures
- 'common_services_actions',
- 'common_services_deployed',
+ # core_fixtures
+ 'core_actions',
+ 'core_deployed',
# openstack_fixtures
'openstack_actions',
'openstack_deployed',
@@ -66,7 +66,7 @@
'opencontrail',
# stacklight_fixtures
'sl_actions',
- 'sl_deployed',
+ 'stacklight_deployed',
'sl_os_deployed',
'ceph_deployed',
'ceph_action',
diff --git a/tcp_tests/tests/system/test_failover_ceph.py b/tcp_tests/tests/system/test_failover_ceph.py
index 2f1bc25..934e28b 100644
--- a/tcp_tests/tests/system/test_failover_ceph.py
+++ b/tcp_tests/tests/system/test_failover_ceph.py
@@ -110,7 +110,7 @@
@pytest.mark.fail_snapshot
def test_restart_cmn_node(self, func_name, underlay, config,
openstack_deployed, ceph_deployed,
- common_services_actions,
+ core_actions,
salt_actions, openstack_actions,
rally, show_step, hardware):
"""Test restart ceph cmn node
@@ -177,7 +177,7 @@
@pytest.mark.fail_snapshot
def test_restart_rgw_node(self, func_name, underlay, config,
openstack_deployed, ceph_deployed,
- common_services_actions, hardware,
+ core_actions, hardware,
salt_actions, openstack_actions,
rally, show_step):
"""Test restart ceph rgw node
diff --git a/tcp_tests/tests/system/test_failover_k8s.py b/tcp_tests/tests/system/test_failover_k8s.py
index 1ad43b9..a334a42 100644
--- a/tcp_tests/tests/system/test_failover_k8s.py
+++ b/tcp_tests/tests/system/test_failover_k8s.py
@@ -24,7 +24,7 @@
@pytest.mark.grap_versions
@pytest.mark.fail_snapshot
def test_k8s_master_vip_migration(self, show_step, k8s_deployed, underlay,
- k8s_actions, common_services_actions,
+ k8s_actions, core_actions,
config, hardware):
"""Test restart and shutdown master with VIP
@@ -40,12 +40,12 @@
"""
show_step(1)
show_step(2)
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
show_step(3)
vip = k8s_actions.get_keepalived_vip()
LOG.info("VIP ip address: {}".format(vip))
- minion_vip = common_services_actions.get_keepalived_vip_minion_id(vip)
+ minion_vip = core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} is on {1}".format(vip, minion_vip))
show_step(4)
@@ -54,16 +54,16 @@
show_step(5)
try:
new_minion_vip =\
- common_services_actions.get_keepalived_vip_minion_id(vip)
+ core_actions.get_keepalived_vip_minion_id(vip)
except Exception:
time.sleep(15)
new_minion_vip = \
- common_services_actions.get_keepalived_vip_minion_id(vip)
+ core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} migrated to {1}".format(vip, new_minion_vip))
assert new_minion_vip != minion_vip
show_step(6)
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
show_step(7)
curl_output = ''.join(underlay.check_call(
diff --git a/tcp_tests/tests/system/test_failover_nodes.py b/tcp_tests/tests/system/test_failover_nodes.py
index 87a7de8..1f628c4 100644
--- a/tcp_tests/tests/system/test_failover_nodes.py
+++ b/tcp_tests/tests/system/test_failover_nodes.py
@@ -139,7 +139,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_restart_mon01_node(self, openstack_actions, hardware, underlay,
sl_os_deployed, show_step):
"""Test restart mon01
@@ -190,7 +190,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_warm_shutdown_mon01_node(self, underlay, hardware, sl_os_deployed,
openstack_actions, show_step):
"""Test warm shutdown mon01
@@ -237,10 +237,10 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_restart_mon_with_vip(self, underlay, hardware, sl_os_deployed,
openstack_actions, salt_actions,
- common_services_actions, show_step):
+ core_actions, show_step):
"""Test restart mon with VIP
Scenario:
@@ -256,7 +256,7 @@
"""
# TR case #4753939
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
salt = salt_actions
# STEP #1,2,3
@@ -280,7 +280,7 @@
tgt="mon0*",
pillar="_param:cluster_vip_address")[0]
vip = [vip for minion_id, vip in mon_vip_pillar.items()][0]
- minion_vip = common_services_actions.get_keepalived_vip_minion_id(vip)
+ minion_vip = core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} is on {1}".format(vip, minion_vip))
# STEP #6
@@ -290,13 +290,13 @@
# STEP #7
show_step(7)
# Check that VIP has been actually migrated to a new node
- new_minion_vip = common_services_actions.get_keepalived_vip_minion_id(
+ new_minion_vip = core_actions.get_keepalived_vip_minion_id(
vip)
LOG.info("Migrated VIP {0} is on {1}".format(vip, new_minion_vip))
assert new_minion_vip != minion_vip, (
"VIP {0} wasn't migrated from {1} after node reboot!"
.format(vip, new_minion_vip))
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
# STEP #8
show_step(8)
@@ -315,7 +315,7 @@
@pytest.mark.revert_snapshot(ext.SNAPSHOT.openstack_deployed)
def test_restart_ctl_with_vip(self, underlay, hardware, openstack_deployed,
openstack_actions, salt_actions,
- common_services_actions, show_step):
+ core_actions, show_step):
"""Test restart clt with VIP
Scenario:
@@ -330,7 +330,7 @@
"""
# TR case #3385671
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
salt = salt_actions
# STEP #1,2,3
@@ -344,7 +344,7 @@
tgt="I@nova:controller:enabled:True",
pillar="_param:cluster_vip_address")[0]
vip = [vip for minion_id, vip in ctl_vip_pillar.items()][0]
- minion_vip = common_services_actions.get_keepalived_vip_minion_id(vip)
+ minion_vip = core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} is on {1}".format(vip, minion_vip))
# STEP #5
@@ -354,13 +354,13 @@
# STEP #6
show_step(6)
# Check that VIP has been actually migrated to a new node
- new_minion_vip = common_services_actions.get_keepalived_vip_minion_id(
+ new_minion_vip = core_actions.get_keepalived_vip_minion_id(
vip)
LOG.info("Migrated VIP {0} is on {1}".format(vip, new_minion_vip))
assert new_minion_vip != minion_vip, (
"VIP {0} wasn't migrated from {1} after node reboot!"
.format(vip, new_minion_vip))
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
# STEP #7
show_step(7)
diff --git a/tcp_tests/tests/system/test_failover_openstack_services.py b/tcp_tests/tests/system/test_failover_openstack_services.py
index 08a928b..d06c2af 100644
--- a/tcp_tests/tests/system/test_failover_openstack_services.py
+++ b/tcp_tests/tests/system/test_failover_openstack_services.py
@@ -96,7 +96,7 @@
@pytest.mark.with_rally(rally_node="gtw01.", prepare_openstack=True)
def test_restart_keepalived(self, func_name, underlay, config,
openstack_deployed,
- common_services_actions,
+ core_actions,
salt_actions, openstack_actions,
rally, show_step):
"""Test restart keepalived on ctl* nodes
@@ -114,7 +114,7 @@
- OpenStack cluster
"""
# TR case #4756965
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
salt = salt_actions
ctl_node_names = underlay.get_target_node_names(
@@ -165,7 +165,7 @@
@pytest.mark.with_rally(rally_node="gtw01.", prepare_openstack=True)
def test_stop_keepalived(self, func_name, underlay, config,
openstack_deployed,
- common_services_actions,
+ core_actions,
salt_actions, openstack_actions,
rally, show_step):
"""Test stop keepalived on ctl node with VIP under load
@@ -184,7 +184,7 @@
- OpenStack cluster
"""
# TR case #3385682
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
salt = salt_actions
ctl_node_names = underlay.get_target_node_names(
@@ -201,7 +201,7 @@
tgt="I@nova:controller:enabled:True",
pillar="_param:cluster_vip_address")[0]
vip = [vip for minion_id, vip in ctl_vip_pillar.items()][0]
- minion_vip = common_services_actions.get_keepalived_vip_minion_id(vip)
+ minion_vip = core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} is on {1}".format(vip, minion_vip))
# STEP #2
@@ -252,7 +252,7 @@
@pytest.mark.with_rally(rally_node="gtw01.", prepare_openstack=True)
def test_kill_keepalived(self, func_name, underlay, config,
openstack_deployed,
- common_services_actions,
+ core_actions,
salt_actions, openstack_actions,
rally, show_step):
"""Test kill keepalived and haproxy on ctl node with VIP under load
@@ -283,7 +283,7 @@
- Salt cluster
- OpenStack cluster
"""
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
salt = salt_actions
ctl_node_names = underlay.get_target_node_names(
@@ -301,7 +301,7 @@
tgt="I@nova:controller:enabled:True",
pillar="_param:cluster_vip_address")[0]
vip = [vip for minion_id, vip in ctl_vip_pillar.items()][0]
- minion_vip = common_services_actions.get_keepalived_vip_minion_id(vip)
+ minion_vip = core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} is on {1}".format(vip, minion_vip))
# STEP #2
@@ -362,13 +362,13 @@
# STEP #6
show_step(6)
# Check that VIP has been actually migrated to a new node
- new_minion_vip = common_services_actions.get_keepalived_vip_minion_id(
+ new_minion_vip = core_actions.get_keepalived_vip_minion_id(
vip)
LOG.info("Migrated VIP {0} is on {1}".format(vip, new_minion_vip))
assert new_minion_vip != minion_vip, (
"VIP {0} wasn't migrated from {1} after killing keepalived!"
.format(vip, new_minion_vip))
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
# Haproxy case
# STEP #7
@@ -431,7 +431,7 @@
@pytest.mark.with_rally(rally_node="gtw01.", prepare_openstack=True)
def test_kill_rabbit_galera(self, func_name, underlay, config,
openstack_deployed,
- common_services_actions,
+ core_actions,
salt_actions, openstack_actions,
rally, show_step):
"""Test kill rabbitmq and galera on ctl node with VIP under load
@@ -455,7 +455,7 @@
- Salt cluster
- OpenStack cluster
"""
- common_services_actions.check_keepalived_pillar()
+ core_actions.check_keepalived_pillar()
salt = salt_actions
ctl_node_names = underlay.get_target_node_names(
@@ -476,7 +476,7 @@
pillar="_param:cluster_vip_address")[0]
vip = [vip for minion_id, vip in ctl_vip_pillar.items()][0]
ctl_minions = ctl_vip_pillar.keys()
- minion_vip = common_services_actions.get_keepalived_vip_minion_id(vip)
+ minion_vip = core_actions.get_keepalived_vip_minion_id(vip)
LOG.info("VIP {0} is on {1}".format(vip, minion_vip))
# STEP #2
@@ -533,7 +533,7 @@
# Check haproxy status on the node with VIP and find the mysql backend
# which is receiving the connections
- haproxy_status = common_services_actions.get_haproxy_status(minion_vip)
+ haproxy_status = core_actions.get_haproxy_status(minion_vip)
mysql_status = haproxy_status['mysql_cluster']
mysql_tgt = ''
scur = 0
diff --git a/tcp_tests/tests/system/test_failover_stacklight_services.py b/tcp_tests/tests/system/test_failover_stacklight_services.py
index 3bb47eb..4f4381f 100644
--- a/tcp_tests/tests/system/test_failover_stacklight_services.py
+++ b/tcp_tests/tests/system/test_failover_stacklight_services.py
@@ -24,10 +24,11 @@
"""Test class for testing OpenStack nodes failover"""
@staticmethod
- def check_influxdb_xfail(sl_deployed, node_name, value):
+ def check_influxdb_xfail(stacklight_deployed, node_name, value):
def check_influxdb_data():
- return value in sl_deployed.check_data_in_influxdb(node_name)
+ return value in stacklight_deployed.check_data_in_influxdb(
+ node_name)
try:
helpers.wait(
@@ -43,7 +44,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_kill_influxdb_relay_mon01_node(self, sl_os_deployed,
show_step):
"""Test kill influxdb relay on mon01 node
@@ -111,7 +112,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_kill_influxdb_mon01_node(self, sl_os_deployed, show_step):
"""Test kill influxdb on mon01 node
@@ -177,7 +178,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_stop_influxdb_relay_mon_nodes(self, sl_os_deployed,
show_step):
"""Test stop influxdb relay on mon01 node
@@ -246,7 +247,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
- @pytest.mark.revert_snapshot(ext.SNAPSHOT.sl_deployed)
+ @pytest.mark.revert_snapshot(ext.SNAPSHOT.stacklight_deployed)
def test_stop_influxdb_mon_nodes(self, sl_os_deployed, show_step):
"""Test stop influxdb on mon01 node
diff --git a/tcp_tests/tests/system/test_install_cookied_ocata.py b/tcp_tests/tests/system/test_install_cookied_ocata.py
index a6d2313..7aa41b2 100644
--- a/tcp_tests/tests/system/test_install_cookied_ocata.py
+++ b/tcp_tests/tests/system/test_install_cookied_ocata.py
@@ -60,7 +60,7 @@
@pytest.mark.fail_snapshot
def test_cookied_ocata_cicd_oss_install(self, underlay, salt_actions,
openstack_deployed,
- oss_deployed, sl_deployed,
+ oss_deployed, stacklight_deployed,
show_step):
"""Test for deploying an mcp environment and check it
Scenario:
@@ -87,7 +87,7 @@
'monitoring_remote_collector',
'monitoring_pushgateway']
show_step(6)
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
show_step(7)
@@ -98,14 +98,15 @@
# InfluxDB is used if prometheus relay service is not installed
expected_service_list.append('monitoring_remote_storage_adapter')
- sl_deployed.check_docker_services(mon_nodes, expected_service_list)
+ stacklight_deployed.check_docker_services(mon_nodes,
+ expected_service_list)
show_step(8)
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
show_step(9)
# Run SL component tetsts
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
@@ -113,7 +114,7 @@
show_step(10)
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
diff --git a/tcp_tests/tests/system/test_install_k8s.py b/tcp_tests/tests/system/test_install_k8s.py
index f19aeb0..ec90863 100644
--- a/tcp_tests/tests/system/test_install_k8s.py
+++ b/tcp_tests/tests/system/test_install_k8s.py
@@ -30,7 +30,7 @@
@pytest.mark.k8s_calico_sl
def test_k8s_install_calico_lma(self, config, show_step,
k8s_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying MCP with k8s+stacklight_calico and check it
Scenario:
@@ -49,7 +49,7 @@
"""
# STEP #5
# k8s_actions = k8s_deployed
- sl_actions = sl_deployed
+ sl_actions = stacklight_deployed
show_step(5)
k8sclient = k8s_deployed.api
assert k8sclient.nodes.list() is not None, "Can not get nodes list"
@@ -87,7 +87,7 @@
'Mandotory metric {0} is missing in {1}'.format(
metric, res.text)
- prometheus_client = sl_deployed.api
+ prometheus_client = stacklight_deployed.api
try:
current_targets = prometheus_client.get_targets()
LOG.debug('Current targets after install {0}'
@@ -114,14 +114,14 @@
# with acceptance criteria
show_step(10)
# Run SL component tests
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
@@ -131,7 +131,7 @@
@pytest.mark.cz8115
def test_k8s_install_contrail_lma(self, config, show_step,
k8s_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying MCP with k8s+stacklight+contrail and check it
Scenario:
@@ -145,13 +145,13 @@
"""
k8s_actions = k8s_deployed
- sl_actions = sl_deployed
+ sl_actions = stacklight_deployed
# STEP #5
show_step(5)
k8sclient = k8s_deployed.api
assert k8sclient.nodes.list() is not None, "Can not get nodes list"
- prometheus_client = sl_deployed.api
+ prometheus_client = stacklight_deployed.api
try:
current_targets = prometheus_client.get_targets()
LOG.debug('Current targets after install {0}'
@@ -167,20 +167,20 @@
current_targets = prometheus_client.get_targets()
LOG.debug('Current targets after install {0}'
.format(current_targets))
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
show_step(6)
# Run SL component tests
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
index 9579139..4f78c0d 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
@@ -52,7 +52,7 @@
@pytest.mark.cz8119
def test_mcp11_ocata_ovs_sl_install(self, underlay, config,
openstack_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying an mcp environment and check it
Scenario:
1. Prepare salt on hosts
@@ -64,20 +64,20 @@
7. Run SL component tests
8. Download SL component tests report
"""
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
# Run SL component tetsts
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
@@ -110,7 +110,7 @@
@pytest.mark.cz8120
def test_mcp11_ocata_dvr_sl_install(self, underlay, config,
openstack_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying an mcp environment and check it
Scenario:
1. Prepare salt on hosts
@@ -123,20 +123,20 @@
8. Download SL component tests report
"""
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
# Run SL component tests
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
diff --git a/tcp_tests/tests/system/test_install_mcp_ovs_pike.py b/tcp_tests/tests/system/test_install_mcp_ovs_pike.py
index d21eca7..eca7a20 100644
--- a/tcp_tests/tests/system/test_install_mcp_ovs_pike.py
+++ b/tcp_tests/tests/system/test_install_mcp_ovs_pike.py
@@ -52,7 +52,7 @@
@pytest.mark.pike_ovs_sl
def test_mcp_pike_ovs_sl_install(self, underlay, config,
openstack_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying an mcp environment and check it
Scenario:
1. Prepare salt on hosts
@@ -64,20 +64,20 @@
7. Run SL component tests
8. Download SL component tests report
"""
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
# Run SL component tetsts
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
@@ -110,7 +110,7 @@
@pytest.mark.pike_ovs_dvr_sl
def test_mcp_pike_dvr_sl_install(self, underlay, config,
openstack_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying an mcp environment and check it
Scenario:
1. Prepare salt on hosts
@@ -123,20 +123,20 @@
8. Download SL component tests report
"""
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
# Run SL component tests
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
@@ -167,7 +167,7 @@
def test_mcp_pike_cookied_ovs_install(self, underlay,
openstack_deployed,
openstack_actions,
- sl_deployed,
+ stacklight_deployed,
tempest_actions):
"""Test for deploying an mcp environment and check it
Scenario:
@@ -192,7 +192,7 @@
underlay,
openstack_deployed,
openstack_actions,
- sl_deployed,
+ stacklight_deployed,
tempest_actions):
"""Test for deploying an mcp environment and check it
Scenario:
diff --git a/tcp_tests/tests/system/test_install_mcp_sl_os.py b/tcp_tests/tests/system/test_install_mcp_sl_os.py
index d416875..6e5452c 100644
--- a/tcp_tests/tests/system/test_install_mcp_sl_os.py
+++ b/tcp_tests/tests/system/test_install_mcp_sl_os.py
@@ -48,7 +48,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_mcp_sl_os_install(self, underlay, config, openstack_deployed,
- sl_deployed, openstack_actions):
+ stacklight_deployed, openstack_actions):
"""Test for deploying an mcp environment and check it
Scenario:
1. Prepare salt on hosts
@@ -60,20 +60,20 @@
7. Run SL component tests
8. Download SL component tests report
"""
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
# Run SL component tetsts
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
diff --git a/tcp_tests/tests/system/test_install_mcp_trusty.py b/tcp_tests/tests/system/test_install_mcp_trusty.py
index 8c91faa..c86c79c 100644
--- a/tcp_tests/tests/system/test_install_mcp_trusty.py
+++ b/tcp_tests/tests/system/test_install_mcp_trusty.py
@@ -49,7 +49,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_mcp_trusty_sl_os_install(self, underlay, config,
- openstack_deployed, sl_deployed,
+ openstack_deployed, stacklight_deployed,
openstack_actions):
"""Test for deploying an mcp environment and check it
Scenario:
@@ -62,20 +62,20 @@
7. Run SL component tests
8. Download SL component tests report
"""
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
- sl_deployed.check_prometheus_targets(mon_nodes)
+ stacklight_deployed.check_prometheus_targets(mon_nodes)
# Run SL component tetsts
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
diff --git a/tcp_tests/tests/system/test_install_opencontrail.py b/tcp_tests/tests/system/test_install_opencontrail.py
index 74b5d2b..efc37c8 100644
--- a/tcp_tests/tests/system/test_install_opencontrail.py
+++ b/tcp_tests/tests/system/test_install_opencontrail.py
@@ -27,7 +27,8 @@
@pytest.mark.fail_snapshot
@pytest.mark.with_rally(rally_node="ctl01.")
def test_opencontrail_simple(self, config, underlay, salt_deployed,
- openstack_deployed, sl_deployed, show_step):
+ openstack_deployed, stacklight_deployed,
+ show_step):
"""Runner for Juniper contrail-tests
Scenario:
@@ -50,14 +51,14 @@
# Run SL component tetsts
if settings.RUN_SL_TESTS:
show_step(5)
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'ctl01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
show_step(8)
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'ctl01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")
@@ -65,7 +66,8 @@
@pytest.mark.fail_snapshot
@pytest.mark.with_rally(rally_node="ctl01.")
def test_opencontrail3_maas(self, config, underlay, salt_actions,
- openstack_deployed, show_step, sl_deployed):
+ openstack_deployed, show_step,
+ stacklight_deployed):
"""Runner for Juniper contrail-tests
Scenario:
@@ -94,7 +96,7 @@
'monitoring_alertmanager',
'monitoring_remote_collector',
'monitoring_pushgateway']
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
prometheus_relay_enabled = salt_actions.get_pillar(
@@ -104,18 +106,19 @@
# InfluxDB is used if prometheus relay service is not installed
expected_service_list.append('monitoring_remote_storage_adapter')
show_step(6)
- sl_deployed.check_docker_services(mon_nodes, expected_service_list)
+ stacklight_deployed.check_docker_services(mon_nodes,
+ expected_service_list)
# Run SL component tetsts
if settings.RUN_SL_TESTS:
show_step(7)
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'ctl01',
'/root/stacklight-pytest/stacklight_tests/',
'tests/prometheus',
'test_alerts.py')
show_step(8)
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'ctl01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
diff --git a/tcp_tests/tests/system/test_offline.py b/tcp_tests/tests/system/test_offline.py
index 83f3766..44b82f0 100644
--- a/tcp_tests/tests/system/test_offline.py
+++ b/tcp_tests/tests/system/test_offline.py
@@ -162,7 +162,7 @@
LOG.info("*************** DONE **************")
def test_deploy_day1(self, show_step, config, underlay, hardware,
- common_services_deployed, salt_deployed):
+ core_deployed, salt_deployed):
"""Test for deploying an mcp from day01 images
Scenario:
diff --git a/tcp_tests/tests/system/test_oss_install.py b/tcp_tests/tests/system/test_oss_install.py
index f62f1c8..15bdf3e 100644
--- a/tcp_tests/tests/system/test_oss_install.py
+++ b/tcp_tests/tests/system/test_oss_install.py
@@ -26,7 +26,7 @@
@pytest.mark.fail_snapshot
def test_oss_install_default(self, underlay, show_step,
oss_deployed, openstack_deployed,
- sl_deployed):
+ stacklight_deployed):
"""Test for deploying an OSS environment and check it
Scenario:
diff --git a/tcp_tests/tests/system/test_pipeline_deploy.py b/tcp_tests/tests/system/test_pipeline_deploy.py
index 1d2e79f..c98db38 100644
--- a/tcp_tests/tests/system/test_pipeline_deploy.py
+++ b/tcp_tests/tests/system/test_pipeline_deploy.py
@@ -27,7 +27,7 @@
@pytest.mark.fail_snapshot
def test_pipeline(self, show_step, underlay,
- common_services_deployed, salt_deployed):
+ core_deployed, salt_deployed):
"""Runner for Juniper contrail-tests
Scenario:
diff --git a/tcp_tests/tests/system/test_upgrade_stacklight.py b/tcp_tests/tests/system/test_upgrade_stacklight.py
index e946185..afad0c8 100644
--- a/tcp_tests/tests/system/test_upgrade_stacklight.py
+++ b/tcp_tests/tests/system/test_upgrade_stacklight.py
@@ -25,7 +25,7 @@
@pytest.mark.grab_versions
@pytest.mark.fail_snapshot
def test_upgrade_stacklight(self, underlay, config,
- hardware, sl_actions, sl_deployed):
+ hardware, sl_actions, stacklight_deployed):
"""Runner
Scenario:
@@ -42,19 +42,19 @@
sl_actions.install(commands, label='Upgrade SL services')
hardware.create_snapshot(name='sl_v1_upgraded')
- mon_nodes = sl_deployed.get_monitoring_nodes()
+ mon_nodes = stacklight_deployed.get_monitoring_nodes()
LOG.debug('Mon nodes list {0}'.format(mon_nodes))
# Run SL component tetsts
- sl_deployed.run_sl_functional_tests(
+ stacklight_deployed.run_sl_functional_tests(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/',
'tests',
'tests/prometheus')
# Download report
- sl_deployed.download_sl_test_report(
+ stacklight_deployed.download_sl_test_report(
'cfg01',
'/root/stacklight-pytest/stacklight_tests/report.xml')
LOG.info("*************** DONE **************")