Skip to content

Commit 13aa7f7

Browse files
committed
test_enforced_params_check
1 parent f8ce307 commit 13aa7f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/proxy_unit_tests/test_proxy_utils.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,17 @@ def test_get_enforced_params(
822822
api_key="test_api_key", user_id="test_user_id", org_id="test_org_id"
823823
),
824824
{},
825+
False,
826+
),
827+
(
828+
{"service_account_settings": {"enforced_params": ["user"]}},
829+
UserAPIKeyAuth(
830+
api_key="test_api_key",
831+
user_id="test_user_id",
832+
org_id="test_org_id",
833+
metadata={"service_account_id": "test_service_account_id"}
834+
),
835+
{},
825836
True,
826837
),
827838
(
@@ -854,6 +865,7 @@ def test_get_enforced_params(
854865
{"service_account_settings": {"enforced_params": ["user"]}},
855866
UserAPIKeyAuth(
856867
api_key="test_api_key",
868+
metadata={"service_account_id": "test_service_account_id"}
857869
),
858870
{"user": "test_user"},
859871
False,

0 commit comments

Comments
 (0)