зеркало из https://github.com/nextcloud/desktop.git
Enable netrc tests
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:
Родитель
65db9a0253
Коммит
294bb1adb3
|
@ -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")));
|
||||
|
|
Загрузка…
Ссылка в новой задаче