Skip to content

Commit 73cf964

Browse files
Fix endpoint URL
1 parent ec09b5c commit 73cf964

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/load-balancing/create.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"endpoint_url = utils.test_url_preflight_check(deployment, rg_name, apim_gateway_url)\n",
135135
"\n",
136136
"# Quick test to verify load balancing API is accessible\n",
137-
"reqs = ApimRequests(apim_gateway_url, apim_apis[0]['subscriptionPrimaryKey'])\n",
137+
"reqs = ApimRequests(endpoint_url, apim_apis[0]['subscriptionPrimaryKey'])\n",
138138
"output = reqs.singleGet('/lb-prioritized', msg = 'Quick test of load balancing API')\n",
139139
"\n",
140140
"# Verify initial response from priority 1 backend\n",
@@ -152,21 +152,21 @@
152152
"# 2) Weighted equal distribution\n",
153153
"zzzs()\n",
154154
"utils.print_message('2/5: Starting API calls for weighted distribution (50/50)', blank_above = True)\n",
155-
"reqs = ApimRequests(apim_gateway_url, apim_apis[2]['subscriptionPrimaryKey'])\n",
155+
"reqs = ApimRequests(endpoint_url, apim_apis[2]['subscriptionPrimaryKey'])\n",
156156
"api_results_weighted_equal = reqs.multiGet('/lb-weighted-equal', runs = 15, msg='Calling weighted (equal) APIs')\n",
157157
"tests.verify(len(api_results_weighted_equal), 15)\n",
158158
"\n",
159159
"# 3) Weighted unequal distribution\n",
160160
"zzzs()\n",
161161
"utils.print_message('3/5: Starting API calls for weighted distribution (80/20)', blank_above = True)\n",
162-
"reqs = ApimRequests(apim_gateway_url, apim_apis[3]['subscriptionPrimaryKey'])\n",
162+
"reqs = ApimRequests(endpoint_url, apim_apis[3]['subscriptionPrimaryKey'])\n",
163163
"api_results_weighted_unequal = reqs.multiGet('/lb-weighted-unequal', runs = 15, msg = 'Calling weighted (unequal) APIs')\n",
164164
"tests.verify(len(api_results_weighted_unequal), 15)\n",
165165
"\n",
166166
"# 4) Prioritized and weighted distribution\n",
167167
"zzzs()\n",
168168
"utils.print_message('4/5: Starting API calls for prioritized & weighted distribution', blank_above=True)\n",
169-
"reqs = ApimRequests(apim_gateway_url, apim_apis[1]['subscriptionPrimaryKey'])\n",
169+
"reqs = ApimRequests(endpoint_url, apim_apis[1]['subscriptionPrimaryKey'])\n",
170170
"api_results_prioritized_and_weighted = reqs.multiGet('/lb-prioritized-weighted', runs=20, msg='Calling prioritized & weighted APIs')\n",
171171
"tests.verify(len(api_results_prioritized_and_weighted), 20)\n",
172172
"\n",

0 commit comments

Comments
 (0)