Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2018-11-01 14:13:16 +0300
committerChristian Kamm <mail@ckamm.de>2018-11-01 14:13:16 +0300
commit29997bbe4404900b00ef16e1f3a1bdfe5282b139 (patch)
tree06da7be4b61327e2d3ffc7c48018106033f8ff04 /test/testremotediscovery.cpp
parent1c78de7a3fc2d35a526fc0cc552934bc1f9ba7ab (diff)
Test: Check for folder in error message #6826
Diffstat (limited to 'test/testremotediscovery.cpp')
-rw-r--r--test/testremotediscovery.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/testremotediscovery.cpp b/test/testremotediscovery.cpp
index 4945bbf4c..05066a504 100644
--- a/test/testremotediscovery.cpp
+++ b/test/testremotediscovery.cpp
@@ -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";
}