Charles Greer fe3b5a8922 [#387] Do not escape the "timeout" parameter. (#394)
* [#387] Do not escape the "timeout" parameter.

When the "timeout" parameter is escaped and turned into
a string, it does not pass validation checks.
This PR ensures that timeout is passed through as-is,
just like "request_timeout".
There's no explicit test for this parameter, but I included
it on some existing tests just to ensure that the code
is exercised.  Without the fix in place, one of the tests as modified will not pass.

Signed-off-by: Charles Greer <[email protected]>

* Unit test for timeout parameter

Revert original test modifications.

Signed-off-by: Charles Greer <[email protected]>

* Extend test and linter

Signed-off-by: Charles Greer <[email protected]>

---------

Signed-off-by: Charles Greer <[email protected]>
2023-05-23 18:12:29 -04:00
2023-05-15 14:48:05 -07:00
2022-11-28 14:29:22 -08:00
2021-08-19 07:58:20 +05:30
2023-05-15 14:48:05 -07:00
2021-08-13 11:45:36 +05:30
2021-08-19 07:58:20 +05:30
2021-08-19 07:58:20 +05:30
2021-08-19 13:08:26 +05:30
2023-01-18 18:06:59 -05:00
2022-11-28 14:29:22 -08:00

Release CI Integration Chat PRs welcome!

OpenSearch logo

OpenSearch Python Client

Welcome!

opensearch-py is a community-driven, open source fork of elasticsearch-py licensed under the Apache v2.0 License. For more information, see opensearch.org and the API Doc.

User Guide

To get started with the OpenSearch Python Client, see User Guide.

Compatibility with OpenSearch

See Compatibility.

Project Resources

Code of Conduct

This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact [email protected] with any additional questions or comments.

License

This project is licensed under the Apache v2.0 License.

Copyright OpenSearch Contributors. See NOTICE for details.

Languages
Python 99.4%
Shell 0.6%