1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-27 21:48:56 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot) 2024-10-27 16:33:57 +03:00
parent 016bb08460
commit b7768ff8d2
6 changed files with 5223 additions and 5223 deletions

File diff suppressed because it is too large Load Diff

View File

@ -486,7 +486,7 @@ Function UploadPhotoToServer(Val Image, Val Parameters = "", Val View = "Post")
EndDo;
If TypeOf(Response) <> Type("Map") Then
Return GetStringFromBinaryData(Response);
Return ПолучитьСтрокуИзДвоичныхДанных(Response);
EndIf;
FillPhotoUploadParameters(Method, Response, Parameters);

View File

@ -2955,7 +2955,7 @@ Procedure CLI_VK_CreateTokenRetrievalLink(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("vk", "CreateTokenRetrievalLink", Options);
Result = GetStringFromBinaryData(Result);
Result = ПолучитьСтрокуИзДвоичныхДанных(Result);
OPI_TestDataRetrieval.WriteLogCLI(Result, "CreateTokenRetrievalLink", "VK");
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип("String").Заполнено();
@ -3416,7 +3416,7 @@ Procedure CLI_VK_ShortenLink(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("vk", "ShortenLink", Options);
Result = GetStringFromBinaryData(Result);
Result = ПолучитьСтрокуИзДвоичныхДанных(Result);
OPI_TestDataRetrieval.WriteLogCLI(Result, "ShortenLink", "VK");
OPI_TestDataRetrieval.Check_String(Result);
@ -4904,7 +4904,7 @@ Procedure CLI_GoogleWorkspace_FormCodeRetrievalLink(FunctionParameters)
Options.Insert("id" , ClientID);
Result = OPI_TestDataRetrieval.ExecuteTestCLI("google", "FormCodeRetrievalLink", Options);
Result = GetStringFromBinaryData(Result);
Result = ПолучитьСтрокуИзДвоичныхДанных(Result);
OPI_TestDataRetrieval.Check_String(Result);
OPI_TestDataRetrieval.WriteParameter("Google_Link", Result);
@ -5916,7 +5916,7 @@ Procedure CLI_Twitter_GetAuthorizationLink(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("twitter", "GetAuthorizationLink", Options);
Result = GetStringFromBinaryData(Result);
Result = ПолучитьСтрокуИзДвоичныхДанных(Result);
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetAuthorizationLink", "Twitter");
OPI_TestDataRetrieval.Check_String(Result);
@ -7754,7 +7754,7 @@ Procedure CLI_Dropbox_GetAuthorizationLink(FunctionParameters)
Options.Insert("appkey", AppKey);
Result = OPI_TestDataRetrieval.ExecuteTestCLI("dropbox", "GetAuthorizationLink", Options);
Result = GetStringFromBinaryData(Result);
Result = ПолучитьСтрокуИзДвоичныхДанных(Result);
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetAuthorizationLink", "Dropbox");
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип("String");
@ -10326,7 +10326,7 @@ Procedure CLI_Bitrix24_GetAppAuthLink(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("bitrix24", "GetAppAuthLink", Options);
Result = GetStringFromBinaryData(Result);
Result = ПолучитьСтрокуИзДвоичныхДанных(Result);
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetAppAuthLink", "Bitrix24");
OPI_TestDataRetrieval.Check_String(Result);

View File

@ -103,7 +103,7 @@ Procedure GetCollection(Value) Export
Else
If TypeOf(Value) = Type("BinaryData") Then
Value = GetStringFromBinaryData(Value);
Value = ПолучитьСтрокуИзДвоичныхДанных(Value);
Else
Value = OPI_Tools.NumberToString(Value);
EndIf;
@ -252,7 +252,7 @@ Procedure GetLine(Value, Val FromSource = False) Export
ElsIf TypeOf(Value) = Type("BinaryData") Then
Value = GetStringFromBinaryData(Value);
Value = ПолучитьСтрокуИзДвоичныхДанных(Value);
ElsIf ThisIsCollection(Value) Then

View File

@ -73,16 +73,16 @@ Function HMAC(Val Key, Val Data, Type, BlockSize) Export
Key = Left(Key + RepeatString("00", BlockSize), BlockSize * Twice);
EndIf;
Key = GetBinaryDataBufferFromBinaryData(GetBinaryDataFromHexString(Key));
Key = ПолучитьБуферДвоичныхДанныхИзДвоичныхДанных(ПолучитьДвоичныеДанныеИзHexСтроки(Key));
Ipad = GetBinaryDataBufferFromHexString(RepeatString("36", BlockSize));
Opad = GetBinaryDataBufferFromHexString(RepeatString("5c", BlockSize));
Ipad = ПолучитьБуферДвоичныхДанныхИзHexСтроки(RepeatString("36", BlockSize));
Opad = ПолучитьБуферДвоичныхДанныхИзHexСтроки(RepeatString("5c", BlockSize));
Ipad.WriteBitwiseXor(0, Key);
Ikeypad = GetBinaryDataFromBinaryDataBuffer(ipad);
Ikeypad = ПолучитьДвоичныеДанныеИзБуфераДвоичныхДанных(ipad);
Opad.WriteBitwiseXor(0, Key);
Okeypad = GetBinaryDataFromBinaryDataBuffer(opad);
Okeypad = ПолучитьДвоичныеДанныеИзБуфераДвоичныхДанных(opad);
Return Hash(UniteBinaryData(okeypad, Hash(UniteBinaryData(ikeypad, Data), Type)), Type);
@ -94,7 +94,7 @@ Function UniteBinaryData(BinaryData1, BinaryData2) Export
BinaryDataArray.Add(BinaryData1);
BinaryDataArray.Add(BinaryData2);
Return ConcatenateBinaryData(BinaryDataArray);
Return СоединитьДвоичныеДанные(BinaryDataArray);
EndFunction

View File

@ -282,7 +282,7 @@ Function JsonToStructure(Val Text) Export
Return "";
EndIf;
Text = ?(TypeOf(Text) = Type("BinaryData"), GetStringFromBinaryData(Text), Text);
Text = ?(TypeOf(Text) = Type("BinaryData"), ПолучитьСтрокуИзДвоичныхДанных(Text), Text);
JSONReader = New JSONReader;
JSONReader.SetString(Text);
@ -1312,7 +1312,7 @@ Function ZipLFH()
Buffer.WriteInt32(22, 0); // uncompressed size
Buffer.WriteInt16(26, 4); // filename legth - "data"
Buffer.WriteInt16(28, 0); // extra field length
Buffer.Write(30, GetBinaryDataBufferFromString("data", "ascii", False));
Buffer.Write(30, ПолучитьБуферДвоичныхДанныхИзСтроки("data", "ascii", False));
Return Buffer;
@ -1352,7 +1352,7 @@ Function ZipCDH(CRC32, CompressedDataSize, UncompressedDataSize)
Buffer.WriteInt16(36, 0); // internal file attributes
Buffer.WriteInt32(38, 2176057344); // external file attributes
Buffer.WriteInt32(42, 0); // relative offset of local header
Buffer.Write(46, GetBinaryDataBufferFromString("data", "ascii", False));
Buffer.Write(46, ПолучитьБуферДвоичныхДанныхИзСтроки("data", "ascii", False));
Return Buffer;