Description
Currently we several kinds of issues which raise during setting up the project service locally for development. Especially it's crucial for F2F challenges, where setup process may take the same or even more efforts than solving the actual issue.
We can improve setup process in several ways:
-
✅ Create a separate step-by-step guide of how to run project service locally if we provided AUTH credentials for M2M authentication.
-
❌ no need anymore Create a separate step-by-step guide of how to run project service locally if we DIDN'T provide AUTH credentials for M2M authentication. So mock service should be used.
-
❌ no need anymore as we have mock data not for all third-party endpoints used by project-service, we should either create missing endpints or maybe document somehow which functionality we support with mock data and which we don't. Is there any other way of how to make it clear what would work if we don't provide M2M credentials?
-
✅ Guide how to setup Connect App together with project service locally.
- where to update project service URL
- how to bypass token validation
-
✅ (done via Import and Export Data Commands #546) A script/command which would populate DB with test data.
- this has been started here Local test data #102.
- we should improve it so it would also create some test projects with all the necessary dependencies (if any)
- I think instead of getting data directly form dev, we can have two kind of scripts:
- one script gets data from dev and save it to some JSON files inside project service
- another script (main script) create test data in DB using saved JSON files, which could be automatically saved from the DEV or created manually - this way we can fix and control test data, rather each time get it from the DEV, as it could bring some unexpected issues
- The test data should be created in such a way so it could be used when we run Project Service with mock service or when we run it against DEV environment. So the test data should use the same data which we have in mock service and in DEV.
-
✅ We should be able to somehow run tests without rebuilding and re-running Docker containers.
-
✅ (done via Improve Local Setup - Support Windows, Single config file, Updated Docker Guide #559) Support local developing on Windows