[Pkg-shadow-devel] [Git][debian/adduser][debian-bug-1099470] do also a test with * as password

Marc Haber (@zugschlus) gitlab at salsa.debian.org
Tue Mar 4 16:52:18 GMT 2025



Marc Haber pushed to branch debian-bug-1099470 at Debian / adduser


Commits:
a63119fc by Marc Haber at 2025-03-04T17:52:14+01:00
do also a test with * as password

Git-Dch: ignore

- - - - -


1 changed file:

- debian/tests/f/adduser_system.t


Changes:

=====================================
debian/tests/f/adduser_system.t
=====================================
@@ -139,8 +139,24 @@ assert_command_success('/usr/sbin/adduser',
     '--disabled-login',
        	'aust');
 assert_user_exists('aust');
+
 system('echo "aust:*" | chpasswd --encrypted');
+assert_command_success('/usr/sbin/adduser',
+	'--stdoutmsglevel=error', '--stderrmsglevel=error',
+	'--system',
+    '--disabled-login',
+       	'aust');
+assert_user_exists('aust');
+
+system('echo "aust:!foobar" | chpasswd --encrypted');
+assert_command_success('/usr/sbin/adduser',
+	'--stdoutmsglevel=error', '--stderrmsglevel=error',
+	'--system',
+    '--disabled-login',
+       	'aust');
+assert_user_exists('aust');
 
+system('echo "aust:*foobar" | chpasswd --encrypted');
 assert_command_success('/usr/sbin/adduser',
 	'--stdoutmsglevel=error', '--stderrmsglevel=error',
 	'--system',



View it on GitLab: https://salsa.debian.org/debian/adduser/-/commit/a63119fc9a0aa739f4b90616f53ff9bd524fd9f2

-- 
View it on GitLab: https://salsa.debian.org/debian/adduser/-/commit/a63119fc9a0aa739f4b90616f53ff9bd524fd9f2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20250304/77ae3044/attachment-0001.htm>


More information about the Pkg-shadow-devel mailing list