]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Revert "tests/: extend basic groupadd 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 72c42f662716b070629537410b68a35af3f7df92.

tests/system/tests/test_groupadd.py

index 5e4bea53270f48fc1fbf2ede45bc86e91fd5b5fb..2573b0d7e05b1fed61d7e046aed70df47fdc267a 100644 (file)
@@ -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"