Skip to content

Commit c8f08e2

Browse files
Merge pull request #19 from khushishah513/function-comments
resolving some of the comments on PR
2 parents c01dbdf + aac3e98 commit c8f08e2

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/containerapp/HISTORY.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Release History
44
===============
55
upcoming
66
++++++
7-
8-
1.2.0b4
9-
++++++
107
* 'az containerapp function list': List functions in a container app
118
* 'az containerapp function show': Show specific function in a container app
129
* 'az containerapp function keys show': Show specific function key in a container app
1310
* 'az containerapp function keys list': List function keys in a container app
1411
* 'az containerapp function keys set': Create a new or update an existing function key in a container app
1512
* 'az containerapp function invocations summary': Get function invocation summary from Application Insights
1613
* 'az containerapp function invocations traces': Get function invocation traces from Application Insights
14+
15+
1.2.0b4
16+
++++++
1717
* 'az containerapp update/up': Disallow changing `--revisions-mode` to Labels.
1818
* 'az containerapp session code-interpreter': Fix `--path` in examples
1919
* 'az containerapp sessionpool create/update': Support `--lifecycle-type` and `--max-alive-period`

src/containerapp/azext_containerapp/custom.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3615,6 +3615,7 @@ def list_maintenance_config(cmd, resource_group_name, env_name):
36153615

36163616

36173617
def containerapp_debug(cmd, resource_group_name, name, container=None, revision=None, replica=None, debug_command=None):
3618+
logger.warning("Connecting...")
36183619
if debug_command is not None:
36193620
raw_parameters = {
36203621
'resource_group_name': resource_group_name,
@@ -3654,12 +3655,14 @@ def containerapp_debug(cmd, resource_group_name, name, container=None, revision=
36543655

36553656
while conn.is_connected:
36563657
if not reader.is_alive() or not writer.is_alive():
3658+
logger.warning("Reader or Writer for WebSocket is not alive. Closing the connection.")
36573659
conn.disconnect()
36583660

36593661
try:
36603662
time.sleep(0.1)
36613663
except KeyboardInterrupt:
36623664
if conn.is_connected:
3665+
logger.info("Caught KeyboardInterrupt. Sending ctrl+c to server")
36633666
conn.send(SSH_CTRL_C_MSG)
36643667

36653668

src/containerapp/azext_containerapp/tests/latest/test_containerapp_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, *arg, **kwargs):
3434
@ResourceGroupPreparer(location="northcentralus")
3535
def test_containerapp_function_list_show_basic(self, resource_group):
3636
"""Test basic function list functionality with various scenarios"""
37-
location = "northcentralusstage"
37+
location = TEST_LOCATION
3838
self.cmd('configure --defaults location={}'.format(location))
3939

4040
ca_name = self.create_random_name(prefix='containerapp', length=24)
@@ -365,7 +365,7 @@ def test_containerapp_function_keys(self, resource_group):
365365
@ResourceGroupPreparer(location="northcentralus")
366366
def test_containerapp_function_invocations_summary_traces(self, resource_group):
367367
"""Test function keys show/list/set functionality using connection string and App Insights"""
368-
location = "northcentralus"
368+
location = TEST_LOCATION
369369
functionapp_location = "northcentralusstage"
370370
funcapp_name = self.create_random_name("functionapp", length=24)
371371
image = "mcr.microsoft.com/azure-functions/dotnet8-quickstart-demo:1.0"

0 commit comments

Comments
 (0)