From c57a8646bcd50cd15229658b6163d89e2ce6c35b Mon Sep 17 00:00:00 2001 From: Tim Vahlbrock Date: Tue, 12 Mar 2024 10:28:22 +0100 Subject: [PATCH] test compliance with openapi specs --- mitmproxy2swagger/test_openapi_compliance.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mitmproxy2swagger/test_openapi_compliance.py b/mitmproxy2swagger/test_openapi_compliance.py index 49beece..5134b81 100644 --- a/mitmproxy2swagger/test_openapi_compliance.py +++ b/mitmproxy2swagger/test_openapi_compliance.py @@ -71,3 +71,17 @@ def test_mitmproxy2swagger_compliance_from_msgpack_file_with_headers(): ) assert data is not None validate_spec(data) + + +def test_mitmproxy2swagger_compliance_from_generic_keys_file_with_headers(): + data = mitmproxy2swagger_e2e_test( + "testdata/generic_keys_flows", + "http://localhost:8082/", + [ + "--format", + "flow", + "--headers", + ], + ) + assert data is not None + validate_spec(data)