Test for spaces in usernames and passwords is disabled for now as it's
not supported by current implementation.

Signed-off-by: Fredrik Eriksson <feffe@fulh.ax>
This commit is contained in:
Fredrik Eriksson 2025-01-02 14:59:18 +01:00 коммит произвёл Matthieu Gallien
Родитель 65db9a0253
Коммит 294bb1adb3
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -53,11 +53,11 @@ private slots:
void testValidNetrc() {
NetrcParser parser(testfileC);
QEXPECT_FAIL("", "test currently broken, eventually will be fixed", Abort);
QVERIFY(parser.parse());
QCOMPARE(parser.find("foo"), qMakePair(QString("bar"), QString("baz")));
QCOMPARE(parser.find("broken"), qMakePair(QString("bar2"), QString()));
QCOMPARE(parser.find("funnysplit"), qMakePair(QString("bar3"), QString("baz3")));
QEXPECT_FAIL("", "Current implementation do not support spaces in username or password", Continue);
QCOMPARE(parser.find("frob"), qMakePair(QString("user with spaces"), QString("space pwd")));
}
@ -69,7 +69,6 @@ private slots:
void testValidNetrcWithDefault() {
NetrcParser parser(testfileWithDefaultC);
QEXPECT_FAIL("", "test currently broken, eventually will be fixed", Abort);
QVERIFY(parser.parse());
QCOMPARE(parser.find("foo"), qMakePair(QString("bar"), QString("baz")));
QCOMPARE(parser.find("dontknow"), qMakePair(QString("user"), QString("pass")));