-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
This is an EPIC, create sub issues for all related tasks
Integration tests to launch version 1
To do:
- Use the World Bank component files here as a reference: https://github.com/okfn/okfn_iati/tree/main/data-samples/csv_folders_org/world-bank-2024
- Each of them must be uploaded as a CKAN resource. It can be in the same dataset or different ones (it is better if it is the same, but for testing purposes there should be at least two datasets to test more). Leave the namespace blank for this use case.
- Each of these resources must be marked as its type (IATIFileTypes: https://github.com/okfn/ckanext-iati-generator/blob/main/ckanext/iati_generator/models/enums.py). An issue must be created, as not all the types we need are defined
- After uploading everything, we need to see that there is a view that shows all the uploaded files
- See which button is for “generate IATI XML file for organization.” Propose options and create an issue for what is missing
- Make sure we have a simple, short URL for this file
Test 2
Do everything again in the same instance for another namespace (do not delete previous files, do not clean db)
- Add more resources to the same CKAN instance, but this time from the Asian Development Bank https://github.com/okfn/okfn_iati/tree/main/data-samples/csv_folders_org/asian-dev-bank-org
- To prevent files from mixing, use the namespace “asian-bank.”
- Review the entire process, checking that the namespaces do not mix and that we can always see each namespace separately.
Prepare for replication
To avoid doing this manually many times, create an script which:
- Pull CSV from their public URLs
- Create datasets and resource with IATI fields loaded
This will help to replicate the whole test several times real quick