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

Function readonly_cannot_drop_user

nodedb/tests/pgwire_auth_users.rs:199–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198#[tokio::test]
199async fn readonly_cannot_drop_user() {
200 let state = make_state();
201 let su = superuser();
202 ddl_ok(&state, &su, "CREATE USER target WITH PASSWORD 'pass'").await;
203
204 assert_readonly_denied(&state, "DROP USER target").await;
205}
206
207/// `DROP USER IF EXISTS <name>` on a user that does not exist is a no-op
208/// success, not an error.

Callers

nothing calls this directly

Calls 4

superuserFunction · 0.85
ddl_okFunction · 0.85
assert_readonly_deniedFunction · 0.85
make_stateFunction · 0.70

Tested by

no test coverage detected