mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-23 21:29:38 +02:00
Main build (Jenkins)
This commit is contained in:
parent
401517061d
commit
cba967e2a0
@ -1,5 +1,5 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
Base = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
Image_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
Image_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Image = New Map;
|
Image = New Map;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Block = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Block = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Result = OPI_Notion.DeleteBlock(Token, Block);
|
Result = OPI_Notion.DeleteBlock(Token, Block);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
Base = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Title = "TestTitle";
|
Title = "TestTitle";
|
||||||
Description = "TestDescription";
|
Description = "TestDescription";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Page = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Page = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
Icon = "https://api.athenaeum.digital/test_data/picture.jpg";
|
Icon = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||||
Cover = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
Cover = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
||||||
Archive = False;
|
Archive = False;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
Base = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Result = OPI_Notion.GetDatabase(Token, Base);
|
Result = OPI_Notion.GetDatabase(Token, Base);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Page = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Page = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
|
|
||||||
Result = OPI_Notion.GetPage(Token, Page);
|
Result = OPI_Notion.GetPage(Token, Page);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Block = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Block = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Result = OPI_Notion.ReturnChildBlocks(Token, Block);
|
Result = OPI_Notion.ReturnChildBlocks(Token, Block);
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Block = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Block = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Result = OPI_Notion.DeleteBlock(Token, Block);
|
Result = OPI_Notion.DeleteBlock(Token, Block);
|
||||||
```
|
```
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Block = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Block = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Result = OPI_Notion.ReturnChildBlocks(Token, Block);
|
Result = OPI_Notion.ReturnChildBlocks(Token, Block);
|
||||||
```
|
```
|
||||||
|
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
Base = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Title = "TestTitle";
|
Title = "TestTitle";
|
||||||
Description = "TestDescription";
|
Description = "TestDescription";
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
Base = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Result = OPI_Notion.GetDatabase(Token, Base);
|
Result = OPI_Notion.GetDatabase(Token, Base);
|
||||||
```
|
```
|
||||||
|
@ -28,7 +28,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Base = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
Base = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
Image_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
Image_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Binary Data or Path to file
|
||||||
|
|
||||||
Image = New Map;
|
Image = New Map;
|
||||||
|
@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Page = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Page = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
Icon = "https://api.athenaeum.digital/test_data/picture.jpg";
|
Icon = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||||
Cover = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
Cover = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
||||||
Archive = False;
|
Archive = False;
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Page = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Page = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
|
|
||||||
Result = OPI_Notion.GetPage(Token, Page);
|
Result = OPI_Notion.GetPage(Token, Page);
|
||||||
```
|
```
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Блок = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Блок = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Результат = OPI_Notion.ВернутьДочерниеБлоки(Токен, Блок);
|
Результат = OPI_Notion.ВернутьДочерниеБлоки(Токен, Блок);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
База = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
База = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Заголовок = "Тестовый заголовок";
|
Заголовок = "Тестовый заголовок";
|
||||||
Описание = "Тестовое описание";
|
Описание = "Тестовое описание";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Страница = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Страница = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
Иконка = "https://api.athenaeum.digital/test_data/picture.jpg";
|
Иконка = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||||
Обложка = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
Обложка = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
||||||
Архивировать = Ложь;
|
Архивировать = Ложь;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
База = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
База = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Результат = OPI_Notion.ПолучитьБазуДанных(Токен, База);
|
Результат = OPI_Notion.ПолучитьБазуДанных(Токен, База);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Страница = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Страница = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
|
|
||||||
Результат = OPI_Notion.ПолучитьСтраницу(Токен, Страница);
|
Результат = OPI_Notion.ПолучитьСтраницу(Токен, Страница);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
База = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
База = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
Картинка_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Двоичные данные или Путь к файлу
|
Картинка_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Двоичные данные или Путь к файлу
|
||||||
|
|
||||||
Картинка = Новый Соответствие;
|
Картинка = Новый Соответствие;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Блок = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Блок = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Результат = OPI_Notion.УдалитьБлок(Токен, Блок);
|
Результат = OPI_Notion.УдалитьБлок(Токен, Блок);
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Блок = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Блок = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Результат = OPI_Notion.УдалитьБлок(Токен, Блок);
|
Результат = OPI_Notion.УдалитьБлок(Токен, Блок);
|
||||||
```
|
```
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Блок = "15782aa7-fc4e-8150-959d-f60f43eaa2d5";
|
Блок = "15982aa7-fc4e-81d2-b0e2-debc8c088ff5";
|
||||||
|
|
||||||
Результат = OPI_Notion.ВернутьДочерниеБлоки(Токен, Блок);
|
Результат = OPI_Notion.ВернутьДочерниеБлоки(Токен, Блок);
|
||||||
```
|
```
|
||||||
|
@ -30,7 +30,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
База = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
База = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Заголовок = "Тестовый заголовок";
|
Заголовок = "Тестовый заголовок";
|
||||||
Описание = "Тестовое описание";
|
Описание = "Тестовое описание";
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
База = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
База = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
|
|
||||||
Результат = OPI_Notion.ПолучитьБазуДанных(Токен, База);
|
Результат = OPI_Notion.ПолучитьБазуДанных(Токен, База);
|
||||||
```
|
```
|
||||||
|
@ -28,7 +28,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
База = "15782aa7-fc4e-81a6-a494-ef2c0fce96ab";
|
База = "15982aa7-fc4e-81f6-a0b8-fe9d90ac5dd0";
|
||||||
Картинка_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Двоичные данные или Путь к файлу
|
Картинка_ = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Двоичные данные или Путь к файлу
|
||||||
|
|
||||||
Картинка = Новый Соответствие;
|
Картинка = Новый Соответствие;
|
||||||
|
@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Страница = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Страница = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
Иконка = "https://api.athenaeum.digital/test_data/picture.jpg";
|
Иконка = "https://api.athenaeum.digital/test_data/picture.jpg";
|
||||||
Обложка = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
Обложка = "https://api.athenaeum.digital/test_data/picture2.jpg";
|
||||||
Архивировать = Ложь;
|
Архивировать = Ложь;
|
||||||
|
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
Токен = "secret_9RsfMrRMqZwqp0Zl0B...";
|
||||||
Страница = "15782aa7-fc4e-81f3-b070-cc8fd5782b77";
|
Страница = "15982aa7-fc4e-8127-b912-f6096392796b";
|
||||||
|
|
||||||
Результат = OPI_Notion.ПолучитьСтраницу(Токен, Страница);
|
Результат = OPI_Notion.ПолучитьСтраницу(Токен, Страница);
|
||||||
```
|
```
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,6 @@
|
|||||||
<module name="OPI_GoogleDrive" file="core/Modules/OPI_GoogleDrive.os"/>
|
<module name="OPI_GoogleDrive" file="core/Modules/OPI_GoogleDrive.os"/>
|
||||||
<module name="OPI_GoogleSheets" file="core/Modules/OPI_GoogleSheets.os"/>
|
<module name="OPI_GoogleSheets" file="core/Modules/OPI_GoogleSheets.os"/>
|
||||||
<module name="OPI_GoogleWorkspace" file="core/Modules/OPI_GoogleWorkspace.os"/>
|
<module name="OPI_GoogleWorkspace" file="core/Modules/OPI_GoogleWorkspace.os"/>
|
||||||
<module name="OPI_MongoDB" file="core/Modules/OPI_MongoDB.os"/>
|
|
||||||
<module name="OPI_Neocities" file="core/Modules/OPI_Neocities.os"/>
|
<module name="OPI_Neocities" file="core/Modules/OPI_Neocities.os"/>
|
||||||
<module name="OPI_Notion" file="core/Modules/OPI_Notion.os"/>
|
<module name="OPI_Notion" file="core/Modules/OPI_Notion.os"/>
|
||||||
<module name="OPI_Ozon" file="core/Modules/OPI_Ozon.os"/>
|
<module name="OPI_Ozon" file="core/Modules/OPI_Ozon.os"/>
|
||||||
|
@ -2172,19 +2172,6 @@ EndProcedure
|
|||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#Region MongoDB
|
|
||||||
|
|
||||||
Procedure Mongo_DatabaseManagement() Export
|
|
||||||
|
|
||||||
TestParameters = New Structure;
|
|
||||||
OPI_TestDataRetrieval.ParameterToCollection("MDB_CString", TestParameters);
|
|
||||||
|
|
||||||
MongoDB_GetListOfBases(TestParameters);
|
|
||||||
|
|
||||||
EndProcedure
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
@ -15663,22 +15650,6 @@ EndProcedure
|
|||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#Region MongoDB
|
|
||||||
|
|
||||||
Procedure MongoDB_GetListOfBases(FunctionParameters)
|
|
||||||
|
|
||||||
ConnectionString = FunctionParameters["MDB_CString"];
|
|
||||||
|
|
||||||
Result = OPI_MongoDB.GetListOfBases(ConnectionString);
|
|
||||||
|
|
||||||
// END
|
|
||||||
|
|
||||||
OPI_TestDataRetrieval.WriteLog(Result, "GetListOfBases", "MongoDB");
|
|
||||||
|
|
||||||
EndProcedure
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
@ -69,7 +69,6 @@ Function GetTestingSectionMapping() Export
|
|||||||
Sections.Insert("CDEK" , 5);
|
Sections.Insert("CDEK" , 5);
|
||||||
Sections.Insert("YandexMetrika" , 5);
|
Sections.Insert("YandexMetrika" , 5);
|
||||||
Sections.Insert("S3" , 5);
|
Sections.Insert("S3" , 5);
|
||||||
Sections.Insert("MongoDB" , 5);
|
|
||||||
|
|
||||||
Return Sections;
|
Return Sections;
|
||||||
|
|
||||||
@ -101,7 +100,6 @@ Function GetTestingSectionMappingGA() Export
|
|||||||
Sections.Insert("CDEK" , StandardDependencies);
|
Sections.Insert("CDEK" , StandardDependencies);
|
||||||
Sections.Insert("YandexMetrika" , StandardDependencies);
|
Sections.Insert("YandexMetrika" , StandardDependencies);
|
||||||
Sections.Insert("S3" , StandardDependencies);
|
Sections.Insert("S3" , StandardDependencies);
|
||||||
Sections.Insert("MongoDB" , StandardDependencies);
|
|
||||||
|
|
||||||
Return Sections;
|
Return Sections;
|
||||||
|
|
||||||
@ -129,7 +127,6 @@ Function GetTestTable() Export
|
|||||||
Cdek = "CDEK";
|
Cdek = "CDEK";
|
||||||
Metrika = "YandexMetrika";
|
Metrika = "YandexMetrika";
|
||||||
S3_ = "S3";
|
S3_ = "S3";
|
||||||
Mongo = "MongoDB";
|
|
||||||
|
|
||||||
TestTable = New ValueTable;
|
TestTable = New ValueTable;
|
||||||
TestTable.Columns.Add("Method");
|
TestTable.Columns.Add("Method");
|
||||||
@ -261,7 +258,6 @@ Function GetTestTable() Export
|
|||||||
NewTest(TestTable, "AWS_CommonMethods" , "Common methods" , S3_);
|
NewTest(TestTable, "AWS_CommonMethods" , "Common methods" , S3_);
|
||||||
NewTest(TestTable, "AWS_BucketsManagement" , "Buckets management" , S3_);
|
NewTest(TestTable, "AWS_BucketsManagement" , "Buckets management" , S3_);
|
||||||
NewTest(TestTable, "AWS_ObjectsManagement" , "Objects management" , S3_);
|
NewTest(TestTable, "AWS_ObjectsManagement" , "Objects management" , S3_);
|
||||||
NewTest(TestTable, "Mongo_DatabaseManagement" , "Database management" , Mongo);
|
|
||||||
|
|
||||||
Return TestTable;
|
Return TestTable;
|
||||||
|
|
||||||
|
@ -1,88 +0,0 @@
|
|||||||
// OneScript: ./OInt/core/Modules/OPI_MongoDB.os
|
|
||||||
// Lib: MongoDB
|
|
||||||
// CLI: mongodb
|
|
||||||
|
|
||||||
// MIT License
|
|
||||||
|
|
||||||
// Copyright (c) 2023 Anton Tsitavets
|
|
||||||
|
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
|
||||||
// in the Software without restriction, including without limitation the rights
|
|
||||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
// copies of the Software, and to permit persons to whom the Software is
|
|
||||||
// furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
// The above copyright notice and this permission notice shall be included in all
|
|
||||||
// copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
// SOFTWARE.
|
|
||||||
|
|
||||||
// https://github.com/Bayselonarrend/OpenIntegrations
|
|
||||||
|
|
||||||
// BSLLS:Typo-off
|
|
||||||
// BSLLS:LatinAndCyrillicSymbolInWord-off
|
|
||||||
// BSLLS:IncorrectLineBreak-off
|
|
||||||
// BSLLS:NumberOfOptionalParams-off
|
|
||||||
// BSLLS:UsingServiceTag-off
|
|
||||||
// BSLLS:LineLength-off
|
|
||||||
|
|
||||||
//@skip-check module-structure-top-region
|
|
||||||
//@skip-check module-structure-method-in-regions
|
|
||||||
//@skip-check wrong-string-literal-content
|
|
||||||
//@skip-check method-too-many-params
|
|
||||||
//@skip-check constructor-function-return-section
|
|
||||||
|
|
||||||
// Uncomment if OneScript is executed
|
|
||||||
// #Use "../../tools"
|
|
||||||
|
|
||||||
#Region Public
|
|
||||||
|
|
||||||
#Region DatabaseManagement
|
|
||||||
|
|
||||||
// Get list of bases
|
|
||||||
// Gets a list of bases
|
|
||||||
//
|
|
||||||
// Note
|
|
||||||
// Method in MongoDB documentation: [listDatabases](@mongodb.com/docs/manual/reference/command/listDatabases/)
|
|
||||||
//
|
|
||||||
// Parameters:
|
|
||||||
// ConnectionString - String - Connection string to MongoDB server - connect
|
|
||||||
//
|
|
||||||
// Returns:
|
|
||||||
// Structure of KeyAndValue - serialized JSON response from MongoDB server
|
|
||||||
Function GetListOfBases(Val ConnectionString) Export
|
|
||||||
|
|
||||||
Client = MongoDBClient(ConnectionString);
|
|
||||||
|
|
||||||
Response = Client.ListDatabases();
|
|
||||||
Response = OPI_Tools.JsonToStructure(Response, False);
|
|
||||||
|
|
||||||
Return Response;
|
|
||||||
|
|
||||||
EndFunction
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
|
||||||
#Region Private
|
|
||||||
|
|
||||||
Function MongoDBClient(Val ConnectionString)
|
|
||||||
|
|
||||||
OPI_TypeConversion.GetLine(ConnectionString);
|
|
||||||
|
|
||||||
Client = OPI_Tools.GetAddIn("MongoDB");
|
|
||||||
Client.ConnectionString = ConnectionString;
|
|
||||||
|
|
||||||
Return Client;
|
|
||||||
|
|
||||||
EndFunction
|
|
||||||
|
|
||||||
#EndRegion
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<mdclass:CommonModule xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="cb8b083f-acaa-4881-ac1f-669b0eebd1ab">
|
|
||||||
<name>OPI_MongoDB</name>
|
|
||||||
<synonym>
|
|
||||||
<key></key>
|
|
||||||
<value>OPI mongo DB</value>
|
|
||||||
</synonym>
|
|
||||||
<server>true</server>
|
|
||||||
<externalConnection>true</externalConnection>
|
|
||||||
<clientOrdinaryApplication>true</clientOrdinaryApplication>
|
|
||||||
</mdclass:CommonModule>
|
|
@ -69,7 +69,6 @@ Function GetTestingSectionMapping() Export
|
|||||||
Sections.Insert("CDEK" , 5);
|
Sections.Insert("CDEK" , 5);
|
||||||
Sections.Insert("YandexMetrika" , 5);
|
Sections.Insert("YandexMetrika" , 5);
|
||||||
Sections.Insert("S3" , 5);
|
Sections.Insert("S3" , 5);
|
||||||
Sections.Insert("MongoDB" , 5);
|
|
||||||
|
|
||||||
Return Sections;
|
Return Sections;
|
||||||
|
|
||||||
@ -101,7 +100,6 @@ Function GetTestingSectionMappingGA() Export
|
|||||||
Sections.Insert("CDEK" , StandardDependencies);
|
Sections.Insert("CDEK" , StandardDependencies);
|
||||||
Sections.Insert("YandexMetrika" , StandardDependencies);
|
Sections.Insert("YandexMetrika" , StandardDependencies);
|
||||||
Sections.Insert("S3" , StandardDependencies);
|
Sections.Insert("S3" , StandardDependencies);
|
||||||
Sections.Insert("MongoDB" , StandardDependencies);
|
|
||||||
|
|
||||||
Return Sections;
|
Return Sections;
|
||||||
|
|
||||||
@ -129,7 +127,6 @@ Function GetTestTable() Export
|
|||||||
Cdek = "CDEK";
|
Cdek = "CDEK";
|
||||||
Metrika = "YandexMetrika";
|
Metrika = "YandexMetrika";
|
||||||
S3_ = "S3";
|
S3_ = "S3";
|
||||||
Mongo = "MongoDB";
|
|
||||||
|
|
||||||
TestTable = New ValueTable;
|
TestTable = New ValueTable;
|
||||||
TestTable.Columns.Add("Method");
|
TestTable.Columns.Add("Method");
|
||||||
@ -261,7 +258,6 @@ Function GetTestTable() Export
|
|||||||
NewTest(TestTable, "AWS_CommonMethods" , "Common methods" , S3_);
|
NewTest(TestTable, "AWS_CommonMethods" , "Common methods" , S3_);
|
||||||
NewTest(TestTable, "AWS_BucketsManagement" , "Buckets management" , S3_);
|
NewTest(TestTable, "AWS_BucketsManagement" , "Buckets management" , S3_);
|
||||||
NewTest(TestTable, "AWS_ObjectsManagement" , "Objects management" , S3_);
|
NewTest(TestTable, "AWS_ObjectsManagement" , "Objects management" , S3_);
|
||||||
NewTest(TestTable, "Mongo_DatabaseManagement" , "Database management" , Mongo);
|
|
||||||
|
|
||||||
Return TestTable;
|
Return TestTable;
|
||||||
|
|
||||||
|
@ -2172,19 +2172,6 @@ EndProcedure
|
|||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#Region MongoDB
|
|
||||||
|
|
||||||
Procedure Mongo_DatabaseManagement() Export
|
|
||||||
|
|
||||||
TestParameters = New Structure;
|
|
||||||
OPI_TestDataRetrieval.ParameterToCollection("MDB_CString", TestParameters);
|
|
||||||
|
|
||||||
MongoDB_GetListOfBases(TestParameters);
|
|
||||||
|
|
||||||
EndProcedure
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
@ -15663,22 +15650,6 @@ EndProcedure
|
|||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#Region MongoDB
|
|
||||||
|
|
||||||
Procedure MongoDB_GetListOfBases(FunctionParameters)
|
|
||||||
|
|
||||||
ConnectionString = FunctionParameters["MDB_CString"];
|
|
||||||
|
|
||||||
Result = OPI_MongoDB.GetListOfBases(ConnectionString);
|
|
||||||
|
|
||||||
// END
|
|
||||||
|
|
||||||
OPI_TestDataRetrieval.WriteLog(Result, "GetListOfBases", "MongoDB");
|
|
||||||
|
|
||||||
EndProcedure
|
|
||||||
|
|
||||||
#EndRegion
|
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
|
||||||
#EndRegion
|
#EndRegion
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<mdclass:CommonTemplate xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="42f54cff-0a7f-4441-9d1b-72b9f85fac65">
|
|
||||||
<name>OPI_MongoDB_L</name>
|
|
||||||
<synonym>
|
|
||||||
<key></key>
|
|
||||||
<value>OPI mongo d b L</value>
|
|
||||||
</synonym>
|
|
||||||
<templateType>AddIn</templateType>
|
|
||||||
</mdclass:CommonTemplate>
|
|
Binary file not shown.
Binary file not shown.
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<mdclass:CommonTemplate xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="70143739-b2c8-46d9-a320-c523b7cba689">
|
<mdclass:CommonTemplate xmlns:mdclass="http://g5.1c.ru/v8/dt/metadata/mdclass" uuid="4c9ebab6-8e20-4690-b509-2e32b293ad75">
|
||||||
<name>OPI_MongoDB_W</name>
|
<name>OPI_TCPClient</name>
|
||||||
<synonym>
|
<synonym>
|
||||||
<key></key>
|
<key>en</key>
|
||||||
<value>OPI mongo d b W</value>
|
<value>TCPClient</value>
|
||||||
</synonym>
|
</synonym>
|
||||||
<templateType>AddIn</templateType>
|
<templateType>AddIn</templateType>
|
||||||
</mdclass:CommonTemplate>
|
</mdclass:CommonTemplate>
|
BIN
src/en/OPI/src/CommonTemplates/OPI_TCPClient/Template.addin
Normal file
BIN
src/en/OPI/src/CommonTemplates/OPI_TCPClient/Template.addin
Normal file
Binary file not shown.
@ -39,8 +39,7 @@
|
|||||||
<value>https://github.com/Bayselonarrend/OpenIntegrations</value>
|
<value>https://github.com/Bayselonarrend/OpenIntegrations</value>
|
||||||
</configurationInformationAddress>
|
</configurationInformationAddress>
|
||||||
<subsystems>Subsystem.OPI_Integrations</subsystems>
|
<subsystems>Subsystem.OPI_Integrations</subsystems>
|
||||||
<commonTemplates>CommonTemplate.OPI_MongoDB_W</commonTemplates>
|
<commonTemplates>CommonTemplate.OPI_TCPClient</commonTemplates>
|
||||||
<commonTemplates>CommonTemplate.OPI_MongoDB_L</commonTemplates>
|
|
||||||
<commonModules>CommonModule.OPI_Tools</commonModules>
|
<commonModules>CommonModule.OPI_Tools</commonModules>
|
||||||
<commonModules>CommonModule.OPI_Cryptography</commonModules>
|
<commonModules>CommonModule.OPI_Cryptography</commonModules>
|
||||||
<commonModules>CommonModule.OPI_TypeConversion</commonModules>
|
<commonModules>CommonModule.OPI_TypeConversion</commonModules>
|
||||||
@ -54,7 +53,6 @@
|
|||||||
<commonModules>CommonModule.OPI_GoogleWorkspace</commonModules>
|
<commonModules>CommonModule.OPI_GoogleWorkspace</commonModules>
|
||||||
<commonModules>CommonModule.OPI_Neocities</commonModules>
|
<commonModules>CommonModule.OPI_Neocities</commonModules>
|
||||||
<commonModules>CommonModule.OPI_Ozon</commonModules>
|
<commonModules>CommonModule.OPI_Ozon</commonModules>
|
||||||
<commonModules>CommonModule.OPI_MongoDB</commonModules>
|
|
||||||
<commonModules>CommonModule.OPI_Notion</commonModules>
|
<commonModules>CommonModule.OPI_Notion</commonModules>
|
||||||
<commonModules>CommonModule.OPI_Slack</commonModules>
|
<commonModules>CommonModule.OPI_Slack</commonModules>
|
||||||
<commonModules>CommonModule.OPI_S3</commonModules>
|
<commonModules>CommonModule.OPI_S3</commonModules>
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
<module name="OPI_GoogleDrive" file="core/Modules/OPI_GoogleDrive.os"/>
|
<module name="OPI_GoogleDrive" file="core/Modules/OPI_GoogleDrive.os"/>
|
||||||
<module name="OPI_GoogleSheets" file="core/Modules/OPI_GoogleSheets.os"/>
|
<module name="OPI_GoogleSheets" file="core/Modules/OPI_GoogleSheets.os"/>
|
||||||
<module name="OPI_GoogleWorkspace" file="core/Modules/OPI_GoogleWorkspace.os"/>
|
<module name="OPI_GoogleWorkspace" file="core/Modules/OPI_GoogleWorkspace.os"/>
|
||||||
<module name="OPI_MongoDB" file="core/Modules/OPI_MongoDB.os"/>
|
|
||||||
<module name="OPI_Neocities" file="core/Modules/OPI_Neocities.os"/>
|
<module name="OPI_Neocities" file="core/Modules/OPI_Neocities.os"/>
|
||||||
<module name="OPI_Notion" file="core/Modules/OPI_Notion.os"/>
|
<module name="OPI_Notion" file="core/Modules/OPI_Notion.os"/>
|
||||||
<module name="OPI_Ozon" file="core/Modules/OPI_Ozon.os"/>
|
<module name="OPI_Ozon" file="core/Modules/OPI_Ozon.os"/>
|
||||||
|
@ -2172,19 +2172,6 @@
|
|||||||
|
|
||||||
#КонецОбласти
|
#КонецОбласти
|
||||||
|
|
||||||
#Область MongoDB
|
|
||||||
|
|
||||||
Процедура Mongo_УправлениеБазамиДанных() Экспорт
|
|
||||||
|
|
||||||
ПараметрыТеста = Новый Структура;
|
|
||||||
OPI_ПолучениеДанныхТестов.ПараметрВКоллекцию("MDB_CString", ПараметрыТеста);
|
|
||||||
|
|
||||||
MongoDB_ПолучитьСписокБаз(ПараметрыТеста);
|
|
||||||
|
|
||||||
КонецПроцедуры
|
|
||||||
|
|
||||||
#КонецОбласти
|
|
||||||
|
|
||||||
#КонецОбласти
|
#КонецОбласти
|
||||||
|
|
||||||
#КонецОбласти
|
#КонецОбласти
|
||||||
@ -15663,22 +15650,6 @@
|
|||||||
|
|
||||||
#КонецОбласти
|
#КонецОбласти
|
||||||
|
|
||||||
#Область MongoDB
|
|
||||||
|
|
||||||
Процедура MongoDB_ПолучитьСписокБаз(ПараметрыФункции)
|
|
||||||
|
|
||||||
СтрокаПодключения = ПараметрыФункции["MDB_CString"];
|
|
||||||
|
|
||||||
Результат = OPI_MongoDB.ПолучитьСписокБаз(СтрокаПодключения);
|
|
||||||
|
|
||||||
// END
|
|
||||||
|
|
||||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ПолучитьСписокБаз", "MongoDB");
|
|
||||||
|
|
||||||
КонецПроцедуры
|
|
||||||
|
|
||||||
#КонецОбласти
|
|
||||||
|
|
||||||
#КонецОбласти
|
#КонецОбласти
|
||||||
|
|
||||||
#КонецОбласти
|
#КонецОбласти
|
||||||
|
@ -69,7 +69,6 @@
|
|||||||
Разделы.Вставить("CDEK" , 5);
|
Разделы.Вставить("CDEK" , 5);
|
||||||
Разделы.Вставить("YandexMetrika" , 5);
|
Разделы.Вставить("YandexMetrika" , 5);
|
||||||
Разделы.Вставить("S3" , 5);
|
Разделы.Вставить("S3" , 5);
|
||||||
Разделы.Вставить("MongoDB" , 5);
|
|
||||||
|
|
||||||
Возврат Разделы;
|
Возврат Разделы;
|
||||||
|
|
||||||
@ -101,7 +100,6 @@
|
|||||||
Разделы.Вставить("CDEK" , СтандартныеЗависимости);
|
Разделы.Вставить("CDEK" , СтандартныеЗависимости);
|
||||||
Разделы.Вставить("YandexMetrika" , СтандартныеЗависимости);
|
Разделы.Вставить("YandexMetrika" , СтандартныеЗависимости);
|
||||||
Разделы.Вставить("S3" , СтандартныеЗависимости);
|
Разделы.Вставить("S3" , СтандартныеЗависимости);
|
||||||
Разделы.Вставить("MongoDB" , СтандартныеЗависимости);
|
|
||||||
|
|
||||||
Возврат Разделы;
|
Возврат Разделы;
|
||||||
|
|
||||||
@ -129,7 +127,6 @@
|
|||||||
Сдэк = "CDEK";
|
Сдэк = "CDEK";
|
||||||
Метрика = "YandexMetrika";
|
Метрика = "YandexMetrika";
|
||||||
S3_ = "S3";
|
S3_ = "S3";
|
||||||
Монго = "MongoDB";
|
|
||||||
|
|
||||||
ТаблицаТестов = Новый ТаблицаЗначений;
|
ТаблицаТестов = Новый ТаблицаЗначений;
|
||||||
ТаблицаТестов.Колонки.Добавить("Метод");
|
ТаблицаТестов.Колонки.Добавить("Метод");
|
||||||
@ -261,7 +258,6 @@
|
|||||||
НовыйТест(ТаблицаТестов, "AWS_ОбщиеМетоды" , "Общие методы" , S3_);
|
НовыйТест(ТаблицаТестов, "AWS_ОбщиеМетоды" , "Общие методы" , S3_);
|
||||||
НовыйТест(ТаблицаТестов, "AWS_РаботаСБакетами" , "Работа с бакетами" , S3_);
|
НовыйТест(ТаблицаТестов, "AWS_РаботаСБакетами" , "Работа с бакетами" , S3_);
|
||||||
НовыйТест(ТаблицаТестов, "AWS_РаботаСОбъектами" , "Работа с объектами" , S3_);
|
НовыйТест(ТаблицаТестов, "AWS_РаботаСОбъектами" , "Работа с объектами" , S3_);
|
||||||
НовыйТест(ТаблицаТестов, "Mongo_УправлениеБазамиДанных" , "Управление базами данных" , Монго);
|
|
||||||
|
|
||||||
Возврат ТаблицаТестов;
|
Возврат ТаблицаТестов;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user