...
Jira Legacy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Description
PreviouslyCurrently, data was is inserted into the database for persistence testing by using SQL scripts. This led to data which cannot conform to any yang model being used for testing purposes. Therefore we want to insert data by using service layer methods. This includes inserting a yang model and data which conforms to it.
Issues & Decisions
# | Issue | NotesĀ | Decision |
---|---|---|---|
1 | Insert data using Service Layer Methods | Validates data with minimal test performance impact if it works | Primary solution |
2 | Insert data using a cps container with test containers | Validates data but can have a bigger performance hit. Also issues relating to which image is used for the image that is spun up | Possible secondary solutionĀ |
3 | Insert data using liquibase | No data validation but will be hopefully easier to read. Also cannot add more data/reset data during testing | Not sure if it's worth it, will be similar to the current implementation unless the data can be inserted in json format somehow |
...