[x] Update the update_mongo_db function in scripts/config_to_database_migration.py script to connect to the new Mongo instance.
[x] Test the script using various configurations, and assert that the data is correctly added in the appropiate Mongo document/(s).
Acceptance criteria
Scenario: Running scripts/config_to_database_migration.pyGiven: That we want to migrate .ini files to Mongo
Then: Mongo is populated with the appropiate files
Description
We need to connect to a different Mongo instance and update accordingly.
The following snippet provided by @simplyrider may be of aid:
Requirements
update_mongo_db
function inscripts/config_to_database_migration.py
script to connect to the new Mongo instance.Acceptance criteria
Scenario: Running
scripts/config_to_database_migration.py
Given: That we want to migrate .ini files to Mongo Then: Mongo is populated with the appropiate files