Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APIGW]: throttling policy management #607

Merged
merged 1 commit into from
Jan 11, 2024
Merged

[APIGW]: throttling policy management #607

merged 1 commit into from
Jan 11, 2024

Conversation

artem-lifshits
Copy link
Member

@artem-lifshits artem-lifshits commented Jan 11, 2024

What this PR does / why we need it

Package to manage throttling policies
Refers to: #2403.

Acceptance tests

=== RUN TestThrottlingPolicyLifecycle
tools.go:72: {
"app_call_limits": 50,
"name": "test_policy_1QYv2_updated",
"time_unit": "MINUTE",
"remark": "test throttling policy updated",
"api_call_limits": 199,
"type": 1,
"enable_adaptive_control": "FALSE",
"user_call_limits": 50,
"time_interval": 999,
"ip_call_limits": 0,
"id": "7d1bf038797d454f8013c395bf0bc12f",
"bind_num": 0,
"is_inclu_special_throttle": 2,
"create_time": "2024-01-11T02:08:44Z"
}
--- PASS: TestThrottlingPolicyLifecycle (1.67s)
=== RUN TestThrottlingPolicyList
tools.go:72: [
{
"app_call_limits": 0,
"name": "Throttling_ozcf",
"time_unit": "MINUTE",
"remark": "",
"api_call_limits": 200,
"type": 1,
"enable_adaptive_control": "FALSE",
"user_call_limits": 0,
"time_interval": 2,
"ip_call_limits": 0,
"id": "7782f5327cf54bf1ac9fe804faf64ab3",
"bind_num": 0,
"is_inclu_special_throttle": 2,
"create_time": "2024-01-11T02:05:25Z"
}
]
--- PASS: TestThrottlingPolicyList (0.54s)
PASS

Process finished with the exit code 0

@anton-sidelnikov anton-sidelnikov added the enhancement New feature or request label Jan 11, 2024
@artem-lifshits artem-lifshits added the gate Merge PR label Jan 11, 2024
Copy link
Contributor

otc-zuul bot commented Jan 11, 2024

Build succeeded.
https://zuul.otc-service.com/t/eco/buildset/d734f01c82cf45cdab311b6291565888

✔️ otc-golangci-lint SUCCESS in 2m 21s
✔️ golang-make-vet SUCCESS in 3m 00s
✔️ golang-make-test SUCCESS in 3m 42s
✔️ golang-make-functional SUCCESS in 7m 54s

@otc-zuul otc-zuul bot merged commit ebb7258 into devel Jan 11, 2024
2 checks passed
@otc-zuul otc-zuul bot deleted the throttling_policy branch January 11, 2024 10:08
artem-lifshits added a commit that referenced this pull request Jan 11, 2024
[APIGW]: throttling policy management

What this PR does / why we need it
Package to manage throttling policies
Acceptance tests
=== RUN   TestThrottlingPolicyLifecycle
tools.go:72: {
"app_call_limits": 50,
"name": "test_policy_1QYv2_updated",
"time_unit": "MINUTE",
"remark": "test throttling policy updated",
"api_call_limits": 199,
"type": 1,
"enable_adaptive_control": "FALSE",
"user_call_limits": 50,
"time_interval": 999,
"ip_call_limits": 0,
"id": "7d1bf038797d454f8013c395bf0bc12f",
"bind_num": 0,
"is_inclu_special_throttle": 2,
"create_time": "2024-01-11T02:08:44Z"
}
--- PASS: TestThrottlingPolicyLifecycle (1.67s)
=== RUN   TestThrottlingPolicyList
tools.go:72: [
{
"app_call_limits": 0,
"name": "Throttling_ozcf",
"time_unit": "MINUTE",
"remark": "",
"api_call_limits": 200,
"type": 1,
"enable_adaptive_control": "FALSE",
"user_call_limits": 0,
"time_interval": 2,
"ip_call_limits": 0,
"id": "7782f5327cf54bf1ac9fe804faf64ab3",
"bind_num": 0,
"is_inclu_special_throttle": 2,
"create_time": "2024-01-11T02:05:25Z"
}
]
--- PASS: TestThrottlingPolicyList (0.54s)
PASS
Process finished with the exit code 0

Reviewed-by: Anton Sidelnikov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants