Pass binary data via APIGateway - Integration test
diff --git a/tests/integration/test_api_gateway.py b/tests/integration/test_api_gateway.py
index ed47bdb7b9f88..d6316b889d906 100644
--- a/tests/integration/test_api_gateway.py
+++ b/tests/integration/test_api_gateway.py
@@ -450,6 +450,11 @@ def _test_api_gateway_lambda_proxy_integration(
         result = requests.post(url, data=json.dumps({"return_raw_body": body_msg}))
         self.assertEqual(body_msg, to_str(result.content))
 
+        # send message with binary data
+        binary_msg = b"\xff \xaa \x11"
+        result = requests.post(url, data=binary_msg)
+        self.assertEqual("/yCqIBE=", json.loads(to_str(result.content))["body"])
+
     def test_api_gateway_lambda_proxy_integration_any_method(self):
         self._test_api_gateway_lambda_proxy_integration_any_method(
             self.TEST_LAMBDA_PROXY_BACKEND_ANY_METHOD,

This PR extends the integration test in APIGateway to cover the passing of binary data via APIGateway.
It is a follow-up PR to PR #4249 
