[netinstall] Extend tests with YAML syntax error and no-files-at-all

This commit is contained in:
Adriaan de Groot 2021-04-16 11:32:34 +02:00
parent 850825f70f
commit 9569105575
4 changed files with 21 additions and 1 deletions

View File

@ -342,9 +342,11 @@ ItemTests::testUrlFallback_data()
using S = Config::Status; using S = Config::Status;
QTest::newRow( "bad" ) << "1a-single-bad.conf" << smash( S::FailedBadData ) << 0; QTest::newRow( "bad" ) << "1a-single-bad.conf" << smash( S::FailedBadConfiguration ) << 0;
QTest::newRow( "empty" ) << "1a-single-empty.conf" << smash( S::FailedNoData ) << 0; QTest::newRow( "empty" ) << "1a-single-empty.conf" << smash( S::FailedNoData ) << 0;
QTest::newRow( "error" ) << "1a-single-error.conf" << smash( S::FailedBadData ) << 0;
QTest::newRow( "second" ) << "1b-single-small.conf" << smash( S::Ok ) << 2; QTest::newRow( "second" ) << "1b-single-small.conf" << smash( S::Ok ) << 2;
QTest::newRow( "none" ) << "1c-none.conf" << smash( S::FailedNoData ) << 0;
} }
void void

View File

@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
#
---
required: true
groupsUrl:
- file://$TESTDIR/data-error.yaml

View File

@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
#
---
required: true
groupsUrl: []

View File

@ -0,0 +1,5 @@
derp
derp
herpa-derp: no
--
# This file is not valid YAML