mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-20 17:25:52 +03:00
fix(epf-build): конвертация в заглушку не калечит имена с суффиксом вида объекта
Замена ExternalReport. -> Report. шла по всему тексту XML и попадала внутрь
имени объекта, если оно оканчивается так же (ПриёмкаExternalReport). Имя берётся
из <Name> до замены и остаётся авторским везде — в имени файла, GeneratedType и
составе конфигурации, — а ссылка в скопированном XML расходилась с ним, и
заглушка не грузилась: «Неизвестный объект метаданных - Report.ПриёмкаReport…».
Заменяется только префикс вида объекта в начале квалифицированного имени.
Регрессии строят фикстуру навыками (erf-init --WithSKD, epf-init, form-add) —
так в кейс попадает и настоящая ссылка вида cfg:ExternalReportObject.<Имя>.
Соседние кейсы каталога переведены на {fakePlatform} и прямые слэши.
Closes #90
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
56b0c0cfd7
commit
e2c7f38518
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"name": "Имя, оканчивающееся на ExternalReport, не калечится в ссылках",
|
||||
"fakePlatform": {
|
||||
"exit": 1,
|
||||
"log": ""
|
||||
},
|
||||
"preRun": [
|
||||
{
|
||||
"script": "erf-init/scripts/init",
|
||||
"args": {
|
||||
"-Name": "ПриёмкаExternalReport",
|
||||
"-SrcDir": "{workDir}/src",
|
||||
"-WithSKD": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"script": "form-add/scripts/form-add",
|
||||
"args": {
|
||||
"-ObjectPath": "{workDir}/src/ПриёмкаExternalReport.xml",
|
||||
"-FormName": "Форма",
|
||||
"-SetDefault": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"args_extra": [
|
||||
"-SourceDir",
|
||||
"{workDir}/src",
|
||||
"-V8Path",
|
||||
"{fakePlatform}",
|
||||
"-TempBasePath",
|
||||
"{workDir}/base",
|
||||
"-EmbedSourceFile",
|
||||
"{workDir}/src/ПриёмкаExternalReport.xml"
|
||||
],
|
||||
"expect": {
|
||||
"fileContains": [
|
||||
{
|
||||
"file": "base/cfg/Reports/ПриёмкаExternalReport.xml",
|
||||
"text": [
|
||||
"<Name>ПриёмкаExternalReport</Name>",
|
||||
"<DefaultForm>Report.ПриёмкаExternalReport.Form.Форма</DefaultForm>",
|
||||
"<xr:GeneratedType name=\"ReportObject.ПриёмкаExternalReport\" category=\"Object\">",
|
||||
"<xr:GeneratedType name=\"ReportManager.ПриёмкаExternalReport\" category=\"Manager\">",
|
||||
"<MainDataCompositionSchema>Report.ПриёмкаExternalReport.Template.ОсновнаяСхемаКомпоновкиДанных</MainDataCompositionSchema>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "base/cfg/Reports/ПриёмкаExternalReport/Forms/Форма/Ext/Form.xml",
|
||||
"text": "<v8:Type>cfg:ReportObject.ПриёмкаExternalReport</v8:Type>"
|
||||
},
|
||||
{
|
||||
"file": "base/cfg/Configuration.xml",
|
||||
"text": "<Report>ПриёмкаExternalReport</Report>"
|
||||
}
|
||||
],
|
||||
"fileNotContains": [
|
||||
{
|
||||
"file": "base/cfg/Reports/ПриёмкаExternalReport.xml",
|
||||
"text": [
|
||||
"ПриёмкаReport",
|
||||
"<ExternalReport ",
|
||||
">ExternalReport."
|
||||
]
|
||||
},
|
||||
{
|
||||
"file": "base/cfg/Reports/ПриёмкаExternalReport/Forms/Форма/Ext/Form.xml",
|
||||
"text": "ПриёмкаReport"
|
||||
}
|
||||
]
|
||||
},
|
||||
"expectError": true,
|
||||
"noSnapshot": "платформа фейковая, а GUID копии перевыпускаются случайными — проверяется сгенерированная конфигурация"
|
||||
}
|
||||
Reference in New Issue
Block a user