fix(tests): platform-verifiable form-info DSL + external setup в verify-snapshots

- form-info/{rich-form,simple-form}: тип реквизита Объект исправлен
  с ExternalDataProcessorObject на DataProcessorObject — preRun создаёт
  обычную обработку, и платформа отвергала несоответствие XDTO-исключением.
- verify-snapshots.mjs: поддержка setup="external:<path>" — копирует
  внешний дамп (выгрузку ERP/БП) в workDir, пропускает cf-init и
  авто-регистрацию объектов через cf-edit. Платформенная загрузка
  целой вендорской конфы скипается — кейсы real-acc-form-* проверяют
  скрипт против реального XML, а не пригодность всей БП к чистой базе.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-05-02 14:31:18 +03:00
co-authored by Claude Opus 4.7
parent 6650d2b516
commit 4b8d3b67dc
5 changed files with 33 additions and 10 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
{ "button": "Выполнить", "command": "Выполнить" }
],
"attributes": [
{ "name": "Объект", "type": "ExternalDataProcessorObject.Инфо", "main": true },
{ "name": "Объект", "type": "DataProcessorObject.Инфо", "main": true },
{ "name": "Организация", "type": "string" },
{ "name": "Период", "type": "date" },
{ "name": "Данные", "type": "ValueTable", "columns": [
@@ -14,7 +14,7 @@
"script": "form-compile/scripts/form-compile",
"input": {
"title": "Простая форма",
"attributes": [{ "name": "Объект", "type": "ExternalDataProcessorObject.Простая", "main": true }]
"attributes": [{ "name": "Объект", "type": "DataProcessorObject.Простая", "main": true }]
},
"args": { "-JsonPath": "{inputFile}", "-OutputPath": "{workDir}/DataProcessors/Простая/Forms/Форма/Ext/Form.xml" }
}
@@ -64,7 +64,7 @@
<Attributes>
<Attribute name="Объект" id="23">
<Type>
<v8:Type>cfg:ExternalDataProcessorObject.Инфо</v8:Type>
<v8:Type>cfg:DataProcessorObject.Инфо</v8:Type>
</Type>
<MainAttribute>true</MainAttribute>
</Attribute>
@@ -10,7 +10,7 @@
<Attributes>
<Attribute name="Объект" id="1">
<Type>
<v8:Type>cfg:ExternalDataProcessorObject.Простая</v8:Type>
<v8:Type>cfg:DataProcessorObject.Простая</v8:Type>
</Type>
<MainAttribute>true</MainAttribute>
</Attribute>