From 9a928f3dc48db8f826eef4c2c1fccea6034513c7 Mon Sep 17 00:00:00 2001 From: Mohammad Torkashvand <mohammad.torkashvand@geant.org> Date: Tue, 1 Apr 2025 10:03:29 +0200 Subject: [PATCH] add more asssert for L3 tests --- .../l3_core_service/test_create_imported_l3_core_service.py | 2 ++ test/workflows/l3_core_service/test_create_l3_core_service.py | 1 + 2 files changed, 3 insertions(+) diff --git a/test/workflows/l3_core_service/test_create_imported_l3_core_service.py b/test/workflows/l3_core_service/test_create_imported_l3_core_service.py index b1190f4a3..1798c3103 100644 --- a/test/workflows/l3_core_service/test_create_imported_l3_core_service.py +++ b/test/workflows/l3_core_service/test_create_imported_l3_core_service.py @@ -7,6 +7,7 @@ from gso.products.product_blocks.bgp_session import IPFamily from gso.products.product_blocks.ias import IASFlavor from gso.utils.shared_enums import SBPType from gso.workflows.l3_core_service.shared import L3_CREAT_IMPORTED_WF_MAP, L3_PRODUCT_NAMES +from test.fixtures.l3_core_service_fixtures import PRODUCT_IMPORTED_MAP from test.workflows import assert_complete, extract_state, run_workflow @@ -81,3 +82,4 @@ def test_create_imported_l3_core_service_success(faker, partner_factory, edge_po subscription = SubscriptionModel.from_subscription(state["subscription_id"]) assert_complete(result) assert subscription.status == SubscriptionLifecycle.ACTIVE + assert subscription.product.name == PRODUCT_IMPORTED_MAP[product_name] diff --git a/test/workflows/l3_core_service/test_create_l3_core_service.py b/test/workflows/l3_core_service/test_create_l3_core_service.py index aacfd9cc0..367d56920 100644 --- a/test/workflows/l3_core_service/test_create_l3_core_service.py +++ b/test/workflows/l3_core_service/test_create_l3_core_service.py @@ -106,6 +106,7 @@ def test_create_l3_core_service_success( assert_complete(result) state = extract_state(result) subscription = SubscriptionModel.from_subscription(state["subscription_id"]) + assert subscription.product.name == product_name assert mock_lso_client.call_count == lso_interaction_count + 1 assert subscription.status == SubscriptionLifecycle.ACTIVE assert len(subscription.l3_core.ap_list) == 1 -- GitLab