]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
tests: update groupadd tests to expect GID 1001
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 14 Apr 2026 11:25:31 +0000 (13:25 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 28 Apr 2026 13:17:39 +0000 (08:17 -0500)
Update test assertions to expect GID 1001 instead of 1000 to match
the new container environment where a CI user occupies ID 1000.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
tests/system/tests/test_groupadd.py

index b46621b6ec19ffb955ffbb0a197b7a2e33bbf11d..0a8df92c8651ffc8a00f50e9e3b410a252007006 100644 (file)
@@ -29,7 +29,7 @@ def test_groupadd__add_group(shadow: Shadow):
     group_entry = shadow.tools.getent.group("tgroup")
     assert group_entry is not None, "Group should be found"
     assert group_entry.name == "tgroup", "Incorrect groupname"
-    assert group_entry.gid == 1000, "Incorrect GID"
+    assert group_entry.gid == 1001, "Incorrect GID"
 
     if shadow.host.features["gshadow"]:
         gshadow_entry = shadow.tools.getent.gshadow("tgroup")