Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Previously, data was 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

#IssueNotes Decision
1Insert data using Service Layer MethodsValidates data with minimal test performance impact if it works

Primary solution

2Insert data using a cps container with test containersValidates data but can have a bigger performance hit. Also issues relating to which image is used for the image that is spun upPossible secondary solution 
3Insert data using liquibaseNo data validation but will be hopefully easier to read. Also cannot add more data/reset data during testingNot sure if it's worth it, will be similar to the current implementation unless the data can be inserted in json format somehow

...