Loading src/pathcomp/frontend/tests/test_unitary.py +2 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ os.environ['PATHCOMP_BACKEND_PORT'] = os.environ.get('PATHCOMP_BACKEND_PORT', ba from .PrepareTestScenario import ( # pylint: disable=unused-import # be careful, order of symbols is important here! mock_service, context_client, monitoring_client, pathcomp_service, pathcomp_client) mock_service, context_client, monitoring_client, forecaster_service, forecaster_client, pathcomp_service, pathcomp_client) LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) Loading src/pathcomp/frontend/tests/test_unitary_pathcomp_forecaster.py +4 −1 Original line number Diff line number Diff line Loading @@ -130,9 +130,11 @@ def test_request_service_shortestpath_forecast( endpoint_id_a = json_endpoint_id(json_device_id('pt1.pt'), 'client:1') endpoint_id_z = json_endpoint_id(json_device_id('gr1.gr'), 'client:3') context_uuid = DEFAULT_CONTEXT_NAME service_uuid = get_service_uuid(endpoint_id_a, endpoint_id_z) request_service = json_service_l3nm_planned( service_uuid, context_uuid=context_uuid, endpoint_ids=[endpoint_id_a, endpoint_id_z], constraints=[ json_constraint_sla_capacity(25.0), Loading @@ -159,7 +161,8 @@ def test_request_service_shortestpath_forecast( } # Assert requested service has a reply # It permits having other services not requested (i.e., sub-services) assert service_uuid in reply_service_ids context_service_uuid = '{:s}/{:s}'.format(context_uuid, service_uuid) assert context_service_uuid in reply_service_ids reply_connection_service_ids = { '{:s}/{:s}'.format( Loading Loading
src/pathcomp/frontend/tests/test_unitary.py +2 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ os.environ['PATHCOMP_BACKEND_PORT'] = os.environ.get('PATHCOMP_BACKEND_PORT', ba from .PrepareTestScenario import ( # pylint: disable=unused-import # be careful, order of symbols is important here! mock_service, context_client, monitoring_client, pathcomp_service, pathcomp_client) mock_service, context_client, monitoring_client, forecaster_service, forecaster_client, pathcomp_service, pathcomp_client) LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) Loading
src/pathcomp/frontend/tests/test_unitary_pathcomp_forecaster.py +4 −1 Original line number Diff line number Diff line Loading @@ -130,9 +130,11 @@ def test_request_service_shortestpath_forecast( endpoint_id_a = json_endpoint_id(json_device_id('pt1.pt'), 'client:1') endpoint_id_z = json_endpoint_id(json_device_id('gr1.gr'), 'client:3') context_uuid = DEFAULT_CONTEXT_NAME service_uuid = get_service_uuid(endpoint_id_a, endpoint_id_z) request_service = json_service_l3nm_planned( service_uuid, context_uuid=context_uuid, endpoint_ids=[endpoint_id_a, endpoint_id_z], constraints=[ json_constraint_sla_capacity(25.0), Loading @@ -159,7 +161,8 @@ def test_request_service_shortestpath_forecast( } # Assert requested service has a reply # It permits having other services not requested (i.e., sub-services) assert service_uuid in reply_service_ids context_service_uuid = '{:s}/{:s}'.format(context_uuid, service_uuid) assert context_service_uuid in reply_service_ids reply_connection_service_ids = { '{:s}/{:s}'.format( Loading