@@ -2725,8 +2725,24 @@ def test_dummy_mcStorage(mcStorage: MerginClient, mc: MerginClient):
27252725 if workspace ["name" ] == STORAGE_WORKSPACE :
27262726 client_workspace = workspace
27272727 break
2728+
2729+ for workspace in mcStorage .workspaces_list ():
2730+ if workspace ["name" ] == API_USER :
2731+ client_workspace_API_USER = workspace
2732+ break
2733+
2734+ for workspace in mcStorage .workspaces_list ():
2735+ if workspace ["name" ] == API_USER2 :
2736+ client_workspace_API_USER2 = workspace
2737+ break
2738+
27282739 client_workspace_id = client_workspace ["id" ]
27292740 client_workspace_storage = client_workspace ["storage" ]
2741+ client_workspace_id_API_USER = client_workspace_API_USER ["id" ]
2742+ client_workspace_storage_API_USER = client_workspace_API_USER ["storage" ]
2743+ client_workspace_id_API_USER2 = client_workspace_API_USER2 ["id" ]
2744+ client_workspace_storage_API_USER2 = client_workspace_API_USER2 ["storage" ]
2745+
27302746
27312747 mcStorage .patch (
27322748 f"/v1/tests/workspaces/{ client_workspace_id } " ,
@@ -2742,10 +2758,23 @@ def test_dummy_mcStorage(mcStorage: MerginClient, mc: MerginClient):
27422758 )
27432759
27442760 mc .patch (
2745- f"/v1/tests/workspaces/{ client_workspace_id } " ,
2761+ f"/v1/tests/workspaces/{ client_workspace_id_API_USER } " ,
27462762 {
27472763 "limits_override" : {
2748- "storage" : client_workspace_storage ,
2764+ "storage" : client_workspace_storage_API_USER ,
2765+ "projects" : 100 ,
2766+ "monthly_contributors" : 1000 ,
2767+ "api_allowed" : True ,
2768+ }
2769+ },
2770+ {"Content-Type" : "application/json" },
2771+ )
2772+
2773+ mc .patch (
2774+ f"/v1/tests/workspaces/{ client_workspace_id_API_USER2 } " ,
2775+ {
2776+ "limits_override" : {
2777+ "storage" : client_workspace_storage_API_USER2 ,
27492778 "projects" : 100 ,
27502779 "monthly_contributors" : 1000 ,
27512780 "api_allowed" : True ,
0 commit comments