You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-27 22:18:36 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
ParametersStructure.Insert("param1", "search?text");
|
||||
ParametersStructure.Insert("param2", "John Doe");
|
||||
ParametersStructure.Insert("param3", "value&another");
|
||||
ParametersStructure.Insert("param4", "cyrillic");
|
||||
ParametersStructure.Insert("param4", "кириллица");
|
||||
ParametersStructure.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
NoEncoding = OPI_HTTPRequests.NewRequest()
|
||||
|
||||
@@ -51,24 +51,4 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"args": {},
|
||||
"data": "...",
|
||||
"files": {},
|
||||
"form": {},
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Charset": "utf-8",
|
||||
"Accept-Encoding": "gzip",
|
||||
"Content-Length": "2114023",
|
||||
"Content-Type": "application/octet-stream",
|
||||
"Host": "httpbin.org",
|
||||
"User-Agent": "1Script v$1.9.2.10",
|
||||
"X-Amzn-Trace-Id": "Root=1-68131982-38ef76ed402ce1dd00b2a147"
|
||||
},
|
||||
"json": null,
|
||||
"origin": "***",
|
||||
"url": "https://httpbin.org/post"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -50,24 +50,4 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"args": {},
|
||||
"data": "Hello world!",
|
||||
"files": {},
|
||||
"form": {},
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Charset": "utf-8",
|
||||
"Accept-Encoding": "gzip",
|
||||
"Content-Length": "12",
|
||||
"Content-Type": "text/plain; charset=Windows-1251",
|
||||
"Host": "httpbin.org",
|
||||
"User-Agent": "1Script v$1.9.2.10",
|
||||
"X-Amzn-Trace-Id": "Root=1-6813198c-2cc2e9d30cb7cc3868030c13"
|
||||
},
|
||||
"json": null,
|
||||
"origin": "***",
|
||||
"url": "https://httpbin.org/post"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -50,18 +50,4 @@ The URL can be set later using the `SetURL` function
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"args": {},
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Charset": "utf-8",
|
||||
"Accept-Encoding": "gzip",
|
||||
"Host": "httpbin.org",
|
||||
"User-Agent": "1Script v$1.9.2.10",
|
||||
"X-Amzn-Trace-Id": "Root=1-6813197d-6c8904af0e2d366f7a5e196e"
|
||||
},
|
||||
"origin": "***",
|
||||
"url": "https://httpbin.org/get"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -48,21 +48,4 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"args": {
|
||||
"param1": "text",
|
||||
"param2": "10"
|
||||
},
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Charset": "utf-8",
|
||||
"Accept-Encoding": "gzip",
|
||||
"Host": "httpbin.org",
|
||||
"User-Agent": "1Script v$1.9.2.10",
|
||||
"X-Amzn-Trace-Id": "Root=1-6813197e-7efd59a94945473062202cf0"
|
||||
},
|
||||
"origin": "***",
|
||||
"url": "https://httpbin.org/get?param1=text¶m2=10"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -45,18 +45,4 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
```json title="Result"
|
||||
{
|
||||
"args": {},
|
||||
"headers": {
|
||||
"Accept": "*/*",
|
||||
"Accept-Charset": "utf-8",
|
||||
"Accept-Encoding": "gzip",
|
||||
"Host": "httpbin.org",
|
||||
"User-Agent": "1Script v$1.9.2.10",
|
||||
"X-Amzn-Trace-Id": "Root=1-6813197e-3de16c3f45b83edc01c357ad"
|
||||
},
|
||||
"origin": "***",
|
||||
"url": "https://httpbin.org/get"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ URL encoding is enabled by default
|
||||
ParametersStructure.Insert("param1", "search?text");
|
||||
ParametersStructure.Insert("param2", "John Doe");
|
||||
ParametersStructure.Insert("param3", "value&another");
|
||||
ParametersStructure.Insert("param4", "cyrillic");
|
||||
ParametersStructure.Insert("param4", "кириллица");
|
||||
ParametersStructure.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
NoEncoding = OPI_HTTPRequests.NewRequest()
|
||||
|
||||
15924
service/dictionaries/en.json
vendored
15924
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -21411,7 +21411,7 @@ Procedure HTTPClient_SetURLParams(FunctionParameters)
|
||||
ParameterStructure1.Insert("param1", "search?text");
|
||||
ParameterStructure1.Insert("param2", "John Doe");
|
||||
ParameterStructure1.Insert("param3", "value&another");
|
||||
ParameterStructure1.Insert("param4", "cyrillic");
|
||||
ParameterStructure1.Insert("param4", "кириллица");
|
||||
ParameterStructure1.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
ResourceAddress1 = OPI_HTTPRequests.NewRequest()
|
||||
@@ -21698,7 +21698,7 @@ Procedure HTTPClient_SetStringBody(FunctionParameters)
|
||||
|
||||
TextB64 = "data:application/octet-stream;base64," + Base64String(TextBD);
|
||||
|
||||
OPI_TestDataRetrieval.ExpectsThat(Result["data"]).Равно(TextB64);
|
||||
OPI_TestDataRetrieval.ExpectsThat(Result["data"] = TextB64 Or Result["data"] = Text).Равно(True);
|
||||
|
||||
EndProcedure
|
||||
|
||||
@@ -22682,7 +22682,7 @@ Procedure HTTPClient_UseURLEncoding(FunctionParameters)
|
||||
ParametersStructure.Insert("param1", "search?text");
|
||||
ParametersStructure.Insert("param2", "John Doe");
|
||||
ParametersStructure.Insert("param3", "value&another");
|
||||
ParametersStructure.Insert("param4", "cyrillic");
|
||||
ParametersStructure.Insert("param4", "кириллица");
|
||||
ParametersStructure.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
NoEncoding = OPI_HTTPRequests.NewRequest()
|
||||
|
||||
@@ -21411,7 +21411,7 @@ Procedure HTTPClient_SetURLParams(FunctionParameters)
|
||||
ParameterStructure1.Insert("param1", "search?text");
|
||||
ParameterStructure1.Insert("param2", "John Doe");
|
||||
ParameterStructure1.Insert("param3", "value&another");
|
||||
ParameterStructure1.Insert("param4", "cyrillic");
|
||||
ParameterStructure1.Insert("param4", "кириллица");
|
||||
ParameterStructure1.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
ResourceAddress1 = OPI_HTTPRequests.NewRequest()
|
||||
@@ -21698,7 +21698,7 @@ Procedure HTTPClient_SetStringBody(FunctionParameters)
|
||||
|
||||
TextB64 = "data:application/octet-stream;base64," + Base64String(TextBD);
|
||||
|
||||
OPI_TestDataRetrieval.ExpectsThat(Result["data"]).Равно(TextB64);
|
||||
OPI_TestDataRetrieval.ExpectsThat(Result["data"] = TextB64 Or Result["data"] = Text).Равно(True);
|
||||
|
||||
EndProcedure
|
||||
|
||||
@@ -22682,7 +22682,7 @@ Procedure HTTPClient_UseURLEncoding(FunctionParameters)
|
||||
ParametersStructure.Insert("param1", "search?text");
|
||||
ParametersStructure.Insert("param2", "John Doe");
|
||||
ParametersStructure.Insert("param3", "value&another");
|
||||
ParametersStructure.Insert("param4", "cyrillic");
|
||||
ParametersStructure.Insert("param4", "кириллица");
|
||||
ParametersStructure.Insert("param5", "<script>alert('XSS')</script>");
|
||||
|
||||
NoEncoding = OPI_HTTPRequests.NewRequest()
|
||||
|
||||
@@ -21698,7 +21698,7 @@
|
||||
|
||||
ТекстB64 = "data:application/octet-stream;base64," + Base64Строка(ТекстДД);
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ОжидаетЧто(Результат["data"]).Равно(ТекстB64);
|
||||
OPI_ПолучениеДанныхТестов.ОжидаетЧто(Результат["data"] = ТекстB64 Или Результат["data"] = Текст).Равно(Истина);
|
||||
|
||||
КонецПроцедуры
|
||||
|
||||
|
||||
Reference in New Issue
Block a user