mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
feat(pool): add bulk key configuration management
This commit is contained in:
@@ -82,6 +82,17 @@ fn classifies_admin_pool_provider_key_routes_as_admin_proxy_route() {
|
||||
Some("batch_action_keys")
|
||||
);
|
||||
|
||||
let batch_update_uri: Uri = "/api/admin/pool/provider-1/keys/batch-update"
|
||||
.parse()
|
||||
.expect("uri should parse");
|
||||
let batch_update = classify_control_route(&http::Method::PATCH, &batch_update_uri, &headers)
|
||||
.expect("route should classify");
|
||||
assert_eq!(batch_update.route_family.as_deref(), Some("pool_manage"));
|
||||
assert_eq!(
|
||||
batch_update.route_kind.as_deref(),
|
||||
Some("batch_update_keys")
|
||||
);
|
||||
|
||||
let resolve_selection_uri: Uri = "/api/admin/pool/provider-1/keys/resolve-selection"
|
||||
.parse()
|
||||
.expect("uri should parse");
|
||||
|
||||
Reference in New Issue
Block a user