[users] Expand test coverage with numeric value

This commit is contained in:
Adriaan de Groot 2024-11-08 22:28:45 +01:00
parent f6e39aac52
commit a93dc7740c
2 changed files with 13 additions and 0 deletions

View File

@ -527,6 +527,7 @@ UserTests::testUserUmask_data()
QTest::newRow( "-wrd " ) << "tests/8e-issue-2362.conf" << 0214 << 0563;
QTest::newRow( "bogus" ) << "tests/8f-issue-2362.conf" << -1 << -1;
QTest::newRow( "good2" ) << "tests/8g-issue-2362.conf" << 0750 << 0027;
QTest::newRow( "numrc" ) << "tests/8h-issue-2362.conf" << 0751 << 0026;
}
void

View File

@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
#
---
user:
shell: /usr/bin/new
forbidden_names:
- me
- myself
- moi
# This is a number, which is interpreted by YAML as decimal even with a leading 0
home_permissions: 0751