MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / drop_role

Function drop_role

nodedb/src/control/security/role.rs:471–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

469
470 #[test]
471 fn drop_role() {
472 let store = RoleStore::new();
473 store
474 .create_role("temp", TenantId::new(1), None, None)
475 .unwrap();
476 assert!(store.drop_role("temp", None).unwrap());
477 assert!(store.get_role("temp").is_none());
478 }
479
480 #[test]
481 fn drop_builtin_rejected() {

Callers

nothing calls this directly

Calls 1

create_roleMethod · 0.80

Tested by

no test coverage detected