From 148d7112b7bc350732a54d8583cdf669d6f67c89 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 4 Nov 2024 17:43:12 +0100 Subject: [PATCH] test: duplicated test removed --- tests/e2e/web/api/v1/contexts/user/contract.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/e2e/web/api/v1/contexts/user/contract.rs b/tests/e2e/web/api/v1/contexts/user/contract.rs index 9d406d0c..90c5f400 100644 --- a/tests/e2e/web/api/v1/contexts/user/contract.rs +++ b/tests/e2e/web/api/v1/contexts/user/contract.rs @@ -203,22 +203,6 @@ mod banned_user_list { assert_banned_user_response(&response, ®istered_user); } - - #[tokio::test] - async fn it_should_not_allow_a_non_admin_to_ban_a_user() { - let mut env = TestEnv::new(); - env.start(api::Version::V1).await; - - let logged_non_admin = new_logged_in_user(&env).await; - - let client = Client::authenticated(&env.server_socket_addr().unwrap(), &logged_non_admin.token); - - let registered_user = new_registered_user(&env).await; - - let response = client.ban_user(Username::new(registered_user.username.clone())).await; - - assert_eq!(response.status, 403); - } } mod authorization {