[Kolab-devel] test failure in libkolab

Diane Trout <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <7912172.Dj0HhZSQLN@myrada>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.