[users] Add test for new notation for groups-with-details

This commit is contained in:
Adriaan de Groot 2020-10-13 23:13:23 +02:00
parent 07027c2430
commit a86374386b
2 changed files with 15 additions and 0 deletions

View File

@ -119,6 +119,7 @@ UserTests::testDefaultGroupsYAML_data()
QTest::newRow( "users.conf" ) << "users.conf" << 7 << "video";
QTest::newRow( "dashed list" ) << "tests/4-audio.conf" << 4 << "audio";
QTest::newRow( "blocked list" ) << "tests/3-wing.conf" << 3 << "wing";
QTest::newRow( "issue 1523" ) << "tests/5-issue-1523.conf" << 4 << "foobar";
}
void

View File

@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
#
---
defaultGroups:
- adm
- name: foo
must_exist: false
system: true
- name: bar
must_exist: true
- name: foobar
must_exist: false
system: false