Altinn / app-localtest

Solution for testing apps locally on your own machine
8 stars 14 forks source link

Support using raw testdata from tenor in localtest #59

Closed tjololo closed 8 months ago

tjololo commented 1 year ago

Description

Today there as, as far as I know, two possible ways testdata can be provided to localtest.

  1. Add the test data to the default set of testdata in the app-localtest repository
  2. Add a testData.json file and serve it from the application you are running locally

The testdata in localtest repo is separated in folders and multiple json files and in our own format. The testData.json that can be added to an application is a concatenated version of the data from the folders in localtests testdata folders

https://testdata.skatteetaten.no (tenor) holds a rich set of testdata available for use in Altinns and IDportens test environments. It is possible to download subsets of the testdata from tenor we should support using the json files from tenor directly with some additional metadata that Altinn needs to do authorisation decisions (if we need more?).

I belive this would be a nice addition and would make it possible/easy to use the same test persons/organisations in localtest as in tt02

Additional Information

No response