MCPcopy Create free account
hub / github.com/dfinity/orbit / add_user

Function add_user

tests/integration/src/utils.rs:365–378  ·  view source on GitHub ↗
(
    env: &PocketIc,
    identity: Principal,
    group_ids: Vec<String>,
    station_canister_id: Principal,
)

Source from the content-addressed store, hash-verified

363}
364
365pub fn add_user(
366 env: &PocketIc,
367 identity: Principal,
368 group_ids: Vec<String>,
369 station_canister_id: Principal,
370) -> UserDTO {
371 add_user_with_name(
372 env,
373 identity.to_text().to_string(),
374 identity,
375 group_ids,
376 station_canister_id,
377 )
378}
379
380pub fn add_user_with_name(
381 env: &PocketIc,

Calls 1

add_user_with_nameFunction · 0.85