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

Function drop_database_superuser_allowed

nodedb/tests/auth_admin_ddl_gating.rs:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57#[tokio::test]
58async fn drop_database_superuser_allowed() {
59 let state = make_state_with_catalog();
60 setup_foo_db(&state).await;
61 let su = superuser();
62 ddl_ok(&state, &su, "DROP DATABASE foo").await;
63}
64
65#[tokio::test]
66async fn drop_database_cluster_admin_denied() {

Callers

nothing calls this directly

Calls 4

make_state_with_catalogFunction · 0.85
setup_foo_dbFunction · 0.85
superuserFunction · 0.85
ddl_okFunction · 0.85

Tested by

no test coverage detected