navikt / data-catalog-backend

MIT License
2 stars 2 forks source link

Compartmentalize validation #60

Closed elmgren closed 5 years ago

elmgren commented 5 years ago

Validation is carried out in smaller methods. There is duplicate code in InformationTypeService and CodelistService methods "validateRequests" and "duplicateRequests". Choose to keep the duplicated code until we have decided how to refactor InformationType.

I have chosen to remove TestData files and instead intitialize more test-methods in the test. This to make it easier to identify why an error has occured from within the failed test.