From 5f2a974705323c639ff011753581d19cbfa9f324 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Fri, 18 Oct 2024 10:23:48 +0200 Subject: [PATCH] Update G_IP migration workflow --- .../create_imported_nren_l3_core_service.py | 8 ++++---- test/workflows/geant_ip/test_create_imported_geant_ip.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py b/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py index 81dc3f0b..b39d094c 100644 --- a/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py +++ b/gso/workflows/nren_l3_core_service/create_imported_nren_l3_core_service.py @@ -1,4 +1,4 @@ -"""A creation workflow for adding an existing GEANT IP to the service database.""" +"""A creation workflow for adding an existing NREN L3 Core Service to the service database.""" from uuid import uuid4 @@ -88,11 +88,11 @@ def initialize_subscription(subscription: ImportedNRENL3CoreServiceInactive, ser sbp_bgp_session_list=sbp_bgp_session_list, **service_binding_port, ) - subscription.geant_ip.geant_ip_ap_list.append( + subscription.nren_l3_core_service.nren_ap_list.append( NRENAccessPortInactive.new( subscription_id=uuid4(), - nren_ap_type=service_binding_port["ap_type"], - geant_ip_sbp=service_binding_port_subscription, + ap_type=service_binding_port["ap_type"], + sbp=service_binding_port_subscription, ) ) diff --git a/test/workflows/geant_ip/test_create_imported_geant_ip.py b/test/workflows/geant_ip/test_create_imported_geant_ip.py index ada6b7dd..4ce636ea 100644 --- a/test/workflows/geant_ip/test_create_imported_geant_ip.py +++ b/test/workflows/geant_ip/test_create_imported_geant_ip.py @@ -60,7 +60,7 @@ def imported_geant_ip_creation_input_form_data(edge_port_subscription_factory, p def test_create_imported_geant_ip_success(faker, imported_geant_ip_creation_input_form_data): - result, _, _ = run_workflow("create_imported_geant_ip", [imported_geant_ip_creation_input_form_data]) + result, _, _ = run_workflow("create_imported_nren_l3_core_service", [imported_geant_ip_creation_input_form_data]) state = extract_state(result) subscription = ImportedNRENL3CoreService.from_subscription(state["subscription_id"]) assert_complete(result) -- GitLab