You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting SSLCertVerificationError when using Https request
Expected behavior
Should able to run test
Actual behavior
getting SSL error when performing test against internal API
Environment settings (for bug reports)
OS: Windows 10
Python version: Python 3.7
Locust version: Locust 0.8.1
Steps to reproduce (for bug reports)
I'm new to Locust and I'm running load testing against internal Rest API. The API uses header token for authorization. But when I pass the header information, it is throwing an error
I'm running the test using the following command locust -f name.py
from locust import HttpLocust, TaskSet, task
class SampleTest(TaskSet):
def on_start(self):
self.client.post('rest api root url end point',
headers={'Content-Type': 'application/json',
'Authorization': 'bearer token'}
)
@task(2)
def get_Listings(self):
self.client.get("passing the end point of one service")
class WebsiteUser(HttpLocust):
host = "rest api root url endpoint"
min_wait = 2000
max_wait = 5000
task_set = SampleTest
The text was updated successfully, but these errors were encountered:
Description of issue / feature request
Getting SSLCertVerificationError when using Https request
Expected behavior
Should able to run test
Actual behavior
getting SSL error when performing test against internal API
Environment settings (for bug reports)
Steps to reproduce (for bug reports)
I'm new to Locust and I'm running load testing against internal Rest API. The API uses header token for authorization. But when I pass the header information, it is throwing an error
I'm running the test using the following command
locust -f name.py
SSLError(SSLCertVerificationError
TBD - example code appreciated
The text was updated successfully, but these errors were encountered: