Skip to content

Commit 7acaf7c

Browse files
committed
adding app insight extension
1 parent 025c3be commit 7acaf7c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6+
from subprocess import run
7+
from time import sleep
68
import json
79
import os
810
import time
@@ -28,6 +30,11 @@
2830
class ContainerappFunctionTests(ScenarioTest):
2931
def __init__(self, *arg, **kwargs):
3032
super().__init__(*arg, random_config_dir=True, **kwargs)
33+
cmd = ['azdev', 'extension', 'add', 'applicationinsights']
34+
run(cmd, check=True)
35+
cmd = ['azdev', 'extension', 'add', 'azure-mgmt-applicationinsights']
36+
run(cmd, check=True)
37+
sleep(120)
3138

3239

3340
@AllowLargeResponse(8192)

0 commit comments

Comments
 (0)