Skip to content

Commit 235f906

Browse files
Clean up Locust test script by removing base_url
Remove unused base_url variable in Locust test script.
1 parent 9e073d6 commit 235f906

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

articles/app-testing/load-testing/how-to-test-secured-endpoints.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,8 @@ When you run your load test, Azure Load Testing retrieves the client certificate
246246
For Locust-based tests, you can retrieve the certificate and use it in your tests script. The certificate configured in the load test configuration are available in the `ALT_CERTIFICATES_DIR`.
247247

248248
```Python
249-
endpoint = os.getenv("endpoint") or "localhost"
250249
cert_dir = os.getenv("ALT_CERTIFICATES_DIR")
251250
252-
base_url = "https://" + endpoint
253-
254251
key_path = "client.key.pem"
255252
crt_path = "client.crt.pem"
256253

0 commit comments

Comments
 (0)