integrations/mock_server/README.md
This project provides a configurable mock HTTP/HTTPS server designed for API testing, dynamic response generation, and automated request handling. It supports static responses, dynamic custom response handlers, query parameter matching, request body validation (including regex), and both HTTP and HTTPS protocols.
openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.crt -days 365 -nodes -subj "/C=US/ST= /L= /O= /OU= /CN=localhost"
You can run the tests using one of these methods:
PYTHONPATH=$PYTHONPATH:/workspace/connectedhomeip/integrations/mock_server/src python3 -m unittest integrations/mock_server/tests/test_mock_server.py