Locust: Ability to disable SSL certificate verify

Created on 8 Jul 2017  路  3Comments  路  Source: locustio/locust

Please allow a flag such as --disable-ssl-verify that will ignore certificate verify errors when testing a website.

Most helpful comment

I don't think it makes sense to add this as a command line option. It won't be applicable in many cases, like when writing a locustfile with a custom client.

I think this is best handled in code when writing your locustfile. You can disable cert verification by passing verify=False when making HTTP requests from client.

For examples, see #300

All 3 comments

I don't think it makes sense to add this as a command line option. It won't be applicable in many cases, like when writing a locustfile with a custom client.

I think this is best handled in code when writing your locustfile. You can disable cert verification by passing verify=False when making HTTP requests from client.

For examples, see #300

Here is the rationale. Yes, you can put in your tests whether to verify or not. But in reality, we want to test load on our systems not whether SSL is good or not. There are different systems in the chain before production. Not all of them have valid certificates, nor need to. I don't want to write and maintain separate yet identical functional tests simply to turn SSL verify on or off. I would rather use the same suite of tests and override the HTTP setting from command line to disable it. In other less frequent situations you just encounter a bad certificate in a system you are testing (maybe it expired). You don't want to A) Hang up your testing because of this bad cert or B) Edit your tests (what if there are 1000's?) to reflect this temporary situation.

I would rather use the same suite of tests and override
the HTTP setting from command line to disable it

or you could use environment variables

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dolohow picture dolohow  路  3Comments

max-rocket-internet picture max-rocket-internet  路  3Comments

styk-tv picture styk-tv  路  3Comments

kowalcj0 picture kowalcj0  路  3Comments

wosc picture wosc  路  3Comments