1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-09-16 17:01:18 +03:00
parent a70ad8ca04
commit 52f10bc5f8
20 changed files with 9267 additions and 9663 deletions

View File

@@ -12,8 +12,7 @@
Image = "https://hut.openintegrations.dev/test_data/picture.jpg";
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Example</name>
| <value>123</value>

View File

@@ -7,12 +7,8 @@
Directory = True; // Formation URL in path-style
Name = "opi-dirbucket3";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig, Directory);

View File

@@ -51,8 +51,7 @@ List of available types is described on the initial page of the MSSQL library do
Image = "https://hut.openintegrations.dev/test_data/picture.jpg";
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Example</name>
| <value>123</value>

View File

@@ -44,13 +44,9 @@ Method at AWS documentation: [PutBucketEncryption](https://docs.aws.amazon.com/A
Directory = True; // Formation URL in path-style
Name = "opi-dirbucket3";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig, Directory);
```

View File

@@ -12,8 +12,7 @@
Картинка = "https://hut.openintegrations.dev/test_data/picture.jpg";
OPI_ПреобразованиеТипов.ПолучитьДвоичныеДанные(Картинка); // Картинка - Тип: ДвоичныеДанные
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Пример</name>
| <value>123</value>

View File

@@ -7,12 +7,8 @@
Каталог = Истина; // Формирование URL в path-style
Наименование = "opi-dirbucket3";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Результат = OPI_S3.УстановитьШифрованиеБакета(Наименование, ОсновныеДанные, XMLКонфигурация, Каталог);

View File

@@ -51,8 +51,7 @@ import TabItem from '@theme/TabItem';
Картинка = "https://hut.openintegrations.dev/test_data/picture.jpg";
OPI_ПреобразованиеТипов.ПолучитьДвоичныеДанные(Картинка); // Картинка - Тип: ДвоичныеДанные
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Пример</name>
| <value>123</value>

View File

@@ -44,13 +44,9 @@ import TabItem from '@theme/TabItem';
Каталог = Истина; // Формирование URL в path-style
Наименование = "opi-dirbucket3";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Результат = OPI_S3.УстановитьШифрованиеБакета(Наименование, ОсновныеДанные, XMLКонфигурация, Каталог);
```

File diff suppressed because it is too large Load Diff

View File

@@ -2299,11 +2299,7 @@ Procedure SQLL_CommonMethods() Export
SQLite_IsConnector(TestParameters);
SQLite_ConnectExtension(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -2347,11 +2343,7 @@ Procedure SQLL_ORM() Export
SQLite_DeleteTable(TestParameters);
SQLite_GetRecordsFilterStrucutre(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -3162,7 +3154,7 @@ Procedure Telegram_SendImage(FunctionParameters)
Process(Result, "Telegram", "SendImage", "Keyboard collection", FunctionParameters, Text);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
OPI_Tools.Pause(5);
@@ -3193,7 +3185,7 @@ Procedure Telegram_SendVideo(FunctionParameters)
// END
DeleteFiles(VideoPath);
OPI_Tools.RemoveFileWithTry(VideoPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendVideo", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3225,7 +3217,7 @@ Procedure Telegram_SendAudio(FunctionParameters)
// END
DeleteFiles(AudioPath);
OPI_Tools.RemoveFileWithTry(AudioPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendAudio", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3261,7 +3253,7 @@ Procedure Telegram_SendDocument(FunctionParameters)
// END
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendDocument", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3293,7 +3285,7 @@ Procedure Telegram_SendGif(FunctionParameters)
// END
DeleteFiles(GifPath);
OPI_Tools.RemoveFileWithTry(GifPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendGif", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3338,9 +3330,9 @@ Procedure Telegram_SendMediaGroup(FunctionParameters)
Result = OPI_Telegram.SendMediaGroup(Token, ChannelID, Text, MediaGroup);
DeleteFiles(VideoPath);
DeleteFiles(ImagePath);
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(VideoPath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(ImagePath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendMediaGroup", "Documents");
@@ -3817,7 +3809,7 @@ Procedure VK_CreatePost(FunctionParameters)
Process(Result, "VK", "CreatePost", "Path", FunctionParameters);
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -3864,8 +3856,7 @@ Procedure VK_CreateCompositePost(FunctionParameters)
// END
Process(Result, "VK", "CreateCompositePost");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -3976,7 +3967,7 @@ Procedure VK_CreateStory(FunctionParameters)
Process(Result, "VK", "CreateStory", "Path");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -4748,7 +4739,8 @@ Procedure YandexDisk_UploadFile(FunctionParameters)
// END
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
Process(Result, "YandexDisk", "UploadFile");
OPI_YandexDisk.DeleteObject(Token, Path2, False); // SKIP
@@ -7295,7 +7287,8 @@ Procedure Dropbox_UploadFile(FunctionParameters)
// END
Process(Result, "Dropbox", "UploadFile", , Path);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
If Not OPI_Tools.IsOneScript() And FunctionParameters.Property("Big") Then
@@ -11859,7 +11852,7 @@ Procedure VKTeams_SendFile(FunctionParameters)
Process(Result, "VKTeams", "SendFile", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -11954,7 +11947,7 @@ Procedure VKTeams_SendVoice(FunctionParameters)
Process(Result, "VKTeams", "SendVoice", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -12012,7 +12005,7 @@ Procedure VKTeams_ChangeChatPicture(FunctionParameters)
Process(Result, "VKTeams", "ChangeChatPicture");
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -14397,13 +14390,9 @@ Procedure S3_PutBucketEncryption(FunctionParameters)
Name = "opi-dirbucket3";
Name = ?(Directory, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig, Directory);
@@ -14850,8 +14839,8 @@ Procedure S3_GetObject(FunctionParameters)
Process(Result, "S3", "GetObject", "Big BD", 34432400);
DeleteFiles(BigTempFile);
DeleteFiles(TempFile);
OPI_Tools.RemoveFileWithTry(BigTempFile, "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(TempFile , "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15406,11 +15395,7 @@ Procedure SQLite_CreateConnection(FunctionParameters)
Process(Closing, "SQLite", "CreateConnection", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -15428,11 +15413,7 @@ Procedure SQLite_CloseConnection(FunctionParameters)
Process(Closing, "SQLite", "CloseConnection");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -15532,11 +15513,7 @@ Procedure SQLite_ExecuteSQLQuery(FunctionParameters)
Process(Result, "SQLite", "ExecuteSQLQuery", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -15641,11 +15618,7 @@ Procedure SQLite_AddRecords(FunctionParameters)
Result = OPI_SQLite.AddRecords("test1", RowMap, , Base);
Process(Result, "SQLite", "AddRecords", "An obscure column");
Try
DeleteFiles(PictureFile);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(PictureFile, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15874,11 +15847,7 @@ Procedure SQLite_ConnectExtension(FunctionParameters)
Result = OPI_SQLite.CloseConnection(Connection);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting extension file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Error deleting extension file");
EndProcedure
@@ -19494,11 +19463,7 @@ Procedure HTTPClient_SetResponseFile(FunctionParameters)
Process(CheckResult, "HTTPClient", "SetResponseFile", "Body", TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -20191,11 +20156,7 @@ Procedure HTTPClient_ReturnResponseFilename(FunctionParameters)
Process(Result, "HTTPClient", "ReturnResponseFilename", , TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -20579,11 +20540,7 @@ Procedure OpenAI_CreateTranscription(FunctionParameters)
// END
Try
DeleteFiles(Audio);
Except
Message("Error deleting file after test");
EndTry;
OPI_Tools.RemoveFileWithTry(Audio, "Failed to delete the temporary file after the test!");
Process(Result, "OpenAI", "CreateTranscription");
@@ -20950,8 +20907,7 @@ Procedure MSSQL_AddRecords(FunctionParameters)
Image = FunctionParameters["Picture"];
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Example</name>
| <value>123</value>
@@ -21925,11 +21881,7 @@ Procedure FTP_UploadFile(FunctionParameters)
Process(Result, "FTP", "UploadFile", "Big, " + Postfix, BigData.Size());
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -22310,11 +22262,7 @@ Procedure FTP_SaveFile(FunctionParameters)
EndDo;
Try
DeleteFiles(FileName);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(FileName, "Failed to delete the temporary file after the test!");
EndProcedure

View File

@@ -2300,11 +2300,7 @@ Procedure SQLL_CommonMethods() Export
SQLite_IsConnector(TestParameters);
SQLite_ConnectExtension(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -2348,11 +2344,7 @@ Procedure SQLL_ORM() Export
SQLite_DeleteTable(TestParameters);
SQLite_GetRecordsFilterStrucutre(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -3253,7 +3245,7 @@ Procedure Telegram_SendImage(FunctionParameters)
Process(Result, "Telegram", "SendImage", "Keyboard collection", FunctionParameters, Text);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
OPI_Tools.Pause(5);
@@ -3302,7 +3294,7 @@ Procedure Telegram_SendVideo(FunctionParameters)
// END
DeleteFiles(VideoPath);
OPI_Tools.RemoveFileWithTry(VideoPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendVideo", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3352,7 +3344,7 @@ Procedure Telegram_SendAudio(FunctionParameters)
// END
DeleteFiles(AudioPath);
OPI_Tools.RemoveFileWithTry(AudioPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendAudio", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3414,7 +3406,7 @@ Procedure Telegram_SendDocument(FunctionParameters)
// END
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendDocument", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3464,7 +3456,7 @@ Procedure Telegram_SendGif(FunctionParameters)
// END
DeleteFiles(GifPath);
OPI_Tools.RemoveFileWithTry(GifPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendGif", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3521,9 +3513,9 @@ Procedure Telegram_SendMediaGroup(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("telegram", "SendMediaGroup", Options);
DeleteFiles(VideoPath);
DeleteFiles(ImagePath);
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(VideoPath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(ImagePath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendMediaGroup", "Documents");
@@ -4199,7 +4191,7 @@ Procedure VK_CreatePost(FunctionParameters)
Process(Result, "VK", "CreatePost", "Path", FunctionParameters);
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -4262,8 +4254,7 @@ Procedure VK_CreateCompositePost(FunctionParameters)
// END
Process(Result, "VK", "CreateCompositePost");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -4414,7 +4405,7 @@ Procedure VK_CreateStory(FunctionParameters)
Process(Result, "VK", "CreateStory", "Path");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -5403,7 +5394,8 @@ Procedure YandexDisk_UploadFile(FunctionParameters)
// END
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
Process(Result, "YandexDisk", "UploadFile");
OPI_YandexDisk.DeleteObject(Token, Path2, False); // SKIP
@@ -8837,7 +8829,8 @@ Procedure Dropbox_UploadFile(FunctionParameters)
// END
Process(Result, "Dropbox", "UploadFile", , Path);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
If Not OPI_Tools.IsOneScript() And FunctionParameters.Property("Big") Then
@@ -15268,7 +15261,7 @@ Procedure VKTeams_SendFile(FunctionParameters)
Process(Result, "VKTeams", "SendFile", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15407,7 +15400,7 @@ Procedure VKTeams_SendVoice(FunctionParameters)
Process(Result, "VKTeams", "SendVoice", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15490,7 +15483,7 @@ Procedure VKTeams_ChangeChatPicture(FunctionParameters)
Process(Result, "VKTeams", "ChangeChatPicture");
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -18563,13 +18556,9 @@ Procedure S3_PutBucketEncryption(FunctionParameters)
Name = "opi-dirbucket3";
Name = ?(Directory, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Options = New Structure;
Options.Insert("name", Name);
@@ -19235,8 +19224,8 @@ Procedure S3_GetObject(FunctionParameters)
Process(Result, "S3", "GetObject", "Big BD", 34432400);
DeleteFiles(BigTempFile);
DeleteFiles(TempFile);
OPI_Tools.RemoveFileWithTry(BigTempFile, "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(TempFile , "Failed to delete the temporary file after the test!");
EndProcedure
@@ -19919,11 +19908,7 @@ Procedure SQLite_CreateConnection(FunctionParameters)
Process(Closing, "SQLite", "CreateConnection", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -19941,11 +19926,7 @@ Procedure SQLite_CloseConnection(FunctionParameters)
Process(Closing, "SQLite", "CloseConnection");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -20067,11 +20048,7 @@ Procedure SQLite_ExecuteSQLQuery(FunctionParameters)
Process(Result, "SQLite", "ExecuteSQLQuery", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -20218,11 +20195,7 @@ Procedure SQLite_AddRecords(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
Process(Result, "SQLite", "AddRecords", "An obscure column");
Try
DeleteFiles(PictureFile);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(PictureFile, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -20521,11 +20494,7 @@ Procedure SQLite_ConnectExtension(FunctionParameters)
Result = OPI_SQLite.CloseConnection(Connection);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting extension file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Error deleting extension file");
EndProcedure
@@ -25650,11 +25619,7 @@ Procedure HTTPClient_SetResponseFile(FunctionParameters)
Process(CheckResult, "HTTPClient", "SetResponseFile", "Body", TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -26347,11 +26312,7 @@ Procedure HTTPClient_ReturnResponseFilename(FunctionParameters)
Process(Result, "HTTPClient", "ReturnResponseFilename", , TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -26837,11 +26798,7 @@ Procedure OpenAI_CreateTranscription(FunctionParameters)
// END
Try
DeleteFiles(Audio);
Except
Message("Error deleting file after test");
EndTry;
OPI_Tools.RemoveFileWithTry(Audio, "Failed to delete the temporary file after the test!");
Process(Result, "OpenAI", "CreateTranscription");
@@ -27361,8 +27318,7 @@ Procedure MSSQL_AddRecords(FunctionParameters)
Image = FunctionParameters["Picture"];
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Example</name>
| <value>123</value>
@@ -28792,11 +28748,7 @@ Procedure FTP_UploadFile(FunctionParameters)
Process(Result, "FTP", "UploadFile", "Big, " + Postfix, BigData.Size());
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -29354,11 +29306,7 @@ Procedure FTP_SaveFile(FunctionParameters)
EndDo;
Try
DeleteFiles(FileName);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(FileName, "Failed to delete the temporary file after the test!");
EndProcedure

View File

@@ -117,11 +117,7 @@ Function ExecuteTestCLI(Val Library, Val Method, Val Options, Val Record = True)
WriteCLICall(Library, Method, WriteOptions);
EndIf;
Try
DeleteFiles(ResultFile);
Except
Message("Failed to delete the temporary file after the test!");
EndTry;
OPI_Tools.RemoveFileWithTry(ResultFile, "Failed to delete the temporary file after the test!");
Return Result;
@@ -557,7 +553,7 @@ Function GetFilePath(Val Path) Export
Path = TFN;
Binary = New BinaryData(Path);
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
Else

View File

@@ -117,11 +117,7 @@ Function ExecuteTestCLI(Val Library, Val Method, Val Options, Val Record = True)
WriteCLICall(Library, Method, WriteOptions);
EndIf;
Try
DeleteFiles(ResultFile);
Except
Message("Failed to delete the temporary file after the test!");
EndTry;
OPI_Tools.RemoveFileWithTry(ResultFile, "Failed to delete the temporary file after the test!");
Return Result;
@@ -557,7 +553,7 @@ Function GetFilePath(Val Path) Export
Path = TFN;
Binary = New BinaryData(Path);
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
Else

View File

@@ -2299,11 +2299,7 @@ Procedure SQLL_CommonMethods() Export
SQLite_IsConnector(TestParameters);
SQLite_ConnectExtension(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -2347,11 +2343,7 @@ Procedure SQLL_ORM() Export
SQLite_DeleteTable(TestParameters);
SQLite_GetRecordsFilterStrucutre(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -3163,7 +3155,7 @@ Procedure Telegram_SendImage(FunctionParameters)
Process(Result, "Telegram", "SendImage", "Keyboard collection", FunctionParameters, Text);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
OPI_Tools.Pause(5);
@@ -3194,7 +3186,7 @@ Procedure Telegram_SendVideo(FunctionParameters)
// END
DeleteFiles(VideoPath);
OPI_Tools.RemoveFileWithTry(VideoPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendVideo", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3226,7 +3218,7 @@ Procedure Telegram_SendAudio(FunctionParameters)
// END
DeleteFiles(AudioPath);
OPI_Tools.RemoveFileWithTry(AudioPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendAudio", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3262,7 +3254,7 @@ Procedure Telegram_SendDocument(FunctionParameters)
// END
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendDocument", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3294,7 +3286,7 @@ Procedure Telegram_SendGif(FunctionParameters)
// END
DeleteFiles(GifPath);
OPI_Tools.RemoveFileWithTry(GifPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendGif", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3339,9 +3331,9 @@ Procedure Telegram_SendMediaGroup(FunctionParameters)
Result = OPI_Telegram.SendMediaGroup(Token, ChannelID, Text, MediaGroup);
DeleteFiles(VideoPath);
DeleteFiles(ImagePath);
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(VideoPath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(ImagePath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendMediaGroup", "Documents");
@@ -3818,7 +3810,7 @@ Procedure VK_CreatePost(FunctionParameters)
Process(Result, "VK", "CreatePost", "Path", FunctionParameters);
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -3865,8 +3857,7 @@ Procedure VK_CreateCompositePost(FunctionParameters)
// END
Process(Result, "VK", "CreateCompositePost");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -3977,7 +3968,7 @@ Procedure VK_CreateStory(FunctionParameters)
Process(Result, "VK", "CreateStory", "Path");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -4749,7 +4740,8 @@ Procedure YandexDisk_UploadFile(FunctionParameters)
// END
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
Process(Result, "YandexDisk", "UploadFile");
OPI_YandexDisk.DeleteObject(Token, Path2, False); // SKIP
@@ -7296,7 +7288,8 @@ Procedure Dropbox_UploadFile(FunctionParameters)
// END
Process(Result, "Dropbox", "UploadFile", , Path);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
If Not OPI_Tools.IsOneScript() And FunctionParameters.Property("Big") Then
@@ -11860,7 +11853,7 @@ Procedure VKTeams_SendFile(FunctionParameters)
Process(Result, "VKTeams", "SendFile", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -11955,7 +11948,7 @@ Procedure VKTeams_SendVoice(FunctionParameters)
Process(Result, "VKTeams", "SendVoice", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -12013,7 +12006,7 @@ Procedure VKTeams_ChangeChatPicture(FunctionParameters)
Process(Result, "VKTeams", "ChangeChatPicture");
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -14398,13 +14391,9 @@ Procedure S3_PutBucketEncryption(FunctionParameters)
Name = "opi-dirbucket3";
Name = ?(Directory, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Result = OPI_S3.PutBucketEncryption(Name, BasicData, XmlConfig, Directory);
@@ -14851,8 +14840,8 @@ Procedure S3_GetObject(FunctionParameters)
Process(Result, "S3", "GetObject", "Big BD", 34432400);
DeleteFiles(BigTempFile);
DeleteFiles(TempFile);
OPI_Tools.RemoveFileWithTry(BigTempFile, "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(TempFile , "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15407,11 +15396,7 @@ Procedure SQLite_CreateConnection(FunctionParameters)
Process(Closing, "SQLite", "CreateConnection", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -15429,11 +15414,7 @@ Procedure SQLite_CloseConnection(FunctionParameters)
Process(Closing, "SQLite", "CloseConnection");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -15533,11 +15514,7 @@ Procedure SQLite_ExecuteSQLQuery(FunctionParameters)
Process(Result, "SQLite", "ExecuteSQLQuery", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -15642,11 +15619,7 @@ Procedure SQLite_AddRecords(FunctionParameters)
Result = OPI_SQLite.AddRecords("test1", RowMap, , Base);
Process(Result, "SQLite", "AddRecords", "An obscure column");
Try
DeleteFiles(PictureFile);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(PictureFile, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15875,11 +15848,7 @@ Procedure SQLite_ConnectExtension(FunctionParameters)
Result = OPI_SQLite.CloseConnection(Connection);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting extension file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Error deleting extension file");
EndProcedure
@@ -19495,11 +19464,7 @@ Procedure HTTPClient_SetResponseFile(FunctionParameters)
Process(CheckResult, "HTTPClient", "SetResponseFile", "Body", TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -20192,11 +20157,7 @@ Procedure HTTPClient_ReturnResponseFilename(FunctionParameters)
Process(Result, "HTTPClient", "ReturnResponseFilename", , TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -20580,11 +20541,7 @@ Procedure OpenAI_CreateTranscription(FunctionParameters)
// END
Try
DeleteFiles(Audio);
Except
Message("Error deleting file after test");
EndTry;
OPI_Tools.RemoveFileWithTry(Audio, "Failed to delete the temporary file after the test!");
Process(Result, "OpenAI", "CreateTranscription");
@@ -20951,8 +20908,7 @@ Procedure MSSQL_AddRecords(FunctionParameters)
Image = FunctionParameters["Picture"];
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Example</name>
| <value>123</value>
@@ -21926,11 +21882,7 @@ Procedure FTP_UploadFile(FunctionParameters)
Process(Result, "FTP", "UploadFile", "Big, " + Postfix, BigData.Size());
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -22311,11 +22263,7 @@ Procedure FTP_SaveFile(FunctionParameters)
EndDo;
Try
DeleteFiles(FileName);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(FileName, "Failed to delete the temporary file after the test!");
EndProcedure

View File

@@ -2300,11 +2300,7 @@ Procedure SQLL_CommonMethods() Export
SQLite_IsConnector(TestParameters);
SQLite_ConnectExtension(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -2348,11 +2344,7 @@ Procedure SQLL_ORM() Export
SQLite_DeleteTable(TestParameters);
SQLite_GetRecordsFilterStrucutre(TestParameters);
Try
DeleteFiles(Base);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(Base, "Database file deletion error");
EndProcedure
@@ -3253,7 +3245,7 @@ Procedure Telegram_SendImage(FunctionParameters)
Process(Result, "Telegram", "SendImage", "Keyboard collection", FunctionParameters, Text);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
OPI_Tools.Pause(5);
@@ -3302,7 +3294,7 @@ Procedure Telegram_SendVideo(FunctionParameters)
// END
DeleteFiles(VideoPath);
OPI_Tools.RemoveFileWithTry(VideoPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendVideo", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3352,7 +3344,7 @@ Procedure Telegram_SendAudio(FunctionParameters)
// END
DeleteFiles(AudioPath);
OPI_Tools.RemoveFileWithTry(AudioPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendAudio", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3414,7 +3406,7 @@ Procedure Telegram_SendDocument(FunctionParameters)
// END
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendDocument", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3464,7 +3456,7 @@ Procedure Telegram_SendGif(FunctionParameters)
// END
DeleteFiles(GifPath);
OPI_Tools.RemoveFileWithTry(GifPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendGif", "Binary", FunctionParameters, Text);
OPI_Tools.Pause(5);
@@ -3521,9 +3513,9 @@ Procedure Telegram_SendMediaGroup(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("telegram", "SendMediaGroup", Options);
DeleteFiles(VideoPath);
DeleteFiles(ImagePath);
DeleteFiles(DocumentPath);
OPI_Tools.RemoveFileWithTry(VideoPath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(ImagePath , "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(DocumentPath, "Failed to delete the temporary file after the test!");
Process(Result, "Telegram", "SendMediaGroup", "Documents");
@@ -4199,7 +4191,7 @@ Procedure VK_CreatePost(FunctionParameters)
Process(Result, "VK", "CreatePost", "Path", FunctionParameters);
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -4262,8 +4254,7 @@ Procedure VK_CreateCompositePost(FunctionParameters)
// END
Process(Result, "VK", "CreateCompositePost");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -4414,7 +4405,7 @@ Procedure VK_CreateStory(FunctionParameters)
Process(Result, "VK", "CreateStory", "Path");
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -5403,7 +5394,8 @@ Procedure YandexDisk_UploadFile(FunctionParameters)
// END
DeleteFiles(TFN);
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
Process(Result, "YandexDisk", "UploadFile");
OPI_YandexDisk.DeleteObject(Token, Path2, False); // SKIP
@@ -8837,7 +8829,8 @@ Procedure Dropbox_UploadFile(FunctionParameters)
// END
Process(Result, "Dropbox", "UploadFile", , Path);
DeleteFiles(ImagePath);
OPI_Tools.RemoveFileWithTry(ImagePath, "Failed to delete the temporary file after the test!");
If Not OPI_Tools.IsOneScript() And FunctionParameters.Property("Big") Then
@@ -15268,7 +15261,7 @@ Procedure VKTeams_SendFile(FunctionParameters)
Process(Result, "VKTeams", "SendFile", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15407,7 +15400,7 @@ Procedure VKTeams_SendVoice(FunctionParameters)
Process(Result, "VKTeams", "SendVoice", , FunctionParameters);
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -15490,7 +15483,7 @@ Procedure VKTeams_ChangeChatPicture(FunctionParameters)
Process(Result, "VKTeams", "ChangeChatPicture");
DeleteFiles(FilePath);
OPI_Tools.RemoveFileWithTry(FilePath, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -18563,13 +18556,9 @@ Procedure S3_PutBucketEncryption(FunctionParameters)
Name = "opi-dirbucket3";
Name = ?(Directory, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XmlConfig = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Options = New Structure;
Options.Insert("name", Name);
@@ -19235,8 +19224,8 @@ Procedure S3_GetObject(FunctionParameters)
Process(Result, "S3", "GetObject", "Big BD", 34432400);
DeleteFiles(BigTempFile);
DeleteFiles(TempFile);
OPI_Tools.RemoveFileWithTry(BigTempFile, "Failed to delete the temporary file after the test!");
OPI_Tools.RemoveFileWithTry(TempFile , "Failed to delete the temporary file after the test!");
EndProcedure
@@ -19919,11 +19908,7 @@ Procedure SQLite_CreateConnection(FunctionParameters)
Process(Closing, "SQLite", "CreateConnection", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -19941,11 +19926,7 @@ Procedure SQLite_CloseConnection(FunctionParameters)
Process(Closing, "SQLite", "CloseConnection");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -20067,11 +20048,7 @@ Procedure SQLite_ExecuteSQLQuery(FunctionParameters)
Process(Result, "SQLite", "ExecuteSQLQuery", "Closing");
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Database file deletion error", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Database file deletion error");
EndProcedure
@@ -20218,11 +20195,7 @@ Procedure SQLite_AddRecords(FunctionParameters)
Result = OPI_TestDataRetrieval.ExecuteTestCLI("sqlite", "AddRecords", Options);
Process(Result, "SQLite", "AddRecords", "An obscure column");
Try
DeleteFiles(PictureFile);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(PictureFile, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -20521,11 +20494,7 @@ Procedure SQLite_ConnectExtension(FunctionParameters)
Result = OPI_SQLite.CloseConnection(Connection);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting extension file", "SQLite");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Error deleting extension file");
EndProcedure
@@ -25650,11 +25619,7 @@ Procedure HTTPClient_SetResponseFile(FunctionParameters)
Process(CheckResult, "HTTPClient", "SetResponseFile", "Body", TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -26347,11 +26312,7 @@ Procedure HTTPClient_ReturnResponseFilename(FunctionParameters)
Process(Result, "HTTPClient", "ReturnResponseFilename", , TFN);
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "File deletion error", "HTTPClient");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -26837,11 +26798,7 @@ Procedure OpenAI_CreateTranscription(FunctionParameters)
// END
Try
DeleteFiles(Audio);
Except
Message("Error deleting file after test");
EndTry;
OPI_Tools.RemoveFileWithTry(Audio, "Failed to delete the temporary file after the test!");
Process(Result, "OpenAI", "CreateTranscription");
@@ -27361,8 +27318,7 @@ Procedure MSSQL_AddRecords(FunctionParameters)
Image = FunctionParameters["Picture"];
OPI_TypeConversion.GetBinaryData(Image); // Image - Type: BinaryData
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Example</name>
| <value>123</value>
@@ -28792,11 +28748,7 @@ Procedure FTP_UploadFile(FunctionParameters)
Process(Result, "FTP", "UploadFile", "Big, " + Postfix, BigData.Size());
Try
DeleteFiles(TFN);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(TFN, "Failed to delete the temporary file after the test!");
EndProcedure
@@ -29354,11 +29306,7 @@ Procedure FTP_SaveFile(FunctionParameters)
EndDo;
Try
DeleteFiles(FileName);
Except
OPI_TestDataRetrieval.LogServiceInformation(ErrorDescription(), "Error deleting a picture file", "FTP");
EndTry;
OPI_Tools.RemoveFileWithTry(FileName, "Failed to delete the temporary file after the test!");
EndProcedure

View File

@@ -2299,11 +2299,7 @@
SQLite_ЭтоКоннектор(ПараметрыТеста);
SQLite_ПодключитьРасширение(ПараметрыТеста);
Попытка
УдалитьФайлы(База);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(База, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -2347,11 +2343,7 @@
SQLite_УдалитьТаблицу(ПараметрыТеста);
SQLite_ПолучитьСтруктуруФильтраЗаписей(ПараметрыТеста);
Попытка
УдалитьФайлы(База);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(База, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -3162,7 +3154,7 @@
Обработать(Результат, "Telegram", "ОтправитьКартинку", "Клавиатура коллекция", ПараметрыФункции, Текст);
УдалитьФайлы(КартинкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.Пауза(5);
@@ -3193,7 +3185,7 @@
// END
УдалитьФайлы(ВидеоПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьВидео", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3225,7 +3217,7 @@
// END
УдалитьФайлы(АудиоПуть);
OPI_Инструменты.УдалитьФайлВПопытке(АудиоПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьАудио", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3261,7 +3253,7 @@
// END
УдалитьФайлы(ДокументПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьДокумент", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3293,7 +3285,7 @@
// END
УдалитьФайлы(ГифкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ГифкаПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьГифку", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3338,9 +3330,9 @@
Результат = OPI_Telegram.ОтправитьМедиагруппу(Токен, IDКанала, Текст, Медиагруппа);
УдалитьФайлы(ВидеоПуть);
УдалитьФайлы(КартинкаПуть);
УдалитьФайлы(ДокументПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть , "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьМедиагруппу", "Документы");
@@ -3817,7 +3809,7 @@
Обработать(Результат, "VK", "СоздатьПост", "Путь", ПараметрыФункции);
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -3864,8 +3856,7 @@
// END
Обработать(Результат, "VK", "СоздатьСоставнойПост");
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -3976,7 +3967,7 @@
Обработать(Результат, "VK", "СоздатьИсторию", "Путь");
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -4748,7 +4739,8 @@
// END
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "YandexDisk", "ЗагрузитьФайл");
OPI_YandexDisk.УдалитьОбъект(Токен, Путь2, Ложь); // SKIP
@@ -7295,7 +7287,8 @@
// END
Обработать(Результат, "Dropbox", "ЗагрузитьФайл", , Путь);
УдалитьФайлы(КартинкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
Если Не OPI_Инструменты.ЭтоOneScript() И ПараметрыФункции.Свойство("Big") Тогда
@@ -11859,7 +11852,7 @@
Обработать(Результат, "VKTeams", "ОтправитьФайл", , ПараметрыФункции);
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -11954,7 +11947,7 @@
Обработать(Результат, "VKTeams", "ОтправитьГолосовоеСообщение", , ПараметрыФункции);
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -12012,7 +12005,7 @@
Обработать(Результат, "VKTeams", "ИзменитьАватарЧата");
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -14397,13 +14390,9 @@
Наименование = "opi-dirbucket3";
Наименование = ?(Каталог, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Результат = OPI_S3.УстановитьШифрованиеБакета(Наименование, ОсновныеДанные, XMLКонфигурация, Каталог);
@@ -14850,8 +14839,8 @@
Обработать(Результат, "S3", "ПолучитьОбъект", "Большой ДД", 34432400);
УдалитьФайлы(ВременныйФайлБольшой);
УдалитьФайлы(ВременныйФайл);
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайлБольшой, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайл , "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -15406,11 +15395,7 @@
Обработать(Закрытие, "SQLite", "ОткрытьСоединение", "Закрытие");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -15428,11 +15413,7 @@
Обработать(Закрытие, "SQLite", "ЗакрытьСоединение");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -15532,11 +15513,7 @@
Обработать(Результат, "SQLite", "ВыполнитьЗапросSQL", "Закрытие");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -15641,11 +15618,7 @@
Результат = OPI_SQLite.ДобавитьЗаписи("test1", СоответствиеСтроки, , База);
Обработать(Результат, "SQLite", "ДобавитьЗаписи", "Непонятная колонка");
Попытка
УдалитьФайлы(ФайлКартинки);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ФайлКартинки, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -15874,11 +15847,7 @@
Результат = OPI_SQLite.ЗакрытьСоединение(Соединение);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла расширение", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла расширение");
КонецПроцедуры
@@ -19494,11 +19463,7 @@
Обработать(РезультатПроверки, "HTTPКлиент", "УстановитьФайлОтвета", "Тело", ИВФ);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла", "HTTPКлиент");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -20191,11 +20156,7 @@
Обработать(Результат, "HTTPКлиент", "ВернутьИмяФайлаТелаОтвета", , ИВФ);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла", "HTTPКлиент");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -20579,11 +20540,7 @@
// END
Попытка
УдалитьФайлы(Аудио);
Исключение
Сообщить("Ошибка удаления файла после теста");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(Аудио, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "OpenAI", "СоздатьТранскрипцию");
@@ -20950,8 +20907,7 @@
Картинка = ПараметрыФункции["Picture"];
OPI_ПреобразованиеТипов.ПолучитьДвоичныеДанные(Картинка); // Картинка - Тип: ДвоичныеДанные
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Пример</name>
| <value>123</value>
@@ -21925,11 +21881,7 @@
Обработать(Результат, "FTP", "ЗагрузитьФайл", "Большой, " + Постфикс, БольшиеДанные.Размер());
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "FTP");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -22310,11 +22262,7 @@
КонецЦикла;
Попытка
УдалитьФайлы(ИмяФайла);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "FTP");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИмяФайла, "Не удалось удалить временный файл после теста!");
КонецПроцедуры

View File

@@ -2300,11 +2300,7 @@
SQLite_ЭтоКоннектор(ПараметрыТеста);
SQLite_ПодключитьРасширение(ПараметрыТеста);
Попытка
УдалитьФайлы(База);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(База, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -2348,11 +2344,7 @@
SQLite_УдалитьТаблицу(ПараметрыТеста);
SQLite_ПолучитьСтруктуруФильтраЗаписей(ПараметрыТеста);
Попытка
УдалитьФайлы(База);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(База, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -3253,7 +3245,7 @@
Обработать(Результат, "Telegram", "ОтправитьКартинку", "Клавиатура коллекция", ПараметрыФункции, Текст);
УдалитьФайлы(КартинкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.Пауза(5);
@@ -3302,7 +3294,7 @@
// END
УдалитьФайлы(ВидеоПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьВидео", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3352,7 +3344,7 @@
// END
УдалитьФайлы(АудиоПуть);
OPI_Инструменты.УдалитьФайлВПопытке(АудиоПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьАудио", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3414,7 +3406,7 @@
// END
УдалитьФайлы(ДокументПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьДокумент", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3464,7 +3456,7 @@
// END
УдалитьФайлы(ГифкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ГифкаПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьГифку", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3521,9 +3513,9 @@
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("telegram", "ОтправитьМедиагруппу", Опции);
УдалитьФайлы(ВидеоПуть);
УдалитьФайлы(КартинкаПуть);
УдалитьФайлы(ДокументПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть , "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьМедиагруппу", "Документы");
@@ -4199,7 +4191,7 @@
Обработать(Результат, "VK", "СоздатьПост", "Путь", ПараметрыФункции);
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -4262,8 +4254,7 @@
// END
Обработать(Результат, "VK", "СоздатьСоставнойПост");
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -4414,7 +4405,7 @@
Обработать(Результат, "VK", "СоздатьИсторию", "Путь");
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -5403,7 +5394,8 @@
// END
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "YandexDisk", "ЗагрузитьФайл");
OPI_YandexDisk.УдалитьОбъект(Токен, Путь2, Ложь); // SKIP
@@ -8837,7 +8829,8 @@
// END
Обработать(Результат, "Dropbox", "ЗагрузитьФайл", , Путь);
УдалитьФайлы(КартинкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
Если Не OPI_Инструменты.ЭтоOneScript() И ПараметрыФункции.Свойство("Big") Тогда
@@ -15268,7 +15261,7 @@
Обработать(Результат, "VKTeams", "ОтправитьФайл", , ПараметрыФункции);
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -15407,7 +15400,7 @@
Обработать(Результат, "VKTeams", "ОтправитьГолосовоеСообщение", , ПараметрыФункции);
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -15490,7 +15483,7 @@
Обработать(Результат, "VKTeams", "ИзменитьАватарЧата");
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -18563,13 +18556,9 @@
Наименование = "opi-dirbucket3";
Наименование = ?(Каталог, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Опции = Новый Структура;
Опции.Вставить("name", Наименование);
@@ -19235,8 +19224,8 @@
Обработать(Результат, "S3", "ПолучитьОбъект", "Большой ДД", 34432400);
УдалитьФайлы(ВременныйФайлБольшой);
УдалитьФайлы(ВременныйФайл);
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайлБольшой, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайл , "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -19919,11 +19908,7 @@
Обработать(Закрытие, "SQLite", "ОткрытьСоединение", "Закрытие");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -19941,11 +19926,7 @@
Обработать(Закрытие, "SQLite", "ЗакрытьСоединение");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -20067,11 +20048,7 @@
Обработать(Результат, "SQLite", "ВыполнитьЗапросSQL", "Закрытие");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -20218,11 +20195,7 @@
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
Обработать(Результат, "SQLite", "ДобавитьЗаписи", "Непонятная колонка");
Попытка
УдалитьФайлы(ФайлКартинки);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ФайлКартинки, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -20521,11 +20494,7 @@
Результат = OPI_SQLite.ЗакрытьСоединение(Соединение);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла расширение", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла расширение");
КонецПроцедуры
@@ -25650,11 +25619,7 @@
Обработать(РезультатПроверки, "HTTPКлиент", "УстановитьФайлОтвета", "Тело", ИВФ);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла", "HTTPКлиент");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -26347,11 +26312,7 @@
Обработать(Результат, "HTTPКлиент", "ВернутьИмяФайлаТелаОтвета", , ИВФ);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла", "HTTPКлиент");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -26837,11 +26798,7 @@
// END
Попытка
УдалитьФайлы(Аудио);
Исключение
Сообщить("Ошибка удаления файла после теста");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(Аудио, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "OpenAI", "СоздатьТранскрипцию");
@@ -27361,8 +27318,7 @@
Картинка = ПараметрыФункции["Picture"];
OPI_ПреобразованиеТипов.ПолучитьДвоичныеДанные(Картинка); // Картинка - Тип: ДвоичныеДанные
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Пример</name>
| <value>123</value>
@@ -28792,11 +28748,7 @@
Обработать(Результат, "FTP", "ЗагрузитьФайл", "Большой, " + Постфикс, БольшиеДанные.Размер());
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "FTP");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -29354,11 +29306,7 @@
КонецЦикла;
Попытка
УдалитьФайлы(ИмяФайла);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "FTP");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИмяФайла, "Не удалось удалить временный файл после теста!");
КонецПроцедуры

View File

@@ -117,11 +117,7 @@
ЗаписатьВызовCLI(Библиотека, Метод, ОпцииЗаписи);
КонецЕсли;
Попытка
УдалитьФайлы(ФайлРезультата);
Исключение
Сообщить("Не удалось удалить временный файл после теста!");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ФайлРезультата, "Не удалось удалить временный файл после теста!");
Возврат Результат;
@@ -557,7 +553,7 @@
Путь = ИВФ;
Двоичные = Новый ДвоичныеДанные(Путь);
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
Иначе

View File

@@ -3331,7 +3331,7 @@
Результат = OPI_Telegram.ОтправитьМедиагруппу(Токен, IDКанала, Текст, Медиагруппа);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть , "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
@@ -14841,7 +14841,7 @@
Обработать(Результат, "S3", "ПолучитьОбъект", "Большой ДД", 34432400);
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайлБольшой, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайл, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайл , "Не удалось удалить временный файл после теста!");
КонецПроцедуры

View File

@@ -2300,11 +2300,7 @@
SQLite_ЭтоКоннектор(ПараметрыТеста);
SQLite_ПодключитьРасширение(ПараметрыТеста);
Попытка
УдалитьФайлы(База);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(База, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -2348,11 +2344,7 @@
SQLite_УдалитьТаблицу(ПараметрыТеста);
SQLite_ПолучитьСтруктуруФильтраЗаписей(ПараметрыТеста);
Попытка
УдалитьФайлы(База);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(База, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -3253,7 +3245,7 @@
Обработать(Результат, "Telegram", "ОтправитьКартинку", "Клавиатура коллекция", ПараметрыФункции, Текст);
УдалитьФайлы(КартинкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.Пауза(5);
@@ -3302,7 +3294,7 @@
// END
УдалитьФайлы(ВидеоПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьВидео", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3352,7 +3344,7 @@
// END
УдалитьФайлы(АудиоПуть);
OPI_Инструменты.УдалитьФайлВПопытке(АудиоПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьАудио", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3414,7 +3406,7 @@
// END
УдалитьФайлы(ДокументПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьДокумент", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3464,7 +3456,7 @@
// END
УдалитьФайлы(ГифкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ГифкаПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьГифку", "Двоичные", ПараметрыФункции, Текст);
OPI_Инструменты.Пауза(5);
@@ -3521,9 +3513,9 @@
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("telegram", "ОтправитьМедиагруппу", Опции);
УдалитьФайлы(ВидеоПуть);
УдалитьФайлы(КартинкаПуть);
УдалитьФайлы(ДокументПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ВидеоПуть , "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ДокументПуть, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "Telegram", "ОтправитьМедиагруппу", "Документы");
@@ -4199,7 +4191,7 @@
Обработать(Результат, "VK", "СоздатьПост", "Путь", ПараметрыФункции);
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -4262,8 +4254,7 @@
// END
Обработать(Результат, "VK", "СоздатьСоставнойПост");
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -4414,7 +4405,7 @@
Обработать(Результат, "VK", "СоздатьИсторию", "Путь");
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -5403,7 +5394,8 @@
// END
УдалитьФайлы(ИВФ);
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "YandexDisk", "ЗагрузитьФайл");
OPI_YandexDisk.УдалитьОбъект(Токен, Путь2, Ложь); // SKIP
@@ -8837,7 +8829,8 @@
// END
Обработать(Результат, "Dropbox", "ЗагрузитьФайл", , Путь);
УдалитьФайлы(КартинкаПуть);
OPI_Инструменты.УдалитьФайлВПопытке(КартинкаПуть, "Не удалось удалить временный файл после теста!");
Если Не OPI_Инструменты.ЭтоOneScript() И ПараметрыФункции.Свойство("Big") Тогда
@@ -15268,7 +15261,7 @@
Обработать(Результат, "VKTeams", "ОтправитьФайл", , ПараметрыФункции);
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -15407,7 +15400,7 @@
Обработать(Результат, "VKTeams", "ОтправитьГолосовоеСообщение", , ПараметрыФункции);
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -15490,7 +15483,7 @@
Обработать(Результат, "VKTeams", "ИзменитьАватарЧата");
УдалитьФайлы(ФайлПуть);
OPI_Инструменты.УдалитьФайлВПопытке(ФайлПуть, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -18563,13 +18556,9 @@
Наименование = "opi-dirbucket3";
Наименование = ?(Каталог, "opi-dirbucket3", "opi-gpbucket3"); // SKIP
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/"">
| <Rule>
| <ApplyServerSideEncryptionByDefault>
| <SSEAlgorithm>AES256</SSEAlgorithm>
| </ApplyServerSideEncryptionByDefault>
| </Rule>
|</ServerSideEncryptionConfiguration>";
XMLКонфигурация = "<ServerSideEncryptionConfiguration xmlns=""http://s3.amazonaws.com/doc/2006-03-01/""><Rule>"
+ "<ApplyServerSideEncryptionByDefault><SSEAlgorithm>AES256</SSEAlgorithm>"
+ "</ApplyServerSideEncryptionByDefault></Rule></ServerSideEncryptionConfiguration>";
Опции = Новый Структура;
Опции.Вставить("name", Наименование);
@@ -19235,8 +19224,8 @@
Обработать(Результат, "S3", "ПолучитьОбъект", "Большой ДД", 34432400);
УдалитьФайлы(ВременныйФайлБольшой);
УдалитьФайлы(ВременныйФайл);
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайлБольшой, "Не удалось удалить временный файл после теста!");
OPI_Инструменты.УдалитьФайлВПопытке(ВременныйФайл , "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -19919,11 +19908,7 @@
Обработать(Закрытие, "SQLite", "ОткрытьСоединение", "Закрытие");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -19941,11 +19926,7 @@
Обработать(Закрытие, "SQLite", "ЗакрытьСоединение");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -20067,11 +20048,7 @@
Обработать(Результат, "SQLite", "ВыполнитьЗапросSQL", "Закрытие");
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла базы", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла базы");
КонецПроцедуры
@@ -20218,11 +20195,7 @@
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("sqlite", "ДобавитьЗаписи", Опции);
Обработать(Результат, "SQLite", "ДобавитьЗаписи", "Непонятная колонка");
Попытка
УдалитьФайлы(ФайлКартинки);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ФайлКартинки, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -20521,11 +20494,7 @@
Результат = OPI_SQLite.ЗакрытьСоединение(Соединение);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла расширение", "SQLite");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Ошибка удаления файла расширение");
КонецПроцедуры
@@ -25650,11 +25619,7 @@
Обработать(РезультатПроверки, "HTTPКлиент", "УстановитьФайлОтвета", "Тело", ИВФ);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла", "HTTPКлиент");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -26347,11 +26312,7 @@
Обработать(Результат, "HTTPКлиент", "ВернутьИмяФайлаТелаОтвета", , ИВФ);
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла", "HTTPКлиент");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -26837,11 +26798,7 @@
// END
Попытка
УдалитьФайлы(Аудио);
Исключение
Сообщить("Ошибка удаления файла после теста");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(Аудио, "Не удалось удалить временный файл после теста!");
Обработать(Результат, "OpenAI", "СоздатьТранскрипцию");
@@ -27361,8 +27318,7 @@
Картинка = ПараметрыФункции["Picture"];
OPI_ПреобразованиеТипов.ПолучитьДвоичныеДанные(Картинка); // Картинка - Тип: ДвоичныеДанные
XML = "<?xml version=""1.0""?>
|<root>
XML = "<?xml version=""1.0""?><root>
| <element>
| <name>Пример</name>
| <value>123</value>
@@ -28792,11 +28748,7 @@
Обработать(Результат, "FTP", "ЗагрузитьФайл", "Большой, " + Постфикс, БольшиеДанные.Размер());
Попытка
УдалитьФайлы(ИВФ);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "FTP");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИВФ, "Не удалось удалить временный файл после теста!");
КонецПроцедуры
@@ -29354,11 +29306,7 @@
КонецЦикла;
Попытка
УдалитьФайлы(ИмяФайла);
Исключение
OPI_ПолучениеДанныхТестов.ВывестиСлужебнуюИнформацию(ОписаниеОшибки(), "Ошибка удаления файла картинки", "FTP");
КонецПопытки;
OPI_Инструменты.УдалитьФайлВПопытке(ИмяФайла, "Не удалось удалить временный файл после теста!");
КонецПроцедуры