File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -822,6 +822,17 @@ def test_get_enforced_params(
822
822
api_key = "test_api_key" , user_id = "test_user_id" , org_id = "test_org_id"
823
823
),
824
824
{},
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
+ {},
825
836
True ,
826
837
),
827
838
(
@@ -854,6 +865,7 @@ def test_get_enforced_params(
854
865
{"service_account_settings" : {"enforced_params" : ["user" ]}},
855
866
UserAPIKeyAuth (
856
867
api_key = "test_api_key" ,
868
+ metadata = {"service_account_id" : "test_service_account_id" }
857
869
),
858
870
{"user" : "test_user" },
859
871
False ,
You can’t perform that action at this time.
0 commit comments