mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-12-23 22:47:57 -05:00
The test data was modified so that support for catalog only mode of kiwix-serve can be properly tested. The effect of this change in the test data on the library_server unit test demonstrates that although the new entry does not appear in the catalog (for example, no catalog_v2_entries* test cases were affected) the category and language of this ghost entry slipped into the observable output.
72 lines
2.9 KiB
XML
72 lines
2.9 KiB
XML
<library version="1.0">
|
||
<book
|
||
id="raycharles"
|
||
path="./zimfile_raycharles.zim"
|
||
url="https://github.com/kiwix/libkiwix/raw/master/test/data/zimfile_raycharles.zim"
|
||
title="Ray Charles"
|
||
description="Wikipedia articles about Ray Charles (not all of them but near to what an average newborn may find more than enough)"
|
||
language="eng"
|
||
creator="Wikipedia"
|
||
publisher="Kiwix"
|
||
date="2020-03-31"
|
||
name="wikipedia_en_ray_charles"
|
||
tags="public_tag_without_a_value;_private_tag_without_a_value;wikipedia;_category:wikipedia;_pictures:no;_videos:no;_details:no;_ftindex:yes"
|
||
articleCount="284"
|
||
mediaCount="2"
|
||
size="556"
|
||
faviconMimeType="image/png"
|
||
favicon="SOME DATA"
|
||
></book>
|
||
<book
|
||
id="raycharles_uncategorized"
|
||
path="./zimfile_raycharles_uncategorized.zim"
|
||
url="https://github.com/kiwix/libkiwix/raw/master/test/data/zimfile_raycharles_uncategorized.zim"
|
||
title="Ray (uncategorized) Charles"
|
||
description="No category is assigned to this library entry (neither adj nor xor was considered a good option)"
|
||
language="rus,eng"
|
||
creator="Wikipedia"
|
||
publisher="Kiwix"
|
||
date="2020-03-31"
|
||
name="wikipedia_ru_ray_charles"
|
||
tags="public_tag_with_a_value:value_of_a_public_tag;_private_tag_with_a_value:value_of_a_private_tag;wikipedia;_pictures:no;_videos:no;_details:no"
|
||
articleCount="284"
|
||
mediaCount="2"
|
||
size="123"
|
||
faviconMimeType="image/png;favicon_attribute_is_absent"
|
||
></book>
|
||
<book
|
||
id="charlesray"
|
||
path="./zimfile&other.zim"
|
||
url="https://github.com/kiwix/libkiwix/raw/master/test/data/zimfile%26other.zim"
|
||
title="Charles, Ray"
|
||
description="Wikipedia articles about Ray Charles or why and when one should go to library"
|
||
language="fra"
|
||
creator="Wikipedia"
|
||
publisher="Kiwix"
|
||
date="2020-03-31"
|
||
name="wikipedia_fr_ray_charles"
|
||
tags="unittest;wikipedia;_category:jazz;_pictures:no;_videos:no;_details:no;_ftindex:yes"
|
||
articleCount="284"
|
||
mediaCount="2"
|
||
size="556"
|
||
favicon="faviconMimeType_attribute_is_absent"
|
||
></book>
|
||
<book
|
||
id="inaccessiblezim"
|
||
path="./nosuchzimfile.zim"
|
||
url="https://github.com/kiwix/libkiwix/raw/master/test/data/nosuchzimfile.zim"
|
||
title="Catalog of all catalogs"
|
||
description="Testing that running kiwix-serve without access to ZIM files doesn't lead to a catastrophe"
|
||
language="cat"
|
||
creator="Catherine of Catalonia"
|
||
publisher="Caterpillar"
|
||
date="2025-09-04"
|
||
name="catalog_of_all_catalogs"
|
||
tags="unittest;_category:cats"
|
||
articleCount="12107"
|
||
mediaCount="8"
|
||
size="20250904"
|
||
favicon="Catania Cathedral"
|
||
></book>
|
||
</library>
|