Skip to content

Commit

Permalink
Test: Check for folder in error message #6826
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Nov 1, 2018
1 parent 1c78de7 commit 29997bb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/testremotediscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ private slots:
QTest::addColumn<int>("errorKind");
QTest::addColumn<QString>("expectedErrorString");

QTest::newRow("404") << 404 << "B"; // The filename should be in the error message
QTest::newRow("500") << 500 << "Internal Server Fake Error"; // the message from FakeErrorReply
QTest::newRow("503") << 503 << "";
QTest::newRow("200") << 200 << ""; // 200 should be an error since propfind should return 207
QTest::newRow("InvalidXML") << +InvalidXML << "";
QTest::newRow("MissingPermissions") << +MissingPermissions << "missing data";
QTest::newRow("Timeout") << +Timeout << "";
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";
// 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";
}


Expand Down

0 comments on commit 29997bb

Please sign in to comment.