mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[netinstall] Extend tests with mixed fallbacks
- insert bad or empty URLs in between successful loads, check tail end of loading process.
This commit is contained in:
parent
21d24eeb8d
commit
165e559866
3 changed files with 29 additions and 0 deletions
|
@ -349,8 +349,14 @@ ItemTests::testUrlFallback_data()
|
|||
QTest::newRow( "five" ) << "1b-single-large.conf" << smash( S::Ok ) << 5;
|
||||
QTest::newRow( "none" ) << "1c-none.conf" << smash( S::FailedNoData ) << 0;
|
||||
QTest::newRow( "unset" ) << "1c-unset.conf" << smash( S::FailedNoData ) << 0;
|
||||
// Finds small, then stops
|
||||
QTest::newRow( "fallback-small" ) << "1d-fallback-small.conf" << smash( S::Ok ) << 2;
|
||||
// Finds large, then stops
|
||||
QTest::newRow( "fallback-large" ) << "1d-fallback-large.conf" << smash( S::Ok ) << 5;
|
||||
// Finds empty, finds small
|
||||
QTest::newRow( "fallback-mixed" ) << "1d-fallback-mixed.conf" << smash( S::Ok ) << 2;
|
||||
// Finds empty, then bad
|
||||
QTest::newRow( "fallback-bad" ) << "1d-fallback-bad.conf" << smash( S::FailedBadConfiguration ) << 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
10
src/modules/netinstall/tests/1d-fallback-bad.conf
Normal file
10
src/modules/netinstall/tests/1d-fallback-bad.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
---
|
||||
required: true
|
||||
groupsUrl:
|
||||
- file://$TESTDIR/data-nonexistent.yaml
|
||||
- file://$TESTDIR/data-empty.yaml
|
||||
- file://$TESTDIR/data-empty.yaml
|
||||
- file://$TESTDIR/data-bad.yaml
|
13
src/modules/netinstall/tests/1d-fallback-mixed.conf
Normal file
13
src/modules/netinstall/tests/1d-fallback-mixed.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
# SPDX-FileCopyrightText: no
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
#
|
||||
---
|
||||
required: true
|
||||
groupsUrl:
|
||||
- file://$TESTDIR/data-nonexistent.yaml
|
||||
- file://$TESTDIR/data-empty.yaml
|
||||
- file://$TESTDIR/data-bad.yaml
|
||||
- file://$TESTDIR/data-empty.yaml
|
||||
- file://$TESTDIR/data-small.yaml
|
||||
- file://$TESTDIR/data-large.yaml
|
||||
- file://$TESTDIR/data-bad.yaml
|
Loading…
Add table
Reference in a new issue