Test & Production

Changelog

DateChanges
2022.03.09Updated documentation with Production and Test environments
2022.03.31Corrected typo for Altinn Instance API url in test environment
2000.05.11Added information about testusers from Tenor test data search

Testing requirements

System providers are responsible for carrying out tests themselves. Focus should be to verify that the validation and submission services work as expected. The implementation guide is the essential guide for getting the solution in place for system providers.

The project team will contribute with debugging, bug fixing, and following up of cases that are sent into the test environment.

The project team is available via Slack for technical clarifications and for direct contact with developers and test managers. The project team can also be reached via mva-modernisering@skatteetaten.no. Contact us here to receive access to Slack.

The test environment and test data

System providers must have test environments which can make use of synthetic data

Connection to the test environment occurs through ID-porten and for the purpose of testing, Skatteetaten's ID-porten integration can be used. It is recommended that the providers order their own integration against ID-porten as soon as possible because the process is partly manual and can be time consuming. See more in implementation guide section 3. ID-porten integration.

The ERP system providers must find test users in Tenor test data search. The testdata are synthetic test users that should also be used to log into ID-porten and Altinn. These are the only test users that can be used to test VAT-return. Ordinary Digdir test users will not work for this purpose.Here is a guide to how to use Tenor test data search

Skatteetaten's test environment will be available as long as it is needed, after the new VAT-return is launched in January 2022.

Test planning

The project team will offer meetings with a focus on test planning and carrying out the tests. Here the agendae will cover, amongst other things, carrying out the tests, which scenarios should be tested and the test data.

Summary of tests and moving into production

The system providers will, after the end of the test period and in advance of production, summarise their tests. The summary will show what has been tested, along with the status of the carried out tests, including a summary of bugs and inadequacies. The providers will, at Skatteetatens request, provide documentation on how the integration has been tested.

Test applications

Some test applications has been written in jupyter notebook, for use when testing the solution from the Tax adminisatration:

  1. Jupyter notebook demo for fetching and validation. Downlaod the catalog 'test' and run the script demo.ipynb (The script will carry out all steps in the process: call ping service to check connection and validate VAT-return).
  2. Jupyter notebook demo for fetching, validation and submission. run the script file-vat-return.ipynb. It will run all the steps in the process.
  3. Pyton script to fetch token and postman script to validate return. First log in to ID-Porten, and save the token in the format "Bearer hentet-token" as the environment variablewith the name "test-bearer" in postman, and use the postman script to validate the return.
  4. Example XML's

Test environment

Test URLS:

ServiceUrl
Validation Servicehttps://idporten-api-sbstest.sits.no/api/mva/grensesnittstoette/mva-melding/valider
Submission Servicehttps://skd.apps.tt02.altinn.no/skd/mva-melding-innsending-etm2/
Instance API-urlhttps://skd.apps.tt02.altinn.no/skd/mva-melding-innsending-etm2/instances
ID-porten integrationhttps://oidc-ver2.difi.no/idporten-oidc-provider/.well-known/openid-configuration
Altinn token exchange urihttps://platform.tt02.altinn.no/authentication/api/v1/exchange/id-porten

Production environment

The production environment is functionally equal to the test environment.

Production URLS:

ServiceUrl
Validation Servicehttps://idporten.api.skatteetaten.no/api/mva/grensesnittstoette/mva-melding/valider
Submission Servicehttps://skd.apps.altinn.no/skd/mva-melding-innsending-v1/
Instance API-urlhttps://skd.apps.altinn.no/skd/mva-melding-innsending-v1/instances
ID-porten integrationhttps://oidc.difi.no/idporten-oidc-provider/.well-known/openid-configuration
Altinn token exchange urihttps://platform.altinn.no/authentication/api/v1/exchange/id-porten