From: Serge Hallyn Date: Thu, 22 May 2025 11:27:11 +0000 (-0500) Subject: Revert "tests/: extend basic groupadd test" X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e637d554f5e6035779a0c312b4d9ac4b4502dd7f;p=thirdparty%2Fshadow.git Revert "tests/: extend basic groupadd test" This reverts commit 72c42f662716b070629537410b68a35af3f7df92. --- diff --git a/tests/system/tests/test_groupadd.py b/tests/system/tests/test_groupadd.py index 5e4bea532..2573b0d7e 100644 --- a/tests/system/tests/test_groupadd.py +++ b/tests/system/tests/test_groupadd.py @@ -17,11 +17,9 @@ def test_groupadd__add_group(shadow: Shadow): :setup: 1. Create group :steps: - 1. Check group entry - 2. Check gshadow entry + 1. Group exists and GID is 1000 :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") @@ -30,9 +28,3 @@ def test_groupadd__add_group(shadow: Shadow): assert result is not None, "Group should be found" assert result.name == "tgroup", "Incorrect groupname" assert result.gid == 1000, "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"