mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
RemoteDiscoveryTest: Fix after the merge from 2.5
The new discovery's message is slightly different
This commit is contained in:
parent
18b9712105
commit
2c9b66fe69
1 changed files with 9 additions and 7 deletions
|
@ -56,14 +56,16 @@ private slots:
|
|||
QTest::addColumn<int>("errorKind");
|
||||
QTest::addColumn<QString>("expectedErrorString");
|
||||
|
||||
QTest::newRow("404") << 404 << "File or directory not found: B";
|
||||
QTest::newRow("500") << 500 << "An error occurred while opening a folder B: Internal Server Fake Error";
|
||||
QTest::newRow("503") << 503 << "An error occurred while opening a folder B: Internal Server Fake Error";
|
||||
QString httpErrorMessage = "Server replied with an error while reading directory 'B' : Internal Server Fake Error";
|
||||
|
||||
QTest::newRow("404") << 404 << httpErrorMessage;
|
||||
QTest::newRow("500") << 500 << httpErrorMessage;
|
||||
QTest::newRow("503") << 503 << httpErrorMessage;
|
||||
// 200 should be an error since propfind should return 207
|
||||
QTest::newRow("200") << 200 << "An error occurred while opening a folder B: Internal Server Fake Error";
|
||||
QTest::newRow("InvalidXML") << +InvalidXML << "An error occurred while opening a folder B: Unknown error";
|
||||
QTest::newRow("MissingPermissions") << +MissingPermissions << "A HTTP transmission error happened. B: The server file discovery reply is missing data.";
|
||||
QTest::newRow("Timeout") << +Timeout << "An error occurred while opening a folder B: Operation canceled";
|
||||
QTest::newRow("200") << 200 << httpErrorMessage;
|
||||
QTest::newRow("InvalidXML") << +InvalidXML << "error while reading directory 'B' : Unknown error";
|
||||
QTest::newRow("MissingPermissions") << +MissingPermissions << "error while reading directory 'B' : The server file discovery reply is missing data.";
|
||||
QTest::newRow("Timeout") << +Timeout << "error while reading directory 'B' : Operation canceled";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue