Update error messages in sanity tests
Update error messages throughout sanity tests
to use the same (or similar) format of error message.
Change-Id: I4db0517a5b264151ddaa6ea2c2a04d37e139944e
Related-PROD: #PROD-32415
diff --git a/test_set/cvp-sanity/tests/test_contrail.py b/test_set/cvp-sanity/tests/test_contrail.py
index 7d153d4..01142b8 100644
--- a/test_set/cvp-sanity/tests/test_contrail.py
+++ b/test_set/cvp-sanity/tests/test_contrail.py
@@ -35,9 +35,10 @@
node=node, service=name, status=status)
broken_services.append(err_msg)
- assert not broken_services, 'Broken services: {}'.format(json.dumps(
- broken_services,
- indent=4))
+ assert not broken_services, (
+ 'Some Contrail services are in wrong state on computes: {}'.format(
+ json.dumps(broken_services, indent=4))
+ )
@pytest.mark.smoke
def test_contrail_node_status(local_salt_client, check_openstack):
@@ -65,9 +66,10 @@
node=node, service=name, status=status)
broken_services.append(err_msg)
- assert not broken_services, 'Broken services: {}'.format(json.dumps(
- broken_services,
- indent=4))
+ assert not broken_services, (
+ 'Some Contrail services are in wrong state on Contrail controllers: '
+ '{}'.format(json.dumps(broken_services, indent=4))
+ )
@pytest.mark.smoke
def test_contrail_vrouter_count(local_salt_client, check_openstack):