From af42dbd251acad014cea18b2cff381fb43448319 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Mon, 19 May 2025 09:13:21 +0200
Subject: [PATCH] changed json-schema ref url (sq warnings, etc)

---
 inventory_provider/config.py                   |  2 +-
 inventory_provider/db/ims_data.py              |  6 +++---
 inventory_provider/routes/classifier_schema.py | 16 ++++++++--------
 inventory_provider/routes/data.py              |  6 +++---
 inventory_provider/routes/default.py           |  2 +-
 inventory_provider/routes/jobs.py              |  6 +++---
 inventory_provider/routes/lg.py                |  2 +-
 inventory_provider/routes/lnetd.py             |  2 +-
 inventory_provider/routes/mic.py               |  4 ++--
 inventory_provider/routes/msr.py               | 18 +++++++++---------
 inventory_provider/routes/neteng.py            |  2 +-
 inventory_provider/routes/poller.py            | 16 ++++++++--------
 inventory_provider/tasks/common.py             |  4 ++--
 inventory_provider/tasks/monitor.py            |  2 +-
 test/per_router/test_data_routes.py            |  2 +-
 test/per_router/test_juniper_data.py           |  4 ++--
 test/per_router/test_snmp_handling.py          |  4 ++--
 test/test_general_routes.py                    |  2 +-
 test/test_juniper_data_remember.py             |  2 +-
 test/test_testing_routes.py                    |  2 +-
 test/test_worker.py                            |  4 ++--
 test/test_worker_utils.py                      |  4 ++--
 22 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/inventory_provider/config.py b/inventory_provider/config.py
index 6e2dfb7f..b49cf9ba 100644
--- a/inventory_provider/config.py
+++ b/inventory_provider/config.py
@@ -11,7 +11,7 @@ class ServiceName(StrEnum):
 
 
 CONFIG_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'timeout': {
diff --git a/inventory_provider/db/ims_data.py b/inventory_provider/db/ims_data.py
index 89256f0e..114cdb76 100644
--- a/inventory_provider/db/ims_data.py
+++ b/inventory_provider/db/ims_data.py
@@ -46,12 +46,12 @@ _POP_LOCATION_SCHEMA_STRUCT = {
 }
 
 POP_LOCATION_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     **_POP_LOCATION_SCHEMA_STRUCT
 }
 
 NODE_LOCATION_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'pop-location': _POP_LOCATION_SCHEMA_STRUCT
     },
@@ -67,7 +67,7 @@ NODE_LOCATION_SCHEMA = {
 }
 
 SITE_LOCATION_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     **_POP_LOCATION_SCHEMA_STRUCT
 }
 
diff --git a/inventory_provider/routes/classifier_schema.py b/inventory_provider/routes/classifier_schema.py
index 1b289c08..be4894e4 100644
--- a/inventory_provider/routes/classifier_schema.py
+++ b/inventory_provider/routes/classifier_schema.py
@@ -278,7 +278,7 @@ _juniper_link_response_schema_definitions = {
 }
 
 JUNIPER_LINK_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
         **_juniper_link_response_schema_definitions,
