Skip to content

Commit 26f947f

Browse files
Update test initialization and add preflight check for Azure Maps sample
1 parent 2f939c9 commit 26f947f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samples/azure-maps/create.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@
113113
"from apimrequests import ApimRequests\n",
114114
"import json\n",
115115
"\n",
116-
"tests = ApimTesting(\"AuthX-Pro Sample Tests\", sample_folder, deployment)\n",
116+
"tests = ApimTesting(\"Azure Maps Sample Tests\", sample_folder, deployment)\n",
117+
"\n",
118+
"# Preflight: Check if the infrastructure architecture deployment uses Azure Front Door. If so, assume that APIM is not directly accessible and use the Front Door URL instead.\n",
119+
"endpoint_url = utils.test_url_preflight_check(deployment, rg_name, apim_gateway_url)\n",
120+
"\n",
117121
"reqs = ApimRequests(apim_gateway_url)\n",
118122
"\n",
119123
"# 1) Issue a direct request to API Management\n",

0 commit comments

Comments
 (0)