[Kolab-devel] test failure in libkolab
Diane Trout
diane at ghic.org
Sun Aug 10 08:53:45 CEST 2014
Hello,
I was looking into why birthdays aren't being serialized (Kolab Bug #2739)
when I discovered make test was failing in format test. I tried with both
0.5.2 from Debian and a fresh checkout of libkolab from git.
I think the relevant message is:
QDEBUG : FormatTest::testDistlist(v3distlistSimple)
/tmp/libkolab/tests/formattest.cpp : 51 Actual: msg->headerByType(
X_KOLAB_TYPE_HEADER )->as7BitString(): "X-Kolab-Type: application/x-
vnd.kolab.distribution-list"
Expceted: expectedMsg->headerByType( X_KOLAB_TYPE_HEADER )->as7BitString():
"X-Kolab-Type: application/x-vnd.kolab.contact.distlist"
I can solve it by changing the X-Kolab-Type value.
--- a/tests/testfiles/v3/contacts/distlist.vcf.mime
+++ b/tests/testfiles/v3/contacts/distlist.vcf.mime
@@ -1,5 +1,5 @@
Date: Mon, 23 Apr 2012 12:46:37 +0200
-X-Kolab-Type: application/x-vnd.kolab.contact.distlist
+X-Kolab-Type: application/x-vnd.kolab.distribution-list
X-Kolab-Mime-Version: 3.0
User-Agent: Libkolab-0.1.0
Content-Type: multipart/mixed; boundary="nextPart1365947.WmFcbPlLFA"
However I'm not sure which version is the one intended, .../x-
vnd.kolab.contact.distlist or x-vnd.kolab.distribution-list.
Diane
More information about the devel
mailing list