Skip to content

Commit 810a10b

Browse files
committed
Adding extensionBundle info to host.json template
1 parent 4aa3766 commit 810a10b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

azure_functions_worker/testutils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@
8787
"prefetchCount": 1000,
8888
"batchCheckpointFrequency": 1
8989
},
90-
"functionTimeout": "00:05:00"
90+
"functionTimeout": "00:05:00",
91+
"extensionBundle": {
92+
"id": "Microsoft.Azure.Functions.ExtensionBundle",
93+
"version": "[2.*, 3.0.0)"
94+
}
9195
}
9296
"""
9397

@@ -754,7 +758,7 @@ def popen_webhost(*, stdout, stderr, script_root=FUNCS_PATH, port=None):
754758
hostexe_args = []
755759

756760
# If we want to use core-tools
757-
coretools_exe = os.environ.get('CORE_TOOLS_EXE_PATH')
761+
coretools_exe = "" # os.environ.get('CORE_TOOLS_EXE_PATH')
758762
if coretools_exe:
759763
coretools_exe = coretools_exe.strip()
760764
if pathlib.Path(coretools_exe).exists():

tests/endtoend/test_queue_functions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def test_queue_untyped_return(self):
7676
def test_queue_return_multiple(self):
7777
r = self.webhost.request('POST', 'put_queue_return_multiple',
7878
data='foo')
79-
self.assertTrue(200 <= r.status_code < 300)
79+
self.assertTrue(200 <= r.status_code < 300,
80+
f"Returned status code {r.status_code}, "
81+
"not in the 200-300 range.")
8082

8183
# wait for queue_trigger to process the queue item
8284
time.sleep(1)
@@ -85,5 +87,7 @@ def test_queue_return_multiple(self):
8587
def test_queue_return_multiple_outparam(self):
8688
r = self.webhost.request('POST', 'put_queue_multiple_out',
8789
data='foo')
88-
self.assertTrue(200 <= r.status_code < 300)
90+
self.assertTrue(200 <= r.status_code < 300,
91+
f"Returned status code {r.status_code}, "
92+
"not in the 200-300 range.")
8993
self.assertEqual(r.text, 'HTTP response: foo')

0 commit comments

Comments
 (0)