Skip to content

Commit 3267dd5

Browse files
committed
Remove permission function call for root role
'root' is a special role, so no need to grant permissions to it.
1 parent 999f5ec commit 3267dd5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ mod tests {
688688
use std::time::Duration;
689689

690690
use super::*;
691-
use etcd_client::Permission;
692691
use testcontainers::{
693692
core::{IntoContainerPort, WaitFor},
694693
runners::SyncRunner,
@@ -712,12 +711,8 @@ mod tests {
712711
.await
713712
.expect("connect etcd");
714713

715-
// add root user and role with full permissions
714+
// add root user and role
716715
client.role_add("root").await.expect("add role");
717-
client.role_grant_permission("root", Permission::read_write("/"))
718-
.await
719-
.expect("grant permission");
720-
721716
client.user_add(ETCD_USER, ETCD_PASS, None)
722717
.await
723718
.expect("add user");

0 commit comments

Comments
 (0)