diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-11-05 14:03:39 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2018-11-05 14:03:39 +0300 |
commit | 53080f4836191a010a9a518f04e4c5b1a6d18962 (patch) | |
tree | c9a74eb40e0993ea97d6cf082b4116a81b9db198 /test/testremotediscovery.cpp | |
parent | 7941cd4b1609088cea619079b02bf6d07a1852ce (diff) |
RemoteDiscoveryTest: Fix after the merge from 2.5
The new discovery's message is slightly different
Diffstat (limited to 'test/testremotediscovery.cpp')
-rw-r--r-- | test/testremotediscovery.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/testremotediscovery.cpp b/test/testremotediscovery.cpp index 4920a3b0a..59d33b086 100644 --- a/test/testremotediscovery.cpp +++ b/test/testremotediscovery.cpp @@ -55,14 +55,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"; } |