|
134 | 134 | "endpoint_url = utils.test_url_preflight_check(deployment, rg_name, apim_gateway_url)\n", |
135 | 135 | "\n", |
136 | 136 | "# 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", |
138 | 138 | "output = reqs.singleGet('/lb-prioritized', msg = 'Quick test of load balancing API')\n", |
139 | 139 | "\n", |
140 | 140 | "# Verify initial response from priority 1 backend\n", |
|
152 | 152 | "# 2) Weighted equal distribution\n", |
153 | 153 | "zzzs()\n", |
154 | 154 | "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", |
156 | 156 | "api_results_weighted_equal = reqs.multiGet('/lb-weighted-equal', runs = 15, msg='Calling weighted (equal) APIs')\n", |
157 | 157 | "tests.verify(len(api_results_weighted_equal), 15)\n", |
158 | 158 | "\n", |
159 | 159 | "# 3) Weighted unequal distribution\n", |
160 | 160 | "zzzs()\n", |
161 | 161 | "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", |
163 | 163 | "api_results_weighted_unequal = reqs.multiGet('/lb-weighted-unequal', runs = 15, msg = 'Calling weighted (unequal) APIs')\n", |
164 | 164 | "tests.verify(len(api_results_weighted_unequal), 15)\n", |
165 | 165 | "\n", |
166 | 166 | "# 4) Prioritized and weighted distribution\n", |
167 | 167 | "zzzs()\n", |
168 | 168 | "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", |
170 | 170 | "api_results_prioritized_and_weighted = reqs.multiGet('/lb-prioritized-weighted', runs=20, msg='Calling prioritized & weighted APIs')\n", |
171 | 171 | "tests.verify(len(api_results_prioritized_and_weighted), 20)\n", |
172 | 172 | "\n", |
|
0 commit comments