From: Serge Hallyn Date: Thu, 22 May 2025 11:27:11 +0000 (-0500) Subject: Revert "tests/: extend basic groupmod test" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b426e374dbc948460dacf0a27a61a095d984440d;p=thirdparty%2Fshadow.git Revert "tests/: extend basic groupmod test" This reverts commit a7aa59075b49a29e5e6b14c232f8fac2a9cfe448. --- diff --git a/tests/system/tests/test_groupmod.py b/tests/system/tests/test_groupmod.py index 37f334f58..5088831e9 100644 --- a/tests/system/tests/test_groupmod.py +++ b/tests/system/tests/test_groupmod.py @@ -18,11 +18,9 @@ def test_groupmod__change_gid(shadow: Shadow): 1. Create group 2. Change GID :steps: - 1. Check group entry - 2. Check gshadow entry + 1. Group exists and GID is 1001 :expectedresults: - 1. group entry for the user exists and the attributes are correct - 2. gshadow entry for the user exists and the attributes are correct + 1. Group is found and GID matches :customerscenario: False """ shadow.groupadd("tgroup") @@ -32,9 +30,3 @@ def test_groupmod__change_gid(shadow: Shadow): assert result is not None, "Group should be found" assert result.name == "tgroup", "Incorrect groupname" assert result.gid == 1001, "Incorrect GID" - - if shadow.host.features["gshadow"]: - result = shadow.tools.getent.gshadow("tgroup") - assert result is not None, "Group should be found" - assert result.name == "tgroup", "Incorrect groupname" - assert result.password == "!", "Incorrect password"