Commit e99c561b authored by Laurent Montel's avatar Laurent Montel 😁

Found bug about loading off element

parent bb252c14
[Rules]
org.kde.kio.kpasswdserver.warning=false
org.kde.kio.kpasswdserver.debug=false
org.kde.kio.kpasswdserver.info=false
org.kde.kio.kpasswdserver.critical=false
;toto.warning=true
;foo.debug=true
;s.critical=false
...@@ -91,6 +91,43 @@ void LoadCategoriesJobTest::shouldReadRules_data() ...@@ -91,6 +91,43 @@ void LoadCategoriesJobTest::shouldReadRules_data()
QTest::newRow("emptywithlistkdeloggingcategories") << QStringLiteral("rulebeforerulessectionfiles.ini") << QStringLiteral("correct.categories") << false QTest::newRow("emptywithlistkdeloggingcategories") << QStringLiteral("rulebeforerulessectionfiles.ini") << QStringLiteral("correct.categories") << false
<< LoggingCategory::List() << LoggingCategory::List()
<< qtKdeCategories; << qtKdeCategories;
qtKdeCategories.clear();
tmp.description = QStringLiteral("KPasswdServer (KIO)");
tmp.logName = QStringLiteral("org.kde.kio.kpasswdserver");
tmp.loggingType = LoggingCategory::Off;
tmp.enabled = true;
qtKdeCategories.append(tmp);
tmp.description = QStringLiteral("KUriFilter IKWS (KIO)");
tmp.logName = QStringLiteral("org.kde.kurifilter-ikws");
tmp.loggingType = LoggingCategory::Info;
tmp.enabled = true;
qtKdeCategories.append(tmp);
tmp.description = QStringLiteral("KUriFilter Shorturi (KIO)");
tmp.logName = QStringLiteral("org.kde.kurifilter-shorturi");
tmp.loggingType = LoggingCategory::Info;
tmp.enabled = true;
qtKdeCategories.append(tmp);
tmp.description = QStringLiteral("BluezQt");
tmp.logName = QStringLiteral("BluezQt");
tmp.loggingType = LoggingCategory::Info;
tmp.enabled = true;
qtKdeCategories.append(tmp);
tmp.description = QStringLiteral("KAuth");
tmp.logName = QStringLiteral("kf5.kauth");
tmp.loggingType = LoggingCategory::Info;
tmp.enabled = true;
qtKdeCategories.append(tmp);
QTest::newRow("oneelementoff") << QStringLiteral("oneelementoff.ini") << QStringLiteral("correct.categories") << false
<< LoggingCategory::List()
<< qtKdeCategories;
} }
void LoadCategoriesJobTest::shouldReadRules() void LoadCategoriesJobTest::shouldReadRules()
...@@ -114,7 +151,6 @@ void LoadCategoriesJobTest::shouldReadRules() ...@@ -114,7 +151,6 @@ void LoadCategoriesJobTest::shouldReadRules()
job.setCategories(listKdeLoggingCategories); job.setCategories(listKdeLoggingCategories);
job.start(); job.start();
qDebug() << "job.customCategories()"<<job.customCategories().count();
QCOMPARE(job.customCategories().count(), customcategories.count()); QCOMPARE(job.customCategories().count(), customcategories.count());
QCOMPARE(job.customCategories(), customcategories); QCOMPARE(job.customCategories(), customcategories);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment