-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch deserialization bug in 2.13.1 (#2745)
- Loading branch information
1 parent
e568610
commit 254b262
Showing
14 changed files
with
220 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/SmokeTests/OOProcSmokeTests/durableJS/PrintArray/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"bindings": [ | ||
{ | ||
"name": "array", | ||
"type": "activityTrigger", | ||
"direction": "in" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
test/SmokeTests/OOProcSmokeTests/durableJS/PrintArray/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This function is not intended to be invoked directly. Instead it will be | ||
* triggered by an orchestrator function. | ||
* | ||
* Before running this sample, please: | ||
* - create a Durable orchestration function | ||
* - create a Durable HTTP starter function | ||
* - run 'npm install durable-functions' from the wwwroot folder of your | ||
* function app in Kudu | ||
*/ | ||
|
||
module.exports = async function (context) { | ||
return context.bindings.array.toString(); | ||
}; |
9 changes: 9 additions & 0 deletions
9
test/SmokeTests/OOProcSmokeTests/durableJS/PrintObject/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"bindings": [ | ||
{ | ||
"name": "cities", | ||
"type": "activityTrigger", | ||
"direction": "in" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
test/SmokeTests/OOProcSmokeTests/durableJS/PrintObject/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* This function is not intended to be invoked directly. Instead it will be | ||
* triggered by an orchestrator function. | ||
* | ||
* Before running this sample, please: | ||
* - create a Durable orchestration function | ||
* - create a Durable HTTP starter function | ||
* - run 'npm install durable-functions' from the wwwroot folder of your | ||
* function app in Kudu | ||
*/ | ||
|
||
module.exports = async function (context) { | ||
return JSON.stringify(context.bindings.obj); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test/SmokeTests/OOProcSmokeTests/durablePy/Print/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This function is not intended to be invoked directly. Instead it will be | ||
# triggered by an orchestrator function. | ||
# Before running this sample, please: | ||
# - create a Durable orchestration function | ||
# - create a Durable HTTP starter function | ||
# - add azure-functions-durable to requirements.txt | ||
# - run pip install -r requirements.txt | ||
|
||
import logging | ||
|
||
|
||
def main(input: int) -> str: | ||
return f"{input}" |
10 changes: 10 additions & 0 deletions
10
test/SmokeTests/OOProcSmokeTests/durablePy/Print/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scriptFile": "__init__.py", | ||
"bindings": [ | ||
{ | ||
"name": "input", | ||
"type": "activityTrigger", | ||
"direction": "in" | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
test/SmokeTests/OOProcSmokeTests/durablePy/PrintArray/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This function is not intended to be invoked directly. Instead it will be | ||
# triggered by an orchestrator function. | ||
# Before running this sample, please: | ||
# - create a Durable orchestration function | ||
# - create a Durable HTTP starter function | ||
# - add azure-functions-durable to requirements.txt | ||
# - run pip install -r requirements.txt | ||
|
||
import logging | ||
|
||
def main(cities: list) -> str: | ||
results = ""; | ||
for city in cities: | ||
result = f"{city} " | ||
results += result | ||
return results |
10 changes: 10 additions & 0 deletions
10
test/SmokeTests/OOProcSmokeTests/durablePy/PrintArray/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scriptFile": "__init__.py", | ||
"bindings": [ | ||
{ | ||
"name": "cities", | ||
"type": "activityTrigger", | ||
"direction": "in" | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
test/SmokeTests/OOProcSmokeTests/durablePy/PrintObject/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This function is not intended to be invoked directly. Instead it will be | ||
# triggered by an orchestrator function. | ||
# Before running this sample, please: | ||
# - create a Durable orchestration function | ||
# - create a Durable HTTP starter function | ||
# - add azure-functions-durable to requirements.txt | ||
# - run pip install -r requirements.txt | ||
|
||
import logging | ||
|
||
|
||
def main(obj: object) -> str: | ||
return f"Printing object: {obj}" |
10 changes: 10 additions & 0 deletions
10
test/SmokeTests/OOProcSmokeTests/durablePy/PrintObject/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scriptFile": "__init__.py", | ||
"bindings": [ | ||
{ | ||
"name": "obj", | ||
"type": "activityTrigger", | ||
"direction": "in" | ||
} | ||
] | ||
} |