]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
tests: update usermod tests to expect ID 1001
authorIker Pedrosa <ipedrosa@redhat.com>
Tue, 14 Apr 2026 11:28:03 +0000 (13:28 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 28 Apr 2026 13:17:39 +0000 (08:17 -0500)
Update test assertions to expect ID 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_usermod.py

index b7cf2e3e57f8f580c3d32b9b7d00f50b9069c7d0..8378ef11373367759496d4aa6969707c5bdaca9a 100644 (file)
@@ -38,7 +38,7 @@ def test_usermod__rename_user(shadow: Shadow):
     passwd_entry = shadow.tools.getent.passwd("tuser2")
     assert passwd_entry is not None, "User should be found"
     assert passwd_entry.name == "tuser2", "Incorrect username"
-    assert passwd_entry.uid == 1000, "Incorrect UID"
+    assert passwd_entry.uid == 1001, "Incorrect UID"
 
     shadow_entry = shadow.tools.getent.shadow("tuser2")
     assert shadow_entry is not None, "User should be found"
@@ -47,7 +47,7 @@ def test_usermod__rename_user(shadow: Shadow):
     group_entry = shadow.tools.getent.group("tuser1")
     assert group_entry is not None, "Group should be found"
     assert group_entry.name == "tuser1", "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("tuser1")