From d5da4b3c1ec69c77ddf087bf8809bc2c519e6e00 Mon Sep 17 00:00:00 2001 From: AKurakin Date: Wed, 24 Jan 2024 13:38:46 +0300 Subject: [PATCH] backend-api http://jira.mfd.msk:8088/browse/CLS-635 meta 3.9.0.72 --- .../src/main/resources/meta/meta.json | 46 +------------------ .../src/main/resources/meta/meta.xml | 10 +--- .../meta/GetResponseFactoryTest.java | 8 ++++ .../backend-api/src/test/resources/meta.json | 46 +------------------ 4 files changed, 11 insertions(+), 99 deletions(-) diff --git a/clearing-parent/backend-api/src/main/resources/meta/meta.json b/clearing-parent/backend-api/src/main/resources/meta/meta.json index ba0ff0cbb..c8d296dbb 100644 --- a/clearing-parent/backend-api/src/main/resources/meta/meta.json +++ b/clearing-parent/backend-api/src/main/resources/meta/meta.json @@ -1,6 +1,6 @@ { - "version": "3.9.0.71", + "version": "3.9.0.72", "enums": { @@ -5470,28 +5470,6 @@ "fields": [] } , - {"method":"post", - - "destination": "ADLR", - - "group": "Формирование реестров", - - "name": "Формирование реестра обязательств, допущенных к клирингу", - - "fields": [] - } - , - {"method":"post", - - "destination": "CDLR", - - "group": "Формирование реестров", - - "name": "Формирование реестра обязательств, прошедших процедуру контроля обеспечения", - - "fields": [] - } - , {"method":"post", "destination": "GORR", @@ -5514,28 +5492,6 @@ "fields": [] } , - {"method":"post", - - "destination": "EXLR", - - "group": "Формирование реестров", - - "name": "Формирование реестра обязательств, исключенных из клирингового пула", - - "fields": [] - } - , - {"method":"post", - - "destination": "LBSR", - - "group": "Формирование реестров", - - "name": "Формирование реестра учета обязательств", - - "fields": [] - } - , {"method":"post", "destination": "ECNR", diff --git a/clearing-parent/backend-api/src/main/resources/meta/meta.xml b/clearing-parent/backend-api/src/main/resources/meta/meta.xml index ddb3ecfdd..5fc5eea94 100644 --- a/clearing-parent/backend-api/src/main/resources/meta/meta.xml +++ b/clearing-parent/backend-api/src/main/resources/meta/meta.xml @@ -1,6 +1,6 @@ - + @@ -1266,18 +1266,10 @@ - - - - - - - - diff --git a/clearing-parent/backend-api/src/test/java/ru/spcex/clearing/backendapi/meta/GetResponseFactoryTest.java b/clearing-parent/backend-api/src/test/java/ru/spcex/clearing/backendapi/meta/GetResponseFactoryTest.java index a408322a5..70550491e 100644 --- a/clearing-parent/backend-api/src/test/java/ru/spcex/clearing/backendapi/meta/GetResponseFactoryTest.java +++ b/clearing-parent/backend-api/src/test/java/ru/spcex/clearing/backendapi/meta/GetResponseFactoryTest.java @@ -1,8 +1,11 @@ package ru.spcex.clearing.backendapi.meta; +import org.apache.commons.lang3.StringUtils; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.test.context.ContextConfiguration; @@ -14,6 +17,7 @@ import java.util.stream.Collectors; @ExtendWith(SpringExtension.class) @ContextConfiguration(classes = GetResponseFactoryTestConfiguration.class) public class GetResponseFactoryTest { + private Logger log = LoggerFactory.getLogger(getClass()); private final MetaServer meta; @Autowired @@ -37,6 +41,10 @@ public class GetResponseFactoryTest { try { classByName = Class.forName(className); } catch (ClassNotFoundException e) { + if ("db-versions".equals(objectElement.getDestination()) && StringUtils.isEmpty(objectElement.getClazz())) { + log.info("No class for system table \"{}\" (cannot find class)", objectElement.getDestination()); + continue; + } error.computeIfAbsent(ent.getKey(), v -> new ArrayList<>()).add(ent.getKey() + " cannot find class " + className); continue; } diff --git a/clearing-parent/backend-api/src/test/resources/meta.json b/clearing-parent/backend-api/src/test/resources/meta.json index ba0ff0cbb..c8d296dbb 100644 --- a/clearing-parent/backend-api/src/test/resources/meta.json +++ b/clearing-parent/backend-api/src/test/resources/meta.json @@ -1,6 +1,6 @@ { - "version": "3.9.0.71", + "version": "3.9.0.72", "enums": { @@ -5470,28 +5470,6 @@ "fields": [] } , - {"method":"post", - - "destination": "ADLR", - - "group": "Формирование реестров", - - "name": "Формирование реестра обязательств, допущенных к клирингу", - - "fields": [] - } - , - {"method":"post", - - "destination": "CDLR", - - "group": "Формирование реестров", - - "name": "Формирование реестра обязательств, прошедших процедуру контроля обеспечения", - - "fields": [] - } - , {"method":"post", "destination": "GORR", @@ -5514,28 +5492,6 @@ "fields": [] } , - {"method":"post", - - "destination": "EXLR", - - "group": "Формирование реестров", - - "name": "Формирование реестра обязательств, исключенных из клирингового пула", - - "fields": [] - } - , - {"method":"post", - - "destination": "LBSR", - - "group": "Формирование реестров", - - "name": "Формирование реестра учета обязательств", - - "fields": [] - } - , {"method":"post", "destination": "ECNR",