1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-08-10 22:41:43 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-07-11 14:10:22 +03:00
parent e71971c28a
commit c415d81be6
20 changed files with 8441 additions and 8390 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -14039,8 +14039,10 @@ Procedure VKTeams_MakeActionButton(FunctionParameters)
ButtonsLineArray.Add(OPI_VKTeams.MakeActionButton("Button2", , "https://openintegrations.dev"));
// BSLLS:DuplicatedInsertionIntoCollection-off // SKIP
Keyboard.Add(ButtonsLineArray);
Keyboard.Add(ButtonsLineArray);
// BSLLS:DuplicatedInsertionIntoCollection-on // SKIP
// END

View File

@@ -146,7 +146,9 @@ Function EnsureTable(Val Module
OPI_TypeConversion.GetKeyValueCollection(ColoumnsStruct, ErrorText);
OPI_TypeConversion.GetLine(Table);
ResultStrucutre = New Structure("result", True);
Result_ = "result";
ResultStrucutre = New Structure(Result_, True);
Connection = CreateConnection(Module, Connection, Tls);
ProblemStep = ProcessRecordsStart(Module, True, Connection);
@@ -159,7 +161,7 @@ Function EnsureTable(Val Module
TableDescription = GetTableStructure(Module, Table, Connection, Tls);
If Not TableDescription["result"] Then
If Not TableDescription[Result_] Then
Return TableDescription;
EndIf;
@@ -184,7 +186,7 @@ Function EnsureTable(Val Module
Rollback = Module.ExecuteSQLQuery("ROLLBACK;", , , Connection);
ResultStrucutre.Insert("result" , False);
ResultStrucutre.Insert(Result_ , False);
ResultStrucutre.Insert("error" , ErrorDescription());
ResultStrucutre.Insert("rollback", Rollback);

View File

@@ -605,7 +605,9 @@ Function ExecuteTestCLI(Val Library, Val Method, Val Options, Val Record = True)
EndDo;
// BSLLS:ExternalAppStarting-off
RunApp(LaunchString + " --out """ + ResultFile + """ --debug" , , True);
// BSLLS:ExternalAppStarting-on
Result = ReadCLIResponse(ResultFile);
@@ -2592,7 +2594,6 @@ EndFunction
Function GetCommonModule(Val Name)
Module = Eval(Name);
Return Module;
EndFunction
@@ -2770,10 +2771,12 @@ Function ReadCLIResponse(Val ResultFile)
Try
// BSLLS:ExternalAppStarting-off
JSONReader = New JSONReader();
JSONReader.OpenFile(ResultFile);
Result = ReadJSON(JSONReader, True);
JSONReader.Close();
// BSLLS:ExternalAppStarting-on
Except
@@ -2805,11 +2808,13 @@ Procedure WriteParameterToFile(Val Parameter, Val Value, Val Path)
Values = OPI_Tools.ReadJSONFile(Path);
Values.Insert(Parameter, Value);
// BSLLS:ExternalAppStarting-off
Record = New JSONWriter;
JSONWriterSettings = New JSONWriterSettings(JSONLineBreak.Auto, Chars.Tab);
Record.OpenFile(Path, , , JSONWriterSettings);
WriteJSON(Record, Values);
Record.Close();
// BSLLS:ExternalAppStarting-on
EndProcedure

View File

@@ -105,6 +105,8 @@ Procedure GetCollection(Value) Export
Try
// BSLLS:ExternalAppStarting-off
InitialValue = Value;
If ThisIsCollection(Value) Then
@@ -155,6 +157,8 @@ Procedure GetCollection(Value) Export
EndIf;
// BSLLS:ExternalAppStarting-on
Except
Value = InitialValue;

View File

@@ -260,10 +260,14 @@ EndFunction
Function ReadJSONFile(Val Path) Export
// BSLLS:ExternalAppStarting-off
JSONReader = New JSONReader;
JSONReader.OpenFile(Path);
Values = ReadJSON(JSONReader);
// BSLLS:ExternalAppStarting-on
JSONReader.Close();
Return Values;

View File

@@ -146,7 +146,9 @@ Function EnsureTable(Val Module
OPI_TypeConversion.GetKeyValueCollection(ColoumnsStruct, ErrorText);
OPI_TypeConversion.GetLine(Table);
ResultStrucutre = New Structure("result", True);
Result_ = "result";
ResultStrucutre = New Structure(Result_, True);
Connection = CreateConnection(Module, Connection, Tls);
ProblemStep = ProcessRecordsStart(Module, True, Connection);
@@ -159,7 +161,7 @@ Function EnsureTable(Val Module
TableDescription = GetTableStructure(Module, Table, Connection, Tls);
If Not TableDescription["result"] Then
If Not TableDescription[Result_] Then
Return TableDescription;
EndIf;
@@ -184,7 +186,7 @@ Function EnsureTable(Val Module
Rollback = Module.ExecuteSQLQuery("ROLLBACK;", , , Connection);
ResultStrucutre.Insert("result" , False);
ResultStrucutre.Insert(Result_ , False);
ResultStrucutre.Insert("error" , ErrorDescription());
ResultStrucutre.Insert("rollback", Rollback);

View File

@@ -605,7 +605,9 @@ Function ExecuteTestCLI(Val Library, Val Method, Val Options, Val Record = True)
EndDo;
// BSLLS:ExternalAppStarting-off
RunApp(LaunchString + " --out """ + ResultFile + """ --debug" , , True);
// BSLLS:ExternalAppStarting-on
Result = ReadCLIResponse(ResultFile);
@@ -2592,7 +2594,6 @@ EndFunction
Function GetCommonModule(Val Name)
SetSafeMode(True);
Module = Eval(Name);
SetSafeMode(False);
Return Module;
EndFunction
@@ -2770,10 +2771,12 @@ Function ReadCLIResponse(Val ResultFile)
Try
// BSLLS:ExternalAppStarting-off
JSONReader = New JSONReader();
JSONReader.OpenFile(ResultFile);
Result = ReadJSON(JSONReader, True);
JSONReader.Close();
// BSLLS:ExternalAppStarting-on
Except
@@ -2805,11 +2808,13 @@ Procedure WriteParameterToFile(Val Parameter, Val Value, Val Path)
Values = OPI_Tools.ReadJSONFile(Path);
Values.Insert(Parameter, Value);
// BSLLS:ExternalAppStarting-off
Record = New JSONWriter;
JSONWriterSettings = New JSONWriterSettings(JSONLineBreak.Auto, Chars.Tab);
Record.OpenFile(Path, , , JSONWriterSettings);
WriteJSON(Record, Values);
Record.Close();
// BSLLS:ExternalAppStarting-on
EndProcedure

View File

@@ -14039,8 +14039,10 @@ Procedure VKTeams_MakeActionButton(FunctionParameters)
ButtonsLineArray.Add(OPI_VKTeams.MakeActionButton("Button2", , "https://openintegrations.dev"));
// BSLLS:DuplicatedInsertionIntoCollection-off // SKIP
Keyboard.Add(ButtonsLineArray);
Keyboard.Add(ButtonsLineArray);
// BSLLS:DuplicatedInsertionIntoCollection-on // SKIP
// END

View File

@@ -260,10 +260,14 @@ EndFunction
Function ReadJSONFile(Val Path) Export
// BSLLS:ExternalAppStarting-off
JSONReader = New JSONReader;
JSONReader.OpenFile(Path);
Values = ReadJSON(JSONReader);
// BSLLS:ExternalAppStarting-on
JSONReader.Close();
Return Values;

View File

@@ -105,6 +105,8 @@ Procedure GetCollection(Value) Export
Try
// BSLLS:ExternalAppStarting-off
InitialValue = Value;
If ThisIsCollection(Value) Then
@@ -155,6 +157,8 @@ Procedure GetCollection(Value) Export
EndIf;
// BSLLS:ExternalAppStarting-on
Except
Value = InitialValue;

View File

@@ -14039,8 +14039,10 @@
МассивСтрокиКнопок.Добавить(OPI_VKTeams.СформироватьКнопкуДействия("Кнопка2", , "https://openintegrations.dev"));
// BSLLS:DuplicatedInsertionIntoCollection-off // SKIP
Клавиатура.Добавить(МассивСтрокиКнопок);
Клавиатура.Добавить(МассивСтрокиКнопок);
// BSLLS:DuplicatedInsertionIntoCollection-on // SKIP
// END

View File

@@ -146,7 +146,9 @@
OPI_ПреобразованиеТипов.ПолучитьКоллекциюКлючИЗначение(СтруктураКолонок, ТекстОшибки);
OPI_ПреобразованиеТипов.ПолучитьСтроку(Таблица);
СтруктураРезультата = Новый Структура("result", Истина);
Result_ = "result";
СтруктураРезультата = Новый Структура(Result_, Истина);
Соединение = ОткрытьСоединение(Модуль, Соединение, Tls);
ПроблемныйЭтап = ОбработатьНачалоЗаписи(Модуль, Истина, Соединение);
@@ -159,7 +161,7 @@
ОписаниеТаблицы = ПолучитьСтруктуруТаблицы(Модуль, Таблица, Соединение, Tls);
Если Не ОписаниеТаблицы["result"] Тогда
Если Не ОписаниеТаблицы[Result_] Тогда
Возврат ОписаниеТаблицы;
КонецЕсли;
@@ -184,7 +186,7 @@
Откат = Модуль.ВыполнитьЗапросSQL("ROLLBACK;", , , Соединение);
СтруктураРезультата.Вставить("result" , Ложь);
СтруктураРезультата.Вставить(Result_ , Ложь);
СтруктураРезультата.Вставить("error" , ОписаниеОшибки());
СтруктураРезультата.Вставить("rollback", Откат);

View File

@@ -605,7 +605,9 @@
КонецЦикла;
// BSLLS:ExternalAppStarting-off
ЗапуститьПриложение(СтрокаЗапуска + " --out """ + ФайлРезультата + """ --debug" , , Истина);
// BSLLS:ExternalAppStarting-on
Результат = ПрочестьРезультатCLI(ФайлРезультата);
@@ -2592,7 +2594,6 @@
Функция ПолучитьОбщийМодуль(Знач Имя)
Модуль = Вычислить(Имя);
Возврат Модуль;
КонецФункции
@@ -2770,10 +2771,12 @@
Попытка
// BSLLS:ExternalAppStarting-off
ЧтениеJSON = Новый ЧтениеJSON();
ЧтениеJSON.ОткрытьФайл(ФайлРезультата);
Результат = ПрочитатьJSON(ЧтениеJSON, Истина);
ЧтениеJSON.Закрыть();
// BSLLS:ExternalAppStarting-on
Исключение
@@ -2805,11 +2808,13 @@
Значения = OPI_Инструменты.ПрочитатьJSONФайл(Путь);
Значения.Вставить(Параметр, Значение);
// BSLLS:ExternalAppStarting-off
Запись = Новый ЗаписьJSON;
ПараметрыЗаписиJSON = Новый ПараметрыЗаписиJSON(ПереносСтрокJSON.Авто, Символы.Таб);
Запись.ОткрытьФайл(Путь, , , ПараметрыЗаписиJSON);
ЗаписатьJSON(Запись, Значения);
Запись.Закрыть();
// BSLLS:ExternalAppStarting-on
КонецПроцедуры

View File

@@ -105,6 +105,8 @@
Попытка
// BSLLS:ExternalAppStarting-off
ИсходноеЗначение = Значение;
Если ЭтоКоллекция(Значение) Тогда
@@ -155,6 +157,8 @@
КонецЕсли;
// BSLLS:ExternalAppStarting-on
Исключение
Значение = ИсходноеЗначение;

View File

@@ -260,10 +260,14 @@
Функция ПрочитатьJSONФайл(Знач Путь) Экспорт
// BSLLS:ExternalAppStarting-off
ЧтениеJSON = Новый ЧтениеJSON;
ЧтениеJSON.ОткрытьФайл(Путь);
Значения = ПрочитатьJSON(ЧтениеJSON);
// BSLLS:ExternalAppStarting-on
ЧтениеJSON.Закрыть();
Возврат Значения;