@@ -428,7 +428,7 @@ _peer_info_response_schema_definitions = {
 
 
 PEER_INFO_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
         **_peer_info_response_schema_definitions,
@@ -555,7 +555,7 @@ _infinera_lambda_response_schema_definitions = {
 }
 
 INFINERA_LAMBDA_INFO_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
         **_infinera_lambda_response_schema_definitions,
@@ -586,7 +586,7 @@ INFINERA_LAMBDA_INFO_RESPONSE_SCHEMA = {
 
 MTC_INTERFACE_INFO_RESPONSE_SCHEMA = INFINERA_LAMBDA_INFO_RESPONSE_SCHEMA
 INFINERA_FIBERLINK_INFO_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
         **_common_schema_definitions
@@ -612,7 +612,7 @@ INFINERA_FIBERLINK_INFO_RESPONSE_SCHEMA = {
 }
 
 CORIANT_INFO_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
 
@@ -678,7 +678,7 @@ CORIANT_INFO_RESPONSE_SCHEMA = {
 
 TNMS_FIBERLINK_INFO_RESPONSE_SCHEMA = {
 
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     'definitions': {
 
@@ -754,7 +754,7 @@ TNMS_FIBERLINK_INFO_RESPONSE_SCHEMA = {
 }
 
 ROUTER_INFO_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "definitions": {
         "related-service-info": {
             "type": "object",
@@ -794,7 +794,7 @@ ROUTER_INFO_RESPONSE_SCHEMA = {
     "additionalProperties": False,
 }
 ROUTER_INFO_ALL_ROUTERS_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "array",
     "items": {
         "type": "object",
diff --git a/inventory_provider/routes/data.py b/inventory_provider/routes/data.py
index 52726b32..51dfa7f9 100644
--- a/inventory_provider/routes/data.py
+++ b/inventory_provider/routes/data.py
@@ -37,13 +37,13 @@ logger = logging.getLogger(__name__)
 routes = Blueprint("inventory-data-query-routes", __name__)
 
 ROUTERS_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "array",
     "items": {"type": "string"}
 }
 
 ROUTER_INTERFACES_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "array",
     "items": {
         "type": "object",
@@ -72,7 +72,7 @@ ROUTER_INTERFACES_SCHEMA = {
 }
 
 POP_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
         "pop-info": {
diff --git a/inventory_provider/routes/default.py b/inventory_provider/routes/default.py
index 13fa1b36..4b2c0a34 100644
--- a/inventory_provider/routes/default.py
+++ b/inventory_provider/routes/default.py
@@ -29,7 +29,7 @@ routes = Blueprint('inventory-data-default-routes', __name__)
 API_VERSION = '0.1'
 
 VERSION_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'latch': {
diff --git a/inventory_provider/routes/jobs.py b/inventory_provider/routes/jobs.py
index 8953a245..07b4bda1 100644
--- a/inventory_provider/routes/jobs.py
+++ b/inventory_provider/routes/jobs.py
@@ -40,7 +40,7 @@ logger = logging.getLogger(__name__)
 
 
 TASK_ID_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "object",
     "properties": {
         "task id": {"type": "string"}
@@ -50,7 +50,7 @@ TASK_ID_RESPONSE_SCHEMA = {
 }
 
 TASK_LOG_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "object",
     "properties": {
       "pending": {"type": "array", "items": {"type": "string"}},
@@ -63,7 +63,7 @@ TASK_LOG_RESPONSE_SCHEMA = {
 }
 
 INDIVIDUAL_TASK_STATUS_RESPONSE_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "definitions": {
         "task": {
             "type": "object",
diff --git a/inventory_provider/routes/lg.py b/inventory_provider/routes/lg.py
index 2ef5bb87..33a27153 100644
--- a/inventory_provider/routes/lg.py
+++ b/inventory_provider/routes/lg.py
@@ -27,7 +27,7 @@ ACCESS_INTERNAL = 'all'
 
 
 LG_ROUTERS_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
 
     "definitions": {
         "pop-info": {
diff --git a/inventory_provider/routes/lnetd.py b/inventory_provider/routes/lnetd.py
index e08b5ad3..ed2db1de 100644
--- a/inventory_provider/routes/lnetd.py
+++ b/inventory_provider/routes/lnetd.py
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
 routes = Blueprint('lnetd-support-routes', __name__)
 
 INTERFACE_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
 
diff --git a/inventory_provider/routes/mic.py b/inventory_provider/routes/mic.py
index 99a24aec..d03f25fc 100644
--- a/inventory_provider/routes/mic.py
+++ b/inventory_provider/routes/mic.py
@@ -24,7 +24,7 @@ logger = logging.getLogger(__name__)
 routes = Blueprint('mic-support-routes', __name__)
 
 ALL_DATA_SCHEMA = {
-    "schema": "http://json-schema.org/draft-07/schema#",
+    "schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "object",
     "patternProperties": {
         "^.*$": {
@@ -68,7 +68,7 @@ ALL_DATA_SCHEMA = {
 }
 
 THIRD_PARTY_RESPONSE_SCHEMA = {
-    "schema": "http://json-schema.org/draft-07/schema#",
+    "schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "object",
     "properties": {
         "circuit_hierarchy": {
diff --git a/inventory_provider/routes/msr.py b/inventory_provider/routes/msr.py
index ac2aa9b9..9ccdb340 100644
--- a/inventory_provider/routes/msr.py
+++ b/inventory_provider/routes/msr.py
@@ -124,14 +124,14 @@ logger = logging.getLogger(__name__)
 _subnet_lookup_semaphore = threading.Semaphore()
 
 PEERING_GROUP_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'type': 'array',
     'items': {'type': 'string'}
 
 }
 
 PEERING_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'peering-instance': {
             'type': 'object',
@@ -162,7 +162,7 @@ PEERING_LIST_SCHEMA = {
 
 
 IP_ADDRESS_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         "ip-address": {
             "type": "string",
@@ -179,7 +179,7 @@ IP_ADDRESS_LIST_SCHEMA = {
 }
 
 PEERING_ADDRESS_SERVICES_LIST = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'service': {
             'properties': {
@@ -210,7 +210,7 @@ PEERING_ADDRESS_SERVICES_LIST = {
 }
 
 SYSTEM_CORRELATION_SERVICES_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'v4-network': {'type': 'string'},  # TODO: can this be better?
@@ -281,7 +281,7 @@ SYSTEM_CORRELATION_SERVICES_LIST_SCHEMA = {
 }
 
 MDVPN_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'mdvpn_group': {
             'type': 'object',
@@ -341,7 +341,7 @@ MDVPN_LIST_SCHEMA = {
 }
 
 VPN_PROXY_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'vpn_proxy_peering': {
             'type': 'object',
@@ -369,7 +369,7 @@ DOMAIN_TO_POP_MAPPING = {
 }
 
 IP_SERVICES_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'minimal-peering-schema': {
             # cf. PEERING_LIST_SCHEMA
@@ -428,7 +428,7 @@ IP_SERVICES_LIST_SCHEMA = {
 # very similar to PEERING_LIST_SCHEMA but
 # with a field for NREN, which is required
 ASN_PEER_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'peering-instance': {
             'type': 'object',
diff --git a/inventory_provider/routes/neteng.py b/inventory_provider/routes/neteng.py
index 2b38808d..71f3af1c 100644
--- a/inventory_provider/routes/neteng.py
+++ b/inventory_provider/routes/neteng.py
@@ -37,7 +37,7 @@ logger = logging.getLogger(__name__)
 _subnet_lookup_semaphore = threading.Semaphore()
 
 STRING_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'type': 'array',
     'items': {'type': 'string'}
 }
diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py
index 04ca6a6b..99d108f8 100644
--- a/inventory_provider/routes/poller.py
+++ b/inventory_provider/routes/poller.py
@@ -164,7 +164,7 @@ _INTERFACE_TYPES = [i.name for i in list(INTERFACE_TYPES)]
 _VLAN_TYPES = [v.name for v in list(VLAN_TYPES)]
 
 INTERFACE_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'service': {
@@ -235,7 +235,7 @@ INTERFACE_LIST_SCHEMA = {
 }
 
 ERROR_REPORT_INTERFACE_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'interface': {
             'type': 'object',
@@ -254,7 +254,7 @@ ERROR_REPORT_INTERFACE_LIST_SCHEMA = {
 }
 
 INTERFACE_SPEED_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'interface': {
@@ -274,7 +274,7 @@ INTERFACE_SPEED_LIST_SCHEMA = {
 }
 
 MULTICAST_SUBSCRIPTION_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'ipv4-address': {
@@ -304,7 +304,7 @@ MULTICAST_SUBSCRIPTION_LIST_SCHEMA = {
 }
 
 GWS_DIRECT_DATA_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'oid': {
@@ -390,7 +390,7 @@ GWS_DIRECT_DATA_SCHEMA = {
 }
 
 SERVICES_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'oid': {
@@ -452,13 +452,13 @@ SERVICES_LIST_SCHEMA = {
 }
 
 STRING_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'type': 'array',
     'items': {'type': 'string'}
 }
 
 NREN_REGION_LIST_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'definitions': {
         'nren_region': {
             'type': 'object',
diff --git a/inventory_provider/tasks/common.py b/inventory_provider/tasks/common.py
index b0fe166d..29921048 100644
--- a/inventory_provider/tasks/common.py
+++ b/inventory_provider/tasks/common.py
@@ -13,7 +13,7 @@ DEFAULT_REDIS_SENTINEL_TIMEOUT = 0.1
 DEFAULT_SENTINEL_SOCKET_TIMEOUT = 0.1
 
 DB_LATCH_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
     'type': 'object',
     'properties': {
         'current': {'type': 'integer'},
@@ -29,7 +29,7 @@ DB_LATCH_SCHEMA = {
 }
 
 TASK_LOG_SCHEMA = {
-    '$schema': 'https://json-schema.org/draft-07/schema#',
+    '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
     'definitions': {
         'meta': {
diff --git a/inventory_provider/tasks/monitor.py b/inventory_provider/tasks/monitor.py
index 7fabb166..edc62580 100644
--- a/inventory_provider/tasks/monitor.py
+++ b/inventory_provider/tasks/monitor.py
@@ -23,7 +23,7 @@ from inventory_provider.tasks.common import _get_redis, get_current_redis
 logger = logging.getLogger(__name__)
 INFO_EVENT_TYPES = ('task-info', 'task-warning', 'task-error')
 LOG_ENTRY_SCHEMA = {
-    "$schema": "https://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "object",
     "properties": {
         "uuid": {"type": "string"},
diff --git a/test/per_router/test_data_routes.py b/test/per_router/test_data_routes.py
index df599ef9..de651af7 100644
--- a/test/per_router/test_data_routes.py
+++ b/test/per_router/test_data_routes.py
@@ -25,7 +25,7 @@ def test_router_interfaces(juniper_router, client):
 def test_snmp_ids(juniper_router, client):
 
     snmp_id_list_schema = {
-        "$schema": "http://json-schema.org/draft-07/schema#",
+        "$schema": "https://json-schema.org/draft/2020-12/schema",
         "type": "array",
         "items": {
             "type": "object",
diff --git a/test/per_router/test_juniper_data.py b/test/per_router/test_juniper_data.py
index a1324567..a74b30af 100644
--- a/test/per_router/test_juniper_data.py
+++ b/test/per_router/test_juniper_data.py
@@ -11,7 +11,7 @@ from inventory_provider.routes import msr
 def test_interface_list(netconf_doc):
 
     schema = {
-        "$schema": "http://json-schema.org/draft-07/schema#",
+        "$schema": "https://json-schema.org/draft/2020-12/schema",
         "type": "array",
         "items": {
             "type": "object",
@@ -99,7 +99,7 @@ def test_snmp_community_string(mocked_netifaces, juniper_router, netconf_doc):
 
 def test_interface_addresses_list(netconf_doc):
     schema = {
-        "$schema": "http://json-schema.org/draft-07/schema#",
+        "$schema": "https://json-schema.org/draft/2020-12/schema",
 
         "definitions": {
             "v4a": {
diff --git a/test/per_router/test_snmp_handling.py b/test/per_router/test_snmp_handling.py
index 661f4a39..17f4c862 100644
--- a/test/per_router/test_snmp_handling.py
+++ b/test/per_router/test_snmp_handling.py
@@ -10,7 +10,7 @@ import inventory_provider
 
 
 PEERING_RESULT_SCHEMA = {
-    "$schema": "http://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "array",
     "items": {
         "type": "object",
@@ -61,7 +61,7 @@ def _gen_mocked_nextCmd(mocked_walk_data):
 def test_snmp_interfaces_juniper(mocker, netconf_doc):
 
     expected_result_schema = {
-        "$schema": "http://json-schema.org/draft-07/schema#",
+        "$schema": "https://json-schema.org/draft/2020-12/schema",
         "type": "array",
         "items": {
             "type": "object",
diff --git a/test/test_general_routes.py b/test/test_general_routes.py
index 2cecfa59..5caad6ab 100644
--- a/test/test_general_routes.py
+++ b/test/test_general_routes.py
@@ -24,7 +24,7 @@ def test_version_request(client, mocked_redis):
 def test_load_json_docs(data_config, mocked_redis):
 
     INTERFACE_SCHEMA = {
-        '$schema': 'http://json-schema.org/draft-07/schema#',
+        '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
         'definitions': {
             'allInterfaces': {
diff --git a/test/test_juniper_data_remember.py b/test/test_juniper_data_remember.py
index f2bbeef6..1eff03a0 100644
--- a/test/test_juniper_data_remember.py
+++ b/test/test_juniper_data_remember.py
@@ -48,7 +48,7 @@ def test_todo():
 #     'mx1.ath2.gr.geant.net',
 # ]
 # CACHE_SCHEMA = {
-#     "$schema": "http://json-schema.org/draft-07/schema#",
+#     "$schema": "https://json-schema.org/draft/2020-12/schema",
 #     "type": "object",
 #     "patternProperties": {
 #         "^.*\\.geant\\.net$": {
diff --git a/test/test_testing_routes.py b/test/test_testing_routes.py
index 93c1be0a..5b8d29ea 100644
--- a/test/test_testing_routes.py
+++ b/test/test_testing_routes.py
@@ -9,7 +9,7 @@ DEFAULT_REQUEST_HEADERS = {
 }
 
 ROUTER_LIST_SCHEMA = {
-    "$schema": "http://json-schema.org/draft-07/schema#",
+    "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "array",
     "items": {"type": "string"}
 }
diff --git a/test/test_worker.py b/test/test_worker.py
index 7b548d7d..541c508b 100644
--- a/test/test_worker.py
+++ b/test/test_worker.py
@@ -920,7 +920,7 @@ def test_refresh_nokia_interface_list(mocked_redis, data_config, load_nokia_netc
     assert len(interface_hosts) == 15
 
     interface_hosts_schema = {
-      '$schema': 'http://json-schema.org/draft-07/schema#',
+      '$schema': 'https://json-schema.org/draft/2020-12/schema',
       'type': 'array',
       'items': {
         'type': 'object',
@@ -942,7 +942,7 @@ def test_refresh_nokia_interface_list(mocked_redis, data_config, load_nokia_netc
     jsonschema.validate(interface_hosts, interface_hosts_schema)
 
     interfaces_schema = {
-      '$schema': 'http://json-schema.org/draft-07/schema#',
+      '$schema': 'https://json-schema.org/draft/2020-12/schema',
       'type': 'object',
       'properties': {
         'name': {
diff --git a/test/test_worker_utils.py b/test/test_worker_utils.py
index 0c10c57b..b5c1a6f7 100644
--- a/test/test_worker_utils.py
+++ b/test/test_worker_utils.py
@@ -32,7 +32,7 @@ def test_build_subnet_db(mocked_worker_module, data_config_filename):
     """
 
     address_schema = {
-        '$schema': 'http://json-schema.org/draft-07/schema#',
+        '$schema': 'https://json-schema.org/draft/2020-12/schema',
 
         'definitions': {
             'interface': {
@@ -171,7 +171,7 @@ def test_build_snmp_peering_db(mocked_worker_module):
     :param mocked_worker_module: fixture
     """
     peering_list_schema = {
-        "$schema": "http://json-schema.org/draft-07/schema#",
+        "$schema": "https://json-schema.org/draft/2020-12/schema",
         "definitions": {
             "peering": {
                 "type": "object",
-- 
GitLab