Commit 5d6104ab authored by Waleed Akbar's avatar Waleed Akbar
Browse files

feat: Update test_zsm_failure_notification.py to improve topology check logging

parent 40fe7ad2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -56,8 +56,9 @@ def test_01_ensure_topology(context_client, device_client):
    log and skip. Otherwise reload from scratch."""
    LOGGER.info(' >>> test_01_ensure_topology START: <<< ')

    LOGGER.info('Skipping test Intentionally ... ')
    return
    # INFO: If topology exists, you can comment out the entire function body.
    # LOGGER.info('Skipping test Intentionally ... ')
    # return

    context_exists   = get_context(context_client, _CONTEXT_UUID) is not None
    topology_exists  = get_topology(context_client, _TOPOLOGY_UUID, context_uuid=_CONTEXT_UUID) is not None
@@ -154,6 +155,7 @@ def test_04_zsm_create_with_failure_notification(
        assert response.serviceId.service_uuid.uuid == target_service.service_id.service_uuid.uuid
        LOGGER.info(' >>> test_04_zsm_create_with_failure_notification PASSED <<< ')
    finally:
        # DO NOT add in actual integration: It is only for cleanup in tests.
        try:
            policy_client = PolicyClient()
            policy_client.PolicyDelete(policy_rule_id)