]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Revert "tests/: extend basic groupmod test"
authorSerge Hallyn <serge@hallyn.com>
Thu, 22 May 2025 11:27:11 +0000 (06:27 -0500)
committerGitHub <noreply@github.com>
Thu, 22 May 2025 11:27:11 +0000 (06:27 -0500)
This reverts commit a7aa59075b49a29e5e6b14c232f8fac2a9cfe448.

tests/system/tests/test_groupmod.py

index 37f334f589007ae0433abba8b9d5a3d09c2c0df6..5088831e906e628c33f522ab87c1a37e8d044446 100644 (file)
@@ -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"