Set OCNative request timeout to 60s #3549
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OCNative request may hang indefinitely without timeout, this change adds a default timeout 60s.
APPSRE-7677
timeout-settings.md
example request_timeout.py
馃 Generated by Copilot at a1ca233
Improved testing and timeout handling for the
oc
module. Renamed theoc
fixture and parameter intest_utils_oc.py
to avoid confusion with the native client. Added tests for theOCNative
class and its methods. Added a 60-second timeout for native client requests inoc.py
.馃 Generated by Copilot at a1ca233
REQUEST_TIMEOUT
to theoc
module and use it to set the timeout for the native client requests (link, link, link, link, link)oc
fixture tooc_cli
and annotate it with theOCCli
type intest_utils_oc.py
(link, link)oc
parameter tooc_cli
in the test functions that use theoc_cli
fixture (link, link, link, link, link)OCNative
class from theoc
module intest_utils_oc.py
(link)oc_native
that returns anOCNative
instance with mocked API resources and client intest_utils_oc.py
(link)get
,get_items
, andget_all
methods of theOCNative
class using theoc_native
fixture (link)