Skip to content
Snippets Groups Projects
Commit a9af163f authored by geant-release-service's avatar geant-release-service
Browse files

Finished release 2.35.

parents 3e47bb90 697a71a7
No related branches found
No related tags found
No related merge requests found
Pipeline #91705 passed
# Changelog
## [2.35] - 2025-01-30
- Fix a bug in the L3 Core Service validation workflow
## [2.34] - 2025-01-27
- Update SharePoint list interaction for L3 Core Services
- Update signature of helper methods that return Subscription objects
......
......@@ -73,6 +73,7 @@ def validate_l3_core_service() -> StepList:
begin
>> store_process_subscription(Target.SYSTEM)
>> unsync
>> build_fqdn_list
>> anonymous_lso_interaction(validate_sbp_config)
>> anonymous_lso_interaction(validate_bgp_peers)
>> validate_dns_records
......
......@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
setup(
name="geant-service-orchestrator",
version="2.34",
version="2.35",
author="GÉANT Orchestration and Automation Team",
author_email="goat@geant.org",
description="GÉANT Service Orchestrator",
......
from unittest.mock import patch
import pytest
from gso.products.product_types.l3_core_service import L3CoreService, L3CoreServiceType
from test.workflows import assert_complete, assert_lso_success, extract_state, run_workflow
@pytest.mark.workflow()
@patch("gso.services.lso_client._send_request")
@pytest.mark.parametrize(
"l3_core_service_type",
[
L3CoreServiceType.GEANT_IP,
L3CoreServiceType.IAS,
L3CoreServiceType.GWS,
L3CoreServiceType.LHCONE,
L3CoreServiceType.COPERNICUS,
],
)
def test_validate_l3_core_service(
mock_lso_interaction, l3_core_service_subscription_factory, faker, l3_core_service_type
):
subscription_id = str(
l3_core_service_subscription_factory(l3_core_service_type=l3_core_service_type).subscription_id
)
initial_l3_core_service_data = [{"subscription_id": subscription_id}]
result, process_stat, step_log = run_workflow("validate_l3_core_service", initial_l3_core_service_data)
result, step_log = assert_lso_success(result, process_stat, step_log)
result, _ = assert_lso_success(result, process_stat, step_log)
assert_complete(result)
state = extract_state(result)
subscription_id = state["subscription_id"]
subscription = L3CoreService.from_subscription(subscription_id)
assert subscription.status == "active"
assert subscription.insync is True
assert mock_lso_interaction.call_count == 2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment