mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-08-04 00:46:52 +00:00
Revert auto-generated changes; keep core retry fix only
This commit is contained in:
parent
9a2756e098
commit
a7af544ee1
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Administrative API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Agents API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Alerts API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK BGP Monitors API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Integrations API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Core"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -41,19 +41,3 @@ def test_parse_reset_header_invalid():
|
|||||||
retry = ThousandEyesRetry()
|
retry = ThousandEyesRetry()
|
||||||
assert retry._parse_reset_header("invalid") is None
|
assert retry._parse_reset_header("invalid") is None
|
||||||
assert retry._parse_reset_header(None) is None
|
assert retry._parse_reset_header(None) is None
|
||||||
|
|
||||||
|
|
||||||
def test_retry_new_clones_with_retry_after_max():
|
|
||||||
retry = ThousandEyesRetry(retry_after_max=3600)
|
|
||||||
cloned = retry.new()
|
|
||||||
assert isinstance(cloned, ThousandEyesRetry)
|
|
||||||
assert cloned.retry_after_max == 3600
|
|
||||||
|
|
||||||
|
|
||||||
def test_retry_increment_on_429():
|
|
||||||
response = Mock(spec=HTTPResponse)
|
|
||||||
response.status = 429
|
|
||||||
response.headers = {"Retry-After": "0"}
|
|
||||||
retry = ThousandEyesRetry(total=1)
|
|
||||||
new_retry = retry.increment(method="GET", url="/test", response=response)
|
|
||||||
assert isinstance(new_retry, ThousandEyesRetry)
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Credentials API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Dashboards API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Emulation API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Endpoint Agents API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Endpoint Instant Scheduled Tests API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Endpoint Agent Labels API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Endpoint Test Results API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Endpoint Tests API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Event Detection API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Instant Tests API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Internet Insights API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Test Snapshots API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK ThousandEyes for OpenTelemetry API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Tags API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Test Results API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Tests API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ description = "ThousandEyes SDK Usage API"
|
|||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"urllib3 >= 2.6.3",
|
"urllib3 >= 2.0.0",
|
||||||
"python-dateutil >=2.8.2",
|
"python-dateutil >=2.8.2",
|
||||||
"pydantic >=2.1.0",
|
"pydantic >=2.1.0",
|
||||||
"typing-extensions >=4.7.1",
|
"typing-extensions >=4.7.1",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user