INNER CODE UNIT · Python
name
open-quantum-safe/oqs-demos · locust/scenarios/locustfile.py:68
name=host+endpoint,
response_time=total,
response_length=content_length,
exception=f"Error Code: {result.returncode} - {result.stderr}"
)
except subprocess.CalledProcessError as e:
logger.error(f"Error executing OpenSSL command: {e}")
# Change the following methods to use the make_post_quantum_request_with_openssl method where
# first parameter is the endpoint and the second parameter is the group (kyber768 by default)
@task(1)
def post_quantum_customers(self):
self.make_post_quantum_request_with_openssl("/customers")
@task(1)
def post_quantum_devices(self):
self.make_post_quantum_request_with_openssl("/devices")