@@ -63,7 +63,7 @@ async fn test_cross_organization_vault_access_denied() {
6363
6464 // Create a vault in Organization B
6565 let vault_repo = VaultRepository :: new ( ( * state. storage ) . clone ( ) ) ;
66- let vault_b = Vault :: new ( 5000 , org_b. id , "Vault B" . to_string ( ) , 200 ) . unwrap ( ) ;
66+ let vault_b = Vault :: new ( 5000 , org_b. id , "Vault B" . to_string ( ) , None , 200 ) . unwrap ( ) ;
6767 vault_repo. create ( vault_b. clone ( ) ) . await . unwrap ( ) ;
6868
6969 // User A tries to access Organization B's vault
@@ -100,7 +100,7 @@ async fn test_cross_organization_client_access_denied() {
100100
101101 // Create a client in Organization B
102102 let client_repo = ClientRepository :: new ( ( * state. storage ) . clone ( ) ) ;
103- let client_b = Client :: new ( 6000 , org_b. id , "Client B" . to_string ( ) , 200 ) . unwrap ( ) ;
103+ let client_b = Client :: new ( 6000 , org_b. id , None , "Client B" . to_string ( ) , None , 200 ) . unwrap ( ) ;
104104 client_repo. create ( client_b. clone ( ) ) . await . unwrap ( ) ;
105105
106106 // User A tries to access Organization B's client
@@ -135,7 +135,7 @@ async fn test_cross_organization_team_access_denied() {
135135
136136 // Create a team in Organization B
137137 let team_repo = OrganizationTeamRepository :: new ( ( * state. storage ) . clone ( ) ) ;
138- let team_b = OrganizationTeam :: new ( 7000 , org_b. id , "Team B" . to_string ( ) ) . unwrap ( ) ;
138+ let team_b = OrganizationTeam :: new ( 7000 , org_b. id , "Team B" . to_string ( ) , None ) . unwrap ( ) ;
139139 team_repo. create ( team_b. clone ( ) ) . await . unwrap ( ) ;
140140
141141 // User A tries to access Organization B's team
@@ -170,7 +170,7 @@ async fn test_cannot_modify_other_organization_resources() {
170170
171171 // Create a vault in Organization B
172172 let vault_repo = VaultRepository :: new ( ( * state. storage ) . clone ( ) ) ;
173- let vault_b = Vault :: new ( 5000 , org_b. id , "Vault B" . to_string ( ) , 200 ) . unwrap ( ) ;
173+ let vault_b = Vault :: new ( 5000 , org_b. id , "Vault B" . to_string ( ) , None , 200 ) . unwrap ( ) ;
174174 vault_repo. create ( vault_b. clone ( ) ) . await . unwrap ( ) ;
175175
176176 // User A tries to update Organization B's vault
@@ -211,7 +211,7 @@ async fn test_cannot_delete_other_organization_resources() {
211211
212212 // Create a client in Organization B
213213 let client_repo = ClientRepository :: new ( ( * state. storage ) . clone ( ) ) ;
214- let client_b = Client :: new ( 6000 , org_b. id , "Client B" . to_string ( ) , 200 ) . unwrap ( ) ;
214+ let client_b = Client :: new ( 6000 , org_b. id , None , "Client B" . to_string ( ) , None , 200 ) . unwrap ( ) ;
215215 client_repo. create ( client_b. clone ( ) ) . await . unwrap ( ) ;
216216
217217 // User A tries to delete Organization B's client
@@ -277,18 +277,18 @@ async fn test_vault_jwt_isolation() {
277277 let ( _, _session_a, org_a, _) = setup_user_and_org ( & state, 100 , 1 , 1000 , 10000 , "userA" ) . await ;
278278
279279 let vault_repo = VaultRepository :: new ( ( * state. storage ) . clone ( ) ) ;
280- let vault_a = Vault :: new ( 5000 , org_a. id , "Vault A" . to_string ( ) , 100 ) . unwrap ( ) ;
280+ let vault_a = Vault :: new ( 5000 , org_a. id , "Vault A" . to_string ( ) , None , 100 ) . unwrap ( ) ;
281281 vault_repo. create ( vault_a. clone ( ) ) . await . unwrap ( ) ;
282282
283283 // Setup Organization B with vault
284284 let ( _, _session_b, org_b, _) = setup_user_and_org ( & state, 200 , 2 , 2000 , 20000 , "userB" ) . await ;
285285
286- let vault_b = Vault :: new ( 6000 , org_b. id , "Vault B" . to_string ( ) , 200 ) . unwrap ( ) ;
286+ let vault_b = Vault :: new ( 6000 , org_b. id , "Vault B" . to_string ( ) , None , 200 ) . unwrap ( ) ;
287287 vault_repo. create ( vault_b. clone ( ) ) . await . unwrap ( ) ;
288288
289289 // Create a client in Organization A
290290 let client_repo = ClientRepository :: new ( ( * state. storage ) . clone ( ) ) ;
291- let client_a = Client :: new ( 7000 , org_a. id , "Client A" . to_string ( ) , 100 ) . unwrap ( ) ;
291+ let client_a = Client :: new ( 7000 , org_a. id , None , "Client A" . to_string ( ) , None , 100 ) . unwrap ( ) ;
292292 client_repo. create ( client_a. clone ( ) ) . await . unwrap ( ) ;
293293
294294 // Create a certificate for the client
0 commit comments