[users] Expand test coverage with numeric value
This commit is contained in:
parent
f6e39aac52
commit
a93dc7740c
@ -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
|
||||
|
12
src/modules/users/tests/8h-issue-2362.conf
Normal file
12
src/modules/users/tests/8h-issue-2362.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user