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

Finished release 0.125.

parents a11216bb 3d1e906b
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.125] - 2024-07-18
- DBOARD3-971: Added handling for GRV 10G interfaces
- POL1-836: Included PHY RE_INTERCONNECT in R&E Peer dashboards
## [0.124] - 2024-07-11 ## [0.124] - 2024-07-11
- DBOARD3-921: GAP/InventoryProvider integration - DBOARD3-921: GAP/InventoryProvider integration
- Updated Nokia parsing and tests - Updated Nokia parsing and tests
......
...@@ -1013,7 +1013,7 @@ def get_coriant_info(equipment_name: str, entity_string: str) -> Response: ...@@ -1013,7 +1013,7 @@ def get_coriant_info(equipment_name: str, entity_string: str) -> Response:
if not result: if not result:
m = re.match(r'^(\d+\-\d+)\.(\d+)', ims_interface) m = re.match(r'^(\d+\-\d+)\.((\d+)(\.\d+)*)', ims_interface)
if not m: if not m:
logger.error( logger.error(
f'invalid coriant entity string format: {ims_interface}') f'invalid coriant entity string format: {ims_interface}')
......
...@@ -481,7 +481,7 @@ def _get_dashboards(interface): ...@@ -481,7 +481,7 @@ def _get_dashboards(interface):
yield BRIAN_DASHBOARDS.IAS_UPSTREAM yield BRIAN_DASHBOARDS.IAS_UPSTREAM
if re.match(r'SRV_10GGBS CUSTOMER\s', description): if re.match(r'SRV_10GGBS CUSTOMER\s', description):
yield BRIAN_DASHBOARDS.GBS_10G yield BRIAN_DASHBOARDS.GBS_10G
if re.match(r'(SRV_GLOBAL|SRV_L3VPN|LAG) RE_INTERCONNECT\s', description): if re.match(r'(SRV_GLOBAL|SRV_L3VPN|LAG|PHY) RE_INTERCONNECT\s', description):
yield BRIAN_DASHBOARDS.RE_PEER yield BRIAN_DASHBOARDS.RE_PEER
if re.match(r'(PHY|LAG|SRV_GLOBAL) CUSTOMER\s', description): if re.match(r'(PHY|LAG|SRV_GLOBAL) CUSTOMER\s', description):
yield BRIAN_DASHBOARDS.RE_CUST yield BRIAN_DASHBOARDS.RE_CUST
......
click click
mysql-connector mysql-connector
pysnmp pysnmp==4.4.12
pyasn1==0.4.8 pyasn1==0.4.8
jsonschema jsonschema
paramiko paramiko
...@@ -24,4 +24,4 @@ sphinx ...@@ -24,4 +24,4 @@ sphinx
sphinx-rtd-theme sphinx-rtd-theme
# glitchtip/sentry integration # glitchtip/sentry integration
sentry-sdk[flask,celery] sentry-sdk[flask,celery]
\ No newline at end of file
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name='inventory-provider', name='inventory-provider',
version="0.124", version="0.125",
author='GEANT', author='GEANT',
author_email='swd@geant.org', author_email='swd@geant.org',
description='Dashboard inventory provider', description='Dashboard inventory provider',
...@@ -13,7 +13,7 @@ setup( ...@@ -13,7 +13,7 @@ setup(
'click', 'click',
'mysql-connector', 'mysql-connector',
'pyasn1==0.4.8', 'pyasn1==0.4.8',
'pysnmp', 'pysnmp==4.4.12',
'jsonschema', 'jsonschema',
'paramiko', 'paramiko',
'flask', 'flask',
......
...@@ -121,12 +121,12 @@ def test_peer_not_found(client): ...@@ -121,12 +121,12 @@ def test_peer_not_found(client):
assert response_data == {'locations': [], "contacts": []} assert response_data == {'locations': [], "contacts": []}
@pytest.mark.parametrize('equipment,entity_name', [ @pytest.mark.parametrize('equipment,entity_name,expected_card_id,expected_port', [
('grv3.ams.nl.geant.net', '1-1.3.1-100GbE-ODU4-TTP1'), ('grv3.ams.nl.geant.net', '1-3.3.1-Optical-10GbE-TTP', '1/3', '3.1'),
('bogus-hostname.with&special.char', ('bogus-hostname.with&special.char',
'234-2345234.7878i234crazynamewithslash/1-2.3') '234-2345234.7878i234crazynamewithslash/1-2.3', '234/2345234', '7878')
]) ])
def test_coriant_info(client, equipment, entity_name): def test_coriant_info(client, equipment, entity_name, expected_card_id, expected_port):
rv = client.get( rv = client.get(
f'/classifier/coriant-info/{equipment}/{entity_name}', f'/classifier/coriant-info/{equipment}/{entity_name}',
headers=DEFAULT_REQUEST_HEADERS) headers=DEFAULT_REQUEST_HEADERS)
...@@ -134,6 +134,8 @@ def test_coriant_info(client, equipment, entity_name): ...@@ -134,6 +134,8 @@ def test_coriant_info(client, equipment, entity_name):
assert rv.is_json assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, CORIANT_INFO_RESPONSE_SCHEMA) jsonschema.validate(response_data, CORIANT_INFO_RESPONSE_SCHEMA)
assert response_data['card id'] == expected_card_id
assert response_data['port number'] == expected_port
def test_coriant_info_not_found(client): def test_coriant_info_not_found(client):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment