[users] Expand tests with some legacy-settings
This commit is contained in:
parent
04f38ea661
commit
4494a4b35a
@ -42,6 +42,7 @@ private Q_SLOTS:
|
|||||||
|
|
||||||
void testHostActions_data();
|
void testHostActions_data();
|
||||||
void testHostActions();
|
void testHostActions();
|
||||||
|
void testHostActions2();
|
||||||
void testPasswordChecks();
|
void testPasswordChecks();
|
||||||
void testUserPassword();
|
void testUserPassword();
|
||||||
|
|
||||||
@ -250,6 +251,22 @@ UserTests::testHostActions()
|
|||||||
QCOMPARE( getHostNameActions( m ), HostNameActions( result ) | HostNameAction::WriteEtcHosts );
|
QCOMPARE( getHostNameActions( m ), HostNameActions( result ) | HostNameAction::WriteEtcHosts );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UserTests::testHostActions2()
|
||||||
|
{
|
||||||
|
Config c;
|
||||||
|
QVariantMap legacy;
|
||||||
|
|
||||||
|
c.setConfigurationMap( legacy );
|
||||||
|
QCOMPARE( c.hostNameActions(), HostNameAction::EtcHostname | HostNameAction::WriteEtcHosts );
|
||||||
|
|
||||||
|
legacy.insert( "writeHostsFile", false );
|
||||||
|
legacy.insert( "setHostname", "Hostnamed" );
|
||||||
|
c.setConfigurationMap( legacy );
|
||||||
|
QCOMPARE( c.hostNameActions(), HostNameAction::SystemdHostname );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
UserTests::testPasswordChecks()
|
UserTests::testPasswordChecks()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user