From 2332f71b17cce7550f6d7aa42b805ba0c00a3550 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 20 Nov 2024 00:14:22 +0000 Subject: [PATCH] tests: add groupmod. --- tests/bats/groupadd.bats | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/bats/groupadd.bats b/tests/bats/groupadd.bats index cbc0aa57..d93b1a69 100644 --- a/tests/bats/groupadd.bats +++ b/tests/bats/groupadd.bats @@ -17,8 +17,16 @@ load common sudo groupadd --gid 3000 user3 } +@test "groupmod: Change the group name" { + sudo groupmod --new-name user22 user2 +} + +@test "groupmod: Change the group ID" { + sudo groupmod --gid 2222 user22 +} + @test "groupdel: Delete newly created group" { - sudo groupdel user2 + sudo groupdel user22 sudo groupdel system2 sudo groupdel user3 }