Package list kdav / c60d661
Add patch o fix failing test. Sandro KnauƟ 3 years ago
3 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66 * Update build-deps and deps with the info from cmake
77 * Update symbols from build for 18.07.90.
88 * Update patch hunks.
9 * Add patch o fix failing test.
910
1011 -- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Tue, 07 Aug 2018 20:23:49 +0200
1112
0 --- a/autotests/davitemslistjobtest.cpp
1 +++ b/autotests/davitemslistjobtest.cpp
2 @@ -22,6 +22,7 @@
3 #include <KDAV/DavItemsListJob>
4 #include <KDAV/DavUrl>
5 #include <KDAV/EtagCache>
6 +#include <KDAV/DavError>
7
8 #include <QTest>
9
10 @@ -31,13 +32,14 @@ void DavItemsListJobTest::noMatchingMime
11
12 QUrl url(QStringLiteral("http://localhost/collection"));
13 KDAV::DavUrl davUrl(url, KDAV::CardDav);
14 + KDAV::Error error(KDAV::ErrorNumber::ERR_ITEMLIST_NOMIMETYPE, 0, QString(), 0);
15
16 auto job = new KDAV::DavItemsListJob(davUrl, cache);
17 job->setContentMimeTypes(QStringList() << QStringLiteral("mime/invalid1") << QStringLiteral("mime/invalid2"));
18 job->exec();
19
20 - QCOMPARE(job->error(), 431);
21 - QCOMPARE(job->errorText(), QStringLiteral("There was a problem with the request. The requested mimetypes are not supported."));
22 + QCOMPARE(job->error(), KDAV::ErrorNumber::ERR_ITEMLIST_NOMIMETYPE);
23 + QCOMPARE(job->errorText(), error.errorText());
24
25 }
26
00 enable_debianabimanager.diff
1 fix-autotests.patch