File indexing completed on 2024-11-24 04:44:38

0001 Resource.setType( "akonadi_vcard_resource" );
0002 Resource.setPathOption( "Path", "vcardtest.vcf" );
0003 Resource.setOption( "ReadOnly", true );
0004 Resource.create();
0005 
0006 XmlOperations.setXmlFile( "vcardtest-readonly.xml" );
0007 XmlOperations.setRootCollections( Resource.identifier() );
0008 XmlOperations.setCollectionKey( "None" ); // we only expect one collection
0009 XmlOperations.ignoreCollectionField( "Name" ); // name is the resource identifier and thus unpredictable
0010 XmlOperations.ignoreCollectionField( "RemoteId" ); // remote id is the absolute path
0011 XmlOperations.assertEqual();
0